JustSERPDocs
Bing

Bing Copilot Search

The AI answer Bing Copilot Search ("AI Mode") writes for a question, logged out, answered as the document: `search_metadata`, `search_parameters`, `search_information` (empty), `text_blocks` (paragraphs, headers, lists, tables, images, code), `markdown` and `reference_links` (the sources it cites, by the numbers `text_blocks[].reference_indexes` use).

GET
/v1/bing/copilot

The AI answer Bing Copilot Search ("AI Mode") writes for a question, logged out, answered as the document: search_metadata, search_parameters, search_information (empty), text_blocks (paragraphs, headers, lists, tables, images, code), markdown and reference_links (the sources it cites, by the numbers text_blocks[].reference_indexes use). Bing's refusal ("There are no results for this question") is retried. zero_retention is not handled.

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
q*string

The question.

Lengthlength <= 1000
device?"desktop"

Anything but desktop is a 400.

Default"desktop"
Value in"desktop"
market_code?string

language-country from Bing's list (en-us...). Not with country_code.

country_code?string

Two letters from Bing's list.

Default"US"
language?string

Bing's list.

Default"en"

Response Body

The answer, as the document. When the page could not be parsed, the usual envelope.

application/json
  1. response

The Bing Copilot Search document.

search_metadata*
search_parameters*

The request's own fields as sent, engine first, without cancel_token.

search_information*

The parser's own, e.g. yelp_search's; otherwise {}.

text_blocks?array<>
markdown?string

The blocks as text (a header is ###; citation chips are left out).

reference_links?array<>
[key: string]?any
Example Request
curl -X GET 'https://api.justserp.com/v1/bing/copilot?q=what+is+the+tallest+mountain+in+europe&market_code=en-us'
Example Response
{  "search_metadata": {    "id": "string",    "status": "Success",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {},  "text_blocks": [    {      "type": "paragraph",      "answer": "string",      "items": [        {          "type": "string",          "answer": "string",          "reference_indexes": [            0          ]        }      ],      "reference_indexes": [        0      ],      "image": "string",      "table": {        "headers": [          "string"        ],        "rows": [          [            "string"          ]        ]      },      "code": "string",      "language": "string"    }  ],  "markdown": "string",  "reference_links": [    {      "index": 0,      "title": "string",      "link": "string",      "snippet": "string",      "source": "string",      "displayed_link": "string"    }  ]}