API Hop

Documentation

API Hop Docs

Bing Search endpoint reference

Bing: Web search · Copilot answers.

Concurrency limit

AI and Data each share an account-wide pool of concurrent slots: 5 AI / 2 Data by default, adjusted by your subscription. Endpoint overrides still cannot exceed the category pool. Reaching either limit returns HTTP 429. Asynchronous tasks occupy a slot until execution ends.

GET /v1/bing-search/search
Default limit: 2
GET /v1/bing-search/copilot
Default limit: 2

Bing: Web search · Copilot answers.

Authentication and billing

The default price is $0.0003 (300 credits) per successful request. Use your API Hop API key. Availability depends on active gateways and key permissions. Check the current catalog and your account for the price per successful request; account-specific pricing takes precedence. Successful empty results are billable. Failed requests release the credit reservation. Requests time out after 60 seconds, with no automatic retry or pagination. Settlement failures never repeat the upstream request.

http
Authorization: Bearer YOUR_API_KEY

Send query parameters only, without a request body. Unknown, repeated, empty or invalid values are rejected. JSON only; no automatic pagination or retries. Copy identifiers and continuation tokens from fresh responses. Examples are illustrative. Each completed lookup, including a confirmed empty or unavailable result, is billed separately. XOR means exactly one parameter; NOT means excluded; => means requires.

GET https://api.apihop.ai/v1/bing-search/search

Request parameters

FieldTypeConstraintsExample
querystringThe search query. The UTF-8 representation must not exceed 8,192 bytes; non-ASCII characters may use more than one byte.; query: REQUIRED; minLength: 1; maxLength: 8192; UTF-8 bytes: 8192coffee
zero_tracebooleanWhen true, the data service does not store the source HTML or parsed JSON. Audit and billing metadata is retained, but all other data is permanently discarded. Individual history lookup exposes only type ZERO_TRACE, HTTP status code, and credit charge state. History listing also includes request ID, completion time, duration and success.; zero_trace: optionalfalse
devicestringSearch as a mobile, tablet, or desktop device.; device: optional; mobile, tablet, desktopmobile
safestringSafe-search mode. active enables Google's filtering and Bing Strict SafeSearch; off requests unfiltered results. Search providers may still suppress content required by law or policy.; safe: optional; active, offactive
color_schemestringRequest the provider's light or dark result-page theme. This affects source-page presentation, not ranking, and providers may ignore it.; color_scheme: optional; light, darklight
spintegerBing-native spelling hint. The supported value is -1, an undocumented field observed in Bing-generated search URLs. Its behavior is best-effort and may change upstream.; sp: optional; -1-1
firstintegerBing's one-based native page position. Omit it or use 1 for the front page. Values greater than 1 require the next_page_token returned by the preceding response and must match that token; arbitrary offsets are rejected.; first: optional; min: 11
next_page_tokenstringOpaque Bing continuation token from the preceding response, valid for one hour and the same account. When supplied, first may be omitted. Resend the same query, device, targeting, time range, and search controls. Restart pagination if the token is expired, rejected, or predates the authenticated-token rollout.; next_page_token: optional; minLength: 1; maxLength: 24576-
ccstringTwo-letter Bing result-country code. Case-insensitive. The supported values follow Bing's published country-code list.; cc: optional; ar, au, at, be, br, ca, cl, dk, fi, fr, ... 36us
locationstringGeographic search origin, resolved to coordinates. Accepts a place name or a two-letter code from the supported cc list, such as fr for France or ca for Canada. Country codes are case-insensitive; other place names are used as supplied. At most 512 UTF-8 bytes without control characters. Mutually exclusive with coordinates; resend the same location value when paginating. Bing may also consider the query and other location signals.; location: optional; minLength: 1; maxLength: 512-
mktstringBing result market. Case-insensitive; mutually exclusive with cc. Resend it when paginating.; mkt: optional; ^[A-Za-z]{2,3}-[A-Za-z]{2}$en-US
filtersstringNative Bing filters copied from its search URL. At most 4096 UTF-8 bytes without control characters. Mutually exclusive with tbs; resend exactly when paginating.; filters: optional; minLength: 1; maxLength: 4096-
setlangstringBing interface-language hint. It affects Bing-generated interface strings, such as related-search labels; it does not restrict search results to that language. Bing may fall back to English when it cannot localize a value. See Microsoft's current `set_lang` guidance.; setlang: optionalen-US
coordinatesstringThe searcher's latitude and longitude. the data service sends these to Bing as a client-location signal with 100-meter accuracy. Bing may also consider the query, request IP, and other signals, so this biases local relevance rather than imposing a strict geographic filter. Pass a JSON object with numeric latitude and longitude as this query parameter.; coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
tbsstringGoogle-compatible time-range input translated to Bing's native date filter. Relative ranges use qdr:<unit>[amount], where the unit is d (day), w (week), m (month), or y (year), and the optional positive amount is at most 10,000. Custom inclusive ranges use cdr:1,cd_min:M/D/YYYY,cd_max:M/D/YYYY. Bing has day-level precision, so hour ranges (qdr:h) are rejected. Resend the same value with a filtered search's next_page_token.; tbs: optionalqdr:d

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • NOT (cc AND mkt); NOT (filters AND tbs); first > 1 => next_page_token; hourly qdr:h time filters are unsupported

Examples

bash
curl --get "https://api.apihop.ai/v1/bing-search/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Bing: Copilot answers

GET https://api.apihop.ai/v1/bing-search/copilot

Request parameters

FieldTypeConstraintsExample
querystringText to search for on the selected service. At most 8,192 UTF-8 bytes.; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192What is coffee?
countrystringTwo-letter country or storefront code, such as us or gb.; country: optional; ^[A-Za-z]{2}$-
languagestringProvider-supported language code, such as en.; language: optional-
devicestringDevice presentation for the source request.; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanDo not archive source or parsed response artifacts.; zero_trace: optionaltrue

Validation rules

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected

Examples

bash
curl --get "https://api.apihop.ai/v1/bing-search/copilot" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=What is coffee?"

Responses and errors

The native JSON response and numeric precision are preserved. The example below illustrates an empty successful result, not a live call. HTTP 400 means invalid input; 401 authentication required; 402 insufficient credit; 403 unavailable or unauthorized; 405 unsupported method; 429 rate limit; 5xx service or upstream failure. Keep X-Request-Id for diagnosis.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}