API Documentation

Bing SERP API: Parameters and Response

Bing search controls, native results, continuation tokens and billing.

Test API

Search Bing with GoAnyAPI for ranked results and available SERP features, using market, location, device and time controls.

Test the Bing SERP API →

Endpoint and authentication

GET https://api.goanyapi.com/api/v1/bing-serp
Authorization: Bearer YOUR_API_KEY

With the current configuration, each successful request costs 2 credits.

Request parameters

ParameterTypeRequiredDescription and constraints
querystringYesSearch query; at most 8192 UTF-8 bytes.
Maximum characters: 8192
coffee shops
ccstringNoResult country, case-insensitive; defaults to us when mkt is absent. Mutually exclusive with mkt.
ar / AR / Ar / aR / au / AU / Au / aU / at / AT / At / aT / be / BE / Be / bE / br / BR / Br / bR / ca / CA / Ca / cA / cl / CL / Cl / cL / dk / DK / Dk / dK / fi / FI / Fi / fI / fr / FR / Fr / fR / de / DE / De / dE / hk / HK / Hk / hK / in / IN / In / iN / id / ID / Id / iD / it / IT / It / iT / jp / JP / Jp / jP / kr / KR / Kr / kR / my / MY / My / mY / mx / MX / Mx / mX / nl / NL / Nl / nL / nz / NZ / Nz / nZ / no / NO / No / nO / cn / CN / Cn / cN / pl / PL / Pl / pL / pt / PT / Pt / pT / ph / PH / Ph / pH / ru / RU / Ru / rU / sa / SA / Sa / sA / za / ZA / Za / zA / es / ES / Es / eS / se / SE / Se / sE / ch / CH / Ch / cH / tw / TW / Tw / tW / tr / TR / Tr / tR / gb / GB / Gb / gB / us / US / Us / uS / vn / VN / Vn / vN
Default: us
mktstringNoResult market, such as fr-FR; case-insensitive and mutually exclusive with cc.
^[A-Za-z]{2}-[A-Za-z]{2}$
fr-FR
setlangstringNoInterface-language hint, not a result-language filter; Bing may fall back to English.
Default: en-US
en-US
devicestringNoDevice context.
desktop / mobile / tablet
next_page_tokenstringNoOpaque token from result.next_page_token. Expires after one hour; resend the same query and search controls. Restart without token if expired or rejected.
locationstringNoSearch origin, a place name or supported country code; at most 512 UTF-8 bytes, no control characters. Mutually exclusive with coordinates.
Maximum characters: 512
^[^\x00-\x1f\x7f]+$
Austin, Texas
coordinatesobjectNoLocation bias, not a geographic boundary. Mutually exclusive with location. In GET requests serialize this object as JSON.
{"latitude":30.2672,"longitude":-97.7431}
safestringNoSafe search: active enables strict filtering; off requests unfiltered results.
active / off
tbsstringNoTime range: qdr:d/w/m/y with optional positive amount up to 10000, or cdr:1,cd_min:M/D/YYYY,cd_max:M/D/YYYY. No hour ranges. Mutually exclusive with filters.
^(?:qdr:[dwmy](?:[1-9][0-9]{0,3}|10000)?|cdr:1,cd_min:(?:[1-9]|1[0-2])/(?:[1-9]|[12][0-9]|3[01])/[0-9]{4},cd_max:(?:[1-9]|1[0-2])/(?:[1-9]|[12][0-9]|3[01])/[0-9]{4})$
qdr:w
filtersstringNoNative Bing URL filters; at most 4096 UTF-8 bytes, no control characters. Mutually exclusive with tbs; preserve exactly when paginating.
Maximum characters: 4096
^[^\x00-\x1f\x7f]+$
firstintegerNoOne-based page position, default 1. Values above 1 require the preceding next_page_token and must match it; when using a token, first may be omitted.
Default: 1
1 – 9007199254740991
spintegerNoBest-effort Bing spelling hint; only -1 is supported.
-1
color_schemestringNoSearch-page presentation; does not change ranking.
light / dark
outputstringNoContent format; html contains Brotli-compressed Base64 source HTML, md contains Markdown. The JSON response envelope is retained.
json / html / md
Default: json
htmlbooleanNoReturn encoded source HTML; alias for output=html. Incompatible with json_restrictor.
Default: false
json_restrictorstringNoSelect content fields using comma-separated paths, indices, [start:end], [] and .{a,b}; at most 128 selections and 16 levels. Example: results[0:3].{title,url,snippet},has_next_page. Incompatible with HTML output.
results[0:3].{title,url,snippet},has_next_page
zero_tracebooleanNoDo not archive search acquisition artifacts. GoAnyAPI request history and billing records remain unchanged; this is not a request-history deletion option.
Default: false
no_cachebooleanNoCompatibility flag; either value fetches fresh results and normal success billing applies.
Default: false

Omit unused optional parameters. In GET URLs, write booleans as true / false and serialize coordinates as a URL-encoded JSON object.

The pairs cc / mkt, location / coordinates, and tbs / filters are mutually exclusive. HTML output cannot be combined with json_restrictor.

Request example

GET /api/v1/bing-serp?query=ai%20image&cc=us&setlang=en-US&device=desktop
Authorization: Bearer YOUR_API_KEY

Coordinates before URL encoding:

{
  "latitude": 30.2672,
  "longitude": -97.7431
}

Location biases relevance rather than defining a geographic boundary. setlang is an interface-language hint, not a result-language restriction.

Pagination

Read data.result.next_page_token and resend the same query, device, market, location, time range and filters:

GET /api/v1/bing-serp?query=ai%20image&cc=us&setlang=en-US&device=desktop&next_page_token=TOKEN_FROM_PREVIOUS_RESPONSE
Authorization: Bearer YOUR_API_KEY

Tokens are bound to their search context and expire after one hour. Stop when there is no token. Restart from the first page if a token expires or is rejected. You may omit first; a value above 1 requires a matching continuation token. Arbitrary offsets are unsupported.

Response example

This JSON example was captured on November 2, 2026. Its continuation token is a placeholder and cannot be used for pagination. No fixed price is embedded in the example; actual charges appear in live responses and the current pricing configuration.

{  "code": "ok",  "message": "Example response",  "data": {    "endpoint": "bing-serp",    "query": {      "query": "ai image"    },    "result": {      "format": "json",      "content": {        "has_next_page": true,        "results": [          {            "classification": {},            "display_url": "deepai.org › machine-learning-model › text2img",            "domain": "deepai.org",            "domain_info": {              "category": "",              "sld": "deepai",              "tld": "org"            },            "engine": "bing",            "favicon": "https://deepai.org/favicon.ico",            "id": "s_e077d58bce1c9b05",            "position": {              "absolute": 1            },            "rank": 1,            "snippet": "Whether you're a creator, developer, or entrepreneur, DeepAI's Free Online AI Image Generator gives you the power to visualize …",            "source_name": "deepai.org",            "thumbnail": "",            "title": "AI Image Generator - DeepAI",            "tracking_url": "",            "type": "organic",            "url": "https://deepai.org/machine-learning-model/text2img"          },          {            "classification": {},            "display_url": "bing.com › images › create › ai-image-generator",            "domain": "bing.com",            "domain_info": {              "category": "",              "sld": "bing",              "tld": "com"            },            "engine": "bing",            "favicon": "https://bing.com/favicon.ico",            "id": "s_6371a9eb2508c4c0",            "position": {              "absolute": 2            },            "rank": 2,            "snippet": "Turn text into AI art, photos, and visuals instantly, all for free.",            "source_name": "bing.com",            "thumbnail": "",            "title": "Free AI Image Generator - Bing Image Creator",            "tracking_url": "",            "type": "organic",            "url": "https://www.bing.com/images/create/ai-image-generator"          },          {            "classification": {},            "display_url": "perchance.org › ai-text-to-image-generator",            "domain": "perchance.org",            "domain_info": {              "category": "",              "sld": "perchance",              "tld": "org"            },            "engine": "bing",            "favicon": "https://perchance.org/favicon.ico",            "id": "s_786b2022298e8794",            "position": {              "absolute": 3            },            "rank": 3,            "snippet": "Use this AI to generate high quality art, photos, cartoons, drawings, anime, thumbnails, pfps, and more. Create OCs, anime …",            "source_name": "perchance.org",            "thumbnail": "",            "title": "AI Image Generator (free, no sign-up, unlimited) - Perchance",            "tracking_url": "",            "type": "organic",            "url": "https://perchance.org/ai-text-to-image-generator"          },          {            "classification": {},            "display_url": "gemini.google › overview › image-generation",            "domain": "gemini.google",            "domain_info": {              "category": "",              "sld": "gemini",              "tld": "google"            },            "engine": "bing",            "favicon": "https://gemini.google/favicon.ico",            "id": "s_fac4dce178da0a5a",            "position": {              "absolute": 4            },            "rank": 4,            "snippet": "With Nano Banana 2, Gemini's AI image generator and photo editor, you can create high-quality images and edit photos into …",            "source_name": "gemini.google",            "thumbnail": "",            "title": "Nano Banana 2 - Gemini AI image generator & photo editor",            "tracking_url": "",            "type": "organic",            "url": "https://gemini.google/overview/image-generation"          },          {            "classification": {},            "display_url": "fotor.com › ai-image-generator",            "domain": "fotor.com",            "domain_info": {              "category": "",              "sld": "fotor",              "tld": "com"            },            "engine": "bing",            "favicon": "https://fotor.com/favicon.ico",            "id": "s_20ac617e4d648a0a",            "position": {              "absolute": 5            },            "rank": 5,            "snippet": "Convert text to image with Fotor's free AI image generator. Explore industry-leading AI models, strong prompt adherence & high …",            "source_name": "fotor.com",            "thumbnail": "",            "title": "Free AI Image Generator - Text to Image AI (No Signup) | Fotor",            "tracking_url": "",            "type": "organic",            "url": "https://www.fotor.com/ai-image-generator"          },          {            "classification": {},            "display_url": "leonardo.ai › ai-image-generator",            "domain": "leonardo.ai",            "domain_info": {              "category": "",              "sld": "leonardo",              "tld": "ai"            },            "engine": "bing",            "favicon": "https://leonardo.ai/favicon.ico",            "id": "s_d9e939b49914b6e1",            "position": {              "absolute": 6            },            "rank": 6,            "snippet": "Create AI images from text or visuals. Leonardo's AI image generator helps you generate, refine, and scale quality images for any …",            "source_name": "leonardo.ai",            "thumbnail": "",            "title": "AI Image Generator - Create AI Images for Free",            "tracking_url": "",            "type": "organic",            "url": "https://leonardo.ai/ai-image-generator"          },          {            "classification": {},            "display_url": "craiyon.com › en",            "domain": "craiyon.com",            "domain_info": {              "category": "",              "sld": "craiyon",              "tld": "com"            },            "engine": "bing",            "favicon": "https://craiyon.com/favicon.ico",            "id": "s_bf54975d51502c3a",            "position": {              "absolute": 7            },            "rank": 7,            "snippet": "Create AI images from text with Craiyon. Generate, explore, and edit images online.",            "source_name": "craiyon.com",            "thumbnail": "",            "title": "Free AI Image Generator - Craiyon",            "tracking_url": "",            "type": "organic",            "url": "https://www.craiyon.com/en"          },          {            "classification": {},            "display_url": "free.ai › image",            "domain": "free.ai",            "domain_info": {              "category": "",              "sld": "free",              "tld": "ai"            },            "engine": "bing",            "favicon": "https://free.ai/favicon.ico",            "id": "s_f541d2234d954d9f",            "position": {              "absolute": 8            },            "rank": 8,            "snippet": "Free AI Image Generator creates images from text descriptions using open-source models we run on our own GPUs: Stable …",            "source_name": "free.ai",            "thumbnail": "",            "title": "Free AI Image Generator - Create Images from Text | Free.ai",            "tracking_url": "",            "type": "organic",            "url": "https://free.ai/image"          },          {            "classification": {},            "display_url": "visualgpt.io › ai-image-generator",            "domain": "visualgpt.io",            "domain_info": {              "category": "",              "sld": "visualgpt",              "tld": "io"            },            "engine": "bing",            "favicon": "https://visualgpt.io/favicon.ico",            "id": "s_6a5108a4c1291ab4",            "position": {              "absolute": 9            },            "rank": 9,            "snippet": "VisualGPT's AI Image Generator is a powerful AI-powered tool that turns words into unique images. Users can generate illustrations, …",            "source_name": "visualgpt.io",            "thumbnail": "",            "title": "AI Image Generator – Free Online Text to Image, No Sign-Up",            "tracking_url": "",            "type": "organic",            "url": "https://visualgpt.io/ai-image-generator"          },          {            "classification": {},            "display_url": "adobe.com › products › firefly › features › text-to…",            "domain": "adobe.com",            "domain_info": {              "category": "",              "sld": "adobe",              "tld": "com"            },            "engine": "bing",            "favicon": "https://adobe.com/favicon.ico",            "id": "s_5103f12230b18a39",            "position": {              "absolute": 10            },            "rank": 10,            "snippet": "Easily create AI-generated images online for free with Adobe Firefly. Input simple text prompts and our AI image generator will do the …",            "source_name": "adobe.com",            "thumbnail": "",            "title": "Free Online AI Text to Image Generator | Adobe Firefly",            "tracking_url": "",            "type": "organic",            "url": "https://www.adobe.com/products/firefly/features/text-to-image.html?msockid=02308a37df8766d100a39232dec46756"          }        ],        "search_parameters": {          "cc": "us",          "color_scheme": "",          "coordinates": {            "latitude": 0,            "longitude": 0          },          "device": "",          "engine": "bing",          "filters": "",          "first": 0,          "location": "",          "mkt": "",          "q": "ai image",          "safe": "",          "setlang": "en-US",          "sp": 0,          "tbs": "",          "type": "search"        },        "serp_features": []      },      "next_page_token": "EXAMPLE_ONLY_RUN_A_SEARCH_FOR_A_FRESH_TOKEN",      "pagination_limited": false    }  }}

Response fields

FieldMeaning
data.endpointFixed value bing-serp
data.costCreditsCredits consumed by this request
data.remainingCreditsBalance after deduction
data.queryValidated request parameters
data.result.formatjson, md or html+br+base64
data.result.next_page_tokenNext-page token; stop when absent or empty
data.result.pagination_limitedWhether pagination is limited, when returned
data.result.contentJSON object, Markdown string, or Brotli-compressed Base64 HTML string
data.result.content.search_parametersSearch context; the query field here is q, and the engine field is engine
data.result.content.has_next_pageWhether another page exists
data.result.content.results[]Results with native types and ranks
data.result.content.serp_features[]Available features, including AI summaries when present

Result records may contain id, rank, type, title, url, display_url, tracking_url, snippet, domain, favicon, thumbnail, source_name, position.absolute, engine, domain_info and classification. domain_info may contain tld, sld and category.

Feature records may contain id, engine, type, title, text, items, links, source_result_ids, position, confidence and extracted_at. No particular feature is guaranteed.

Missing fields, null, empty strings and empty arrays retain their actual values. Missing titles, images or other presentation fields do not make a search fail. With json_restrictor, unselected or absent fields may be omitted.

Output and records

output=md returns Markdown. output=html or html=true returns encoded HTML. The outer GoAnyAPI response remains JSON. The Tester does not execute returned HTML.

zero_trace=true disables search acquisition artifact archiving; GoAnyAPI request history and billing records remain unchanged. no_cache is a compatibility flag: either value fetches fresh results and normal billing applies.

Billing and errors

Each successful request uses the database-configured rate, including valid empty results and every successful continuation. Invalid parameters, invalid tokens and actual search failures do not consume credits. Errors retain GoAnyAPI's code / message format.

Updating an existing integration

The URL, GoAnyAPI authentication and billing rules remain unchanged. Legacy q, setLang, brd_browser and detailed device profiles are no longer accepted. Use the parameters above. Read format / content / next_page_token instead of the old general / organic / pagination structure.