ChatGPT
curl --request GET \
--url "https://api.scraperapi.com/structured/chatgpt/search/v1?api_key=API_KEY&\
query=QUERY&output_format=OUTPUT_FORMAT&sources=BOOLEAN"import requests
payload = {
'api_key': 'API_KEY',
'query': 'QUERY',
'output_format': 'OUTPUT_FORMAT',
'sources': 'Boolean' #True/False
}
r = requests.get('https://api.scraperapi.com/structured/chatgpt/search/v1',params=payload)
print(r.text)import fetch from 'node-fetch';
fetch(
'https://api.scraperapi.com/structured/chatgpt/search/v1?api_key=API_KEY&query=QUERY&output_format=OUTPUT_FORMAT&sources=Boolean'
)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error(error);
});Parameters
Details
{
"query": "string", // the submitted prompt, echoed back
"url": "string|null", // result/thread URL for the answer
"model": "string|null", // model that produced the answer (see notes)
"answer": "string", // the full answer, in Markdown
"sources": [ // citations / web results (may be empty)
{
"title": "string",
"url": "string",
"domain": "string", // bare hostname, www. stripped
"snippet": "string" // may be empty when the engine gives none
}
],
"related_queries": ["string"] // follow-up suggestions (may be empty)
}Field
Type
Always present?
Notes
Specifics
Pricing
Last updated

