For the complete documentation index, see llms.txt. This page is also available as Markdown.

LLM & AI Scrapers

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

Scraper
Endpoints

/chatgpt

/gemini

/perplexity

ChatGPT

POST /v1/async/scrape/chatgpt

Returns ChatGPT's answer to a question.

Modes: async, batch

Name
Type
Required
Description

query

string

yes

The question to ask

search

boolean

no

true allows browsing for current information with citations. false answers from training data only. No neutral default

output

array of strings

no

Formats to return: markdown, html, json, screenshot. Default ["html"]. json returns parsed fields. screenshot requires run_js: true

json

object

no

Custom extraction: {"prompt": string} or {"schema": object}, never both. Overrides the built-in parser

location

string

no

Two-letter country code to fetch from, e.g. DE

device

string

no

desktop (default) or mobile

callback_url

string

no

Webhook URL for the finished job. Async only. Malformed URLs are rejected with 400

storage

object

no

Delivers the result to a bucket instead of the response: {"type": string, "url": string}. type is s3, s3_gzip, s3_compatible, gcs, or tos. Async only. url is not validated

Response fields – results[].json

Field
Description
Type

prompt

The question sent to ChatGPT

string

response_text

Answer as plain text

string

markdown_text

Answer as Markdown

string

markdown_json

Answer as structured Markdown elements

array

citations

Sources cited in the answer: title, url, text

array

links

Inline links in the answer: url, text

array

shopping_products

Products ChatGPT recommends: title, url, price, price_str, currency, merchant, badge, description, rating, thumbnail, image_page_title, image_page_url, citations (source, title, url) and offers (merchant, price, price_str, currency, url, details).

array

raw_response

ChatGPT's raw streamed response

array of strings

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

Name
Type
Required
Description

query

string

yes

The question to ask

output

array of strings

no

Formats to return: markdown, html, json, screenshot. Default ["html"]. json returns parsed fields. screenshot requires run_js: true

json

object

no

Custom extraction: {"prompt": string} or {"schema": object}, never both. Overrides the built-in parser

location

string

no

Two-letter country code to fetch from, e.g. DE

device

string

no

desktop (default) or mobile

callback_url

string

no

Webhook URL for the finished job. Async only. Malformed URLs are rejected with 400

storage

object

no

Delivers the result to a bucket instead of the response: {"type": string, "url": string}. type is s3, s3_gzip, s3_compatible, gcs, or tos. Async only. url is not validated

Response fields – results[].json

Field
Description
Type

prompt

The question sent to Gemini

string

response_text

Answer as plain text

string

markdown_text

Answer as Markdown

string

citations

Sources cited in the answer: title, url, text, description. Only when Gemini searched the web

array

additional_results

sources_results - web pages Gemini consulted while answering (url, and optional title).

images_results - images shown in the answer (title, image_url, and optional image_from_url - the page the image comes from).

videos_results - YouTube videos shown in the answer (url, title, and optional thumbnail).

object

related_queries

Follow-up questions Gemini suggests under the answer

array of strings

links

Inline links in the answer: url, text. text can be empty if there is no text

array

model

The model that answered

string

raw_response

Raw response from Gemini

array of strings

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

Perplexity

POST /v1/async/scrape/perplexity

Returns Perplexity's answer to a question, with its cited sources.

Modes: async, batch

Name
Type
Required
Description

query

string

yes

The question to ask

output

array of strings

no

Formats to return: markdown, json. Default json, it returns parsed fields.

json

object

no

Custom extraction: {"prompt": string} or {"schema": object}, never both. Overrides the built-in parser

location

string

no

Two-letter country code to fetch from, e.g. DE

device

string

no

desktop (default) or mobile

callback_url

string

no

Webhook URL for the finished job. Async only. Malformed URLs are rejected with 400

storage

object

no

Delivers the result to a bucket instead of the response: {"type": string, "url": string}. type is s3, s3_gzip, s3_compatible, gcs, or tos. Async only. url is not validated

Response fields – results[].json

Field
Description
Type

prompt_query

The question sent to Perplexity

string

answer_results

The answer

array

answer_results_md

Answer as Markdown

string

additional_results

sources_results: pages Perplexity used as sources (title, url)

object

related_queries

Related queries suggested by Perplexity

array of strings

model

The model that answered

string

raw_response

Raw response from Perplexity

array of strings

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

Last updated

Was this helpful?