Ask Meta AI
curl --request GET \
--url https://scrapebadger.com/v1/meta-ai/ask \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/meta-ai/ask"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/meta-ai/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/meta-ai/ask",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/meta-ai/ask"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/meta-ai/ask")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/meta-ai/ask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"answer": "<string>",
"conversation_id": {},
"mode": "<string>",
"stream_terminated": true,
"used_dom_fallback": true,
"elapsed_ms": 123
}Ask
Ask Meta AI
Send a prompt to the real Meta AI assistant (meta.ai) and get its answer as structured JSON. Anonymous: no Meta account needed.
GET
/
v1
/
meta-ai
/
ask
Ask Meta AI
curl --request GET \
--url https://scrapebadger.com/v1/meta-ai/ask \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/meta-ai/ask"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/meta-ai/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/meta-ai/ask",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/meta-ai/ask"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/meta-ai/ask")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/meta-ai/ask")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"answer": "<string>",
"conversation_id": {},
"mode": "<string>",
"stream_terminated": true,
"used_dom_fallback": true,
"elapsed_ms": 123
}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
Parameters
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.
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
The assistant’s answer as Markdown-style text. Web-grounded answers cite their sources as inline Markdown links, such as
[1](https://…).Meta AI’s identifier for this exchange, returned for tracing. You cannot use it to continue the conversation.
true when the answer was read from the rendered page rather than the response stream. It is still the assistant’s full answer.Example
curl "https://scrapebadger.com/v1/meta-ai/ask?prompt=What%20is%20the%20tallest%20mountain%20in%20Africa%3F&country=US" \
-H "X-API-Key: YOUR_API_KEY" \
--max-time 120
const res = await fetch("https://scrapebadger.com/v1/meta-ai/ask", {
method: "POST",
headers: {
"X-API-Key": process.env.SCRAPEBADGER_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "What is the tallest mountain in Africa?",
country: "US",
}),
signal: AbortSignal.timeout(120_000),
});
const data = await res.json();
console.log(data.answer);
import requests
res = requests.post(
"https://scrapebadger.com/v1/meta-ai/ask",
headers={"X-API-Key": "YOUR_API_KEY"},
json={"prompt": "What is the tallest mountain in Africa?", "country": "US"},
timeout=120,
)
data = res.json()
print(data["answer"])
Response
{
"answer": "**Mount Kilimanjaro** in Tanzania.\n\nIts highest point, **Uhuru Peak**, reaches **5,895 meters (19,341 feet)** above sea level. [1](https://mountainfieldguide.com/mount-kilimanjaro/)",
"conversation_id": "80211fff-69c7-479b-8f8f-2e33818d5e4d",
"mode": "default",
"stream_terminated": true,
"used_dom_fallback": false,
"elapsed_ms": 9183
}
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.
| Code | HTTP | Meaning |
|---|---|---|
| validation | 422 | prompt is missing, empty, or longer than 4,000 characters, or country is not two letters. |
blocked | 422 | Meta AI served a challenge page instead of the assistant. Retry. |
rate_limited | 429 | Meta AI’s anonymous quota was reached for the session. Retry after a short pause. |
composer_not_found, no_frames, render_failed, native_failed, native_timeout, upstream_error | 502 | The live session did not produce an answer. Retry with backoff. |

