Skip to main content
GET
Ask Meta AI
Send one prompt to Meta AI and receive its complete answer. Every request is a fresh, anonymous conversation. GET accepts query parameters; POST accepts the same fields in a JSON body. Credits: 20 per successful answer
Most answers take 10–40 seconds. Allow up to 120 seconds. Blocked, empty, and failed answers return non-2xx responses and are not billed.

Authorization

string
required
Your ScrapeBadger API key.

Parameters

string
required
The question or instruction to send. 1 to 4,000 characters. Include all the context the question needs, because no earlier conversation is carried over.
string
default:"US"
Two-letter ISO 3166-1 alpha-2 code for the country the question is asked from, such as US, GB, or CA. Location-sensitive questions are answered for that country. Meta AI does not serve every country: German (DE) and French (FR) asks currently fail with an unbilled 502.

Response

string
The assistant’s answer as Markdown-style text. Web-grounded answers cite their sources as inline Markdown links, such as [1](https://…).
string | null
Meta AI’s identifier for this exchange, returned for tracing. You cannot use it to continue the conversation.
string
The assistant mode that produced the answer. Currently always default.
boolean
true when Meta AI’s response stream ended with its own end marker.
boolean
true when the answer was read from the rendered page rather than the response stream. It is still the assistant’s full answer.
integer
Time spent in the Meta AI session, in milliseconds.

Example

Response

Errors

Upstream errors use {"detail":{"code":"...","message":"..."}}. A 502 can also arrive as a plain-text error code: 502 body from our edge. Non-2xx responses are not billed.