> For the complete documentation index, see [llms.txt](https://developers.oxylabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.oxylabs.io/api-reference/dedicated-scrapers/llm-and-ai-scrapers.md). Agents can also search and read this documentation through its [MCP server](https://developers.oxylabs.io/~gitbook/mcp).

# LLM & AI Scrapers

Reference for Web API's ChatGPT, Gemini, and Bing AI Mode scraper endpoints. Async-only, with parameters and response fields.

<table><thead><tr><th width="168.5">Scraper</th><th>Endpoints</th></tr></thead><tbody><tr><td><a href="#chatgpt">ChatGPT</a></td><td><code>/chatgpt</code></td></tr><tr><td><a href="#gemini">Gemini</a></td><td><code>/gemini</code></td></tr><tr><td><a href="#bing-ai-mode">Bing AI Mode</a></td><td><code>/bing/aimode</code></td></tr></tbody></table>

### ChatGPT

#### `POST /v1/async/scrape/chatgpt`

Returns ChatGPT's answer to a question.

**Modes:** `async`, `batch`

<table><thead><tr><th width="139.5">Name</th><th width="104.5">Type</th><th width="98">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td><td>yes</td><td>The question to ask</td></tr><tr><td><code>search</code></td><td>boolean</td><td>no</td><td><code>true</code> allows browsing for current information with citations. <code>false</code> answers from training data only. No neutral default</td></tr><tr><td><code>output</code></td><td>array of strings</td><td>no</td><td>Formats to return: <code>markdown</code>, <code>html</code>, <code>json</code>, <code>screenshot</code>. Default <code>["html"]</code>. <code>json</code> returns parsed fields. <code>screenshot</code> requires <code>run_js: true</code></td></tr><tr><td><code>json</code></td><td>object</td><td>no</td><td>Custom extraction: <code>{"prompt": string}</code> or <code>{"schema": object}</code>, never both. Overrides the built-in parser</td></tr><tr><td><code>location</code></td><td>string</td><td>no</td><td>Two-letter country code to fetch from, e.g. <code>DE</code></td></tr><tr><td><code>device</code></td><td>string</td><td>no</td><td><code>desktop</code> (default) or <code>mobile</code></td></tr><tr><td><code>callback_url</code></td><td>string</td><td>no</td><td>Webhook URL for the finished job. Async only. Malformed URLs are rejected with <code>400</code></td></tr><tr><td><code>storage</code></td><td>object</td><td>no</td><td>Delivers the result to a bucket instead of the response: <code>{"type": string, "url": string}</code>. <code>type</code> is <code>s3</code>, <code>s3_gzip</code>, <code>s3_compatible</code>, <code>gcs</code>, or <code>tos</code>. Async only. <code>url</code> is not validated</td></tr></tbody></table>

**Response fields** – `results[].json`

<table><thead><tr><th width="252">Field</th><th width="432">Description</th><th width="78">Type</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>The question sent to ChatGPT</td><td>string</td></tr><tr><td><code>response_text</code></td><td>Answer as plain text</td><td>string</td></tr><tr><td><code>markdown_text</code></td><td>Answer as Markdown</td><td>string</td></tr><tr><td><code>markdown_json</code></td><td>Answer as structured Markdown elements: <code>type</code>, <code>children</code>, <code>raw</code></td><td>array</td></tr><tr><td><code>citations</code></td><td>Sources related to the answer, the images, products and offers: <code>url</code>, <code>title</code>, <code>text</code>, <code>domain</code> (website, e.g. <code>rtings.com</code>), <code>source</code></td><td>array</td></tr><tr><td><code>citations[].text</code></td><td>Site name as shown by ChatGPT. May be missing for <code>images</code> sources</td><td>string</td></tr><tr><td><code>citations[].source</code></td><td>Source type: <code>text</code> = cited in the answer, <code>search</code> = read during web search but not cited, <code>images</code> = page an image comes from, <code>shopping</code> = product card store, <code>offers</code> = product offer store</td><td>string</td></tr><tr><td><code>links</code></td><td>Inline links in the answer: <code>url</code>, <code>text</code></td><td>array</td></tr><tr><td><code>images</code></td><td>Images shown in the answer, including product images and photo galleries: <code>title</code>, <code>image_url</code>, <code>thumbnail_url</code>, <code>description</code>, <code>citations</code></td><td>array</td></tr><tr><td><code>images[].image_url</code></td><td>Full-size image URL. For product images, same as <code>thumbnail_url</code></td><td>string</td></tr><tr><td><code>images[].description</code></td><td>Search phrase ChatGPT used to find the image. Not on product images</td><td>string</td></tr><tr><td><code>images[].citations</code></td><td>Pages the image comes from: <code>title</code>, <code>url</code></td><td>array</td></tr><tr><td><code>shopping_products</code></td><td>Products ChatGPT recommends: <code>title</code>, <code>url</code>, <code>price</code>, <code>price_str</code>, <code>currency</code>, <code>merchant</code>, <code>badge</code>, <code>description</code>, <code>rating</code>, <code>reviews_count</code>, <code>thumbnail</code>, <code>images</code> (product image URLs), <code>image_page_title</code>, <code>image_page_url</code>, <code>offers</code>, <code>citations</code></td><td>array</td></tr><tr><td><code>shopping_products[].offers</code></td><td>Merchant offers for the product: <code>merchant</code>, <code>price</code>, <code>price_str</code>, <code>currency</code>, <code>url</code>, <code>details</code></td><td>array</td></tr><tr><td><code>shopping_products[].citations</code></td><td>Sources cited for the product: <code>source</code> (website or publication name), <code>title</code>, <code>url</code></td><td>array</td></tr><tr><td><code>ads</code></td><td>Sponsored ads shown with the answer: <code>ad_type</code>, <code>heading</code>, <code>title</code>, <code>description</code>, <code>url</code>, <code>image_url</code>, <code>advertiser_info</code>, plus price fields on product ads</td><td>array</td></tr><tr><td><code>ads[].ad_type</code></td><td><code>product</code> when the ad shows a price, <code>text</code> otherwise. Optional</td><td>string</td></tr><tr><td><code>ads[].heading</code></td><td>Line shown above the ad, shared by every card in the same ad. Optional</td><td>string</td></tr><tr><td><code>ads[].price</code></td><td>Price. Product ads only</td><td>number</td></tr><tr><td><code>ads[].price_str</code></td><td>Price as displayed. Product ads only</td><td>string</td></tr><tr><td><code>ads[].currency</code></td><td>Price currency. Product ads only</td><td>string</td></tr><tr><td><code>ads[].price_strikethrough</code></td><td>Original, crossed-out price when the product is on sale; <code>price</code> is then the sale price. Optional</td><td>number</td></tr><tr><td><code>ads[].price_strikethrough_str</code></td><td>Original price as displayed. Optional</td><td>string</td></tr><tr><td><code>ads[].advertiser_info</code></td><td>Advertiser <code>name</code>, <code>url</code>, and logo: <code>image_data</code> (base64, when embedded) or <code>image_url</code> (when linked)</td><td>object</td></tr><tr><td><code>raw_response</code></td><td>ChatGPT’s raw streamed response</td><td>array of strings</td></tr></tbody></table>

Responses may differ between identical requests. There is no realtime path.

Parsed fields follow ChatGPT's current layout and can change when ChatGPT changes it.

### Gemini

#### `POST /v1/async/scrape/gemini`

Returns Gemini's answer to a question.

**Modes:** `async`, `batch`

<table><thead><tr><th width="149">Name</th><th width="103.5">Type</th><th width="99.5">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td><td>yes</td><td>The question to ask</td></tr><tr><td><code>output</code></td><td>array of strings</td><td>no</td><td>Formats to return: <code>markdown</code>, <code>html</code>, <code>json</code>, <code>screenshot</code>. Default <code>["html"]</code>. <code>json</code> returns parsed fields. <code>screenshot</code> requires <code>run_js: true</code></td></tr><tr><td><code>json</code></td><td>object</td><td>no</td><td>Custom extraction: <code>{"prompt": string}</code> or <code>{"schema": object}</code>, never both. Overrides the built-in parser</td></tr><tr><td><code>location</code></td><td>string</td><td>no</td><td>Two-letter country code to fetch from, e.g. <code>DE</code></td></tr><tr><td><code>device</code></td><td>string</td><td>no</td><td><code>desktop</code> (default) or <code>mobile</code></td></tr><tr><td><code>callback_url</code></td><td>string</td><td>no</td><td>Webhook URL for the finished job. Async only. Malformed URLs are rejected with <code>400</code></td></tr><tr><td><code>storage</code></td><td>object</td><td>no</td><td>Delivers the result to a bucket instead of the response: <code>{"type": string, "url": string}</code>. <code>type</code> is <code>s3</code>, <code>s3_gzip</code>, <code>s3_compatible</code>, <code>gcs</code>, or <code>tos</code>. Async only. <code>url</code> is not validated</td></tr></tbody></table>

**Response fields** – `results[].json`

<table><thead><tr><th width="181.546875">Field</th><th width="478.06640625">Description</th><th width="86.390625">Type</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>The question sent to Gemini</td><td>string</td></tr><tr><td><code>response_text</code></td><td>Answer as plain text</td><td>string</td></tr><tr><td><code>markdown_text</code></td><td>Answer as Markdown</td><td>string</td></tr><tr><td><code>citations</code></td><td>Sources cited in the answer: <code>title</code>, <code>url</code>, <code>text</code>, <code>description</code>. Only when Gemini searched the web</td><td>array</td></tr><tr><td><code>additional_results</code></td><td><p><code>sources_results</code> - web pages Gemini consulted while answering (<code>url</code>, and optional <code>title</code>). </p><p><code>images_results</code> - images shown in the answer (<code>title</code>, <code>image_url</code>, and optional <code>image_from_url</code> - the page the image comes from).</p><p><code>videos_results</code> - YouTube videos shown in the answer (<code>url</code>, <code>title</code>, and optional <code>thumbnail</code>).</p></td><td>object</td></tr><tr><td><code>related_queries</code></td><td>Follow-up questions Gemini suggests under the answer</td><td>array of strings</td></tr><tr><td><code>links</code></td><td>Inline links in the answer: <code>url</code>, <code>text</code>. <code>text</code> can be empty if there is no text</td><td>array</td></tr><tr><td><code>model</code></td><td>The model that answered</td><td>string</td></tr><tr><td><code>raw_response</code></td><td>Raw response from Gemini</td><td>array of strings</td></tr></tbody></table>

Responses may differ between identical requests. There is no realtime path.

### Bing AI Mode

#### `POST /v1/async/scrape/bing/aimode`

Returns Bing AI Mode's response to a prompt, with its cited sources.

**Modes:** `async`, `batch`

<table><thead><tr><th width="139.5">Name</th><th width="94.5">Type</th><th width="99.5">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>query</code></td><td>string</td><td>yes</td><td>The prompt to send to Bing AI Mode. Up to 8,000 characters</td></tr><tr><td><code>output</code></td><td>array of strings</td><td>no</td><td>Formats to return: <code>markdown</code>, <code>html</code>, <code>json</code>, <code>screenshot</code>. Default <code>["html"]</code>. <code>json</code> returns parsed fields. screenshot requires <code>run_js: true</code></td></tr><tr><td><code>json</code></td><td>object</td><td>no</td><td>Custom extraction: <code>{"prompt": string}</code> or <code>{"schema": object}</code>, never both. Overrides the built-in parser</td></tr><tr><td><code>location</code></td><td>string</td><td>no</td><td>Two-letter country code to fetch from, e.g. <code>DE</code>. Country level only: city names are rejected with <code>400</code></td></tr><tr><td><code>device</code></td><td>string</td><td>no</td><td><code>desktop</code> (default) or <code>mobile</code></td></tr><tr><td><code>callback_url</code></td><td>string</td><td>no</td><td>Webhook URL for the finished job. Async only. Malformed URLs are rejected with <code>400</code></td></tr><tr><td><code>storage</code></td><td>object</td><td>no</td><td>Delivers the result to a bucket instead of the response: <code>{"type": string, "url": string}</code>. <code>type</code> is <code>s3</code>, <code>s3_gzip</code>, <code>s3_compatible</code>, <code>gcs</code>, or <code>tos</code>. Async only. <code>url</code> is not validated</td></tr></tbody></table>

**Response fields** – `results[].json`

<table><thead><tr><th width="178">Field</th><th width="489.5">Description</th><th width="95">Type</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>The prompt sent to Bing AI Mode</td><td>string</td></tr><tr><td><code>response_text</code></td><td>Answer as plain text. Math formulas are kept as TeX</td><td>string</td></tr><tr><td><code>markdown_text</code></td><td>Answer as Markdown</td><td>string</td></tr><tr><td><code>markdown_json</code></td><td>Answer as structured Markdown elements: <code>type</code>, <code>children</code>, <code>raw</code>, <code>attrs</code></td><td>array</td></tr><tr><td><code>citations</code></td><td>Sources cited in the answer: <code>url</code>, <code>text</code> (the part of the answer the source supports), optional <code>title</code> and <code>description</code> (snippet from the cited page)</td><td>array</td></tr><tr><td><code>links</code></td><td>Inline links in the answer: <code>url</code>, <code>text</code>. Only when the answer contains links</td><td>array</td></tr><tr><td><code>additional_results</code></td><td><code>sources_results</code>: pages Bing consulted while answering (<code>url</code>, optional <code>title</code>). Includes every cited page plus uncited ones</td><td>object</td></tr></tbody></table>

Responses may differ between identical requests. There is no realtime path.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.oxylabs.io/api-reference/dedicated-scrapers/llm-and-ai-scrapers.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
