curl --request POST \
--url https://api.scrapeunblocker.com/ai/chatgpt \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/ai/chatgpt"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/ai/chatgpt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Ask ChatGPT and get its answer and cited sites
Asks ChatGPT (chatgpt.com, signed out) one question and returns its finished answer: answer (plain text) and answerMarkdown, citations (the source pills ChatGPT attaches to claims: position, siteName, domain, moreSources - how many further sources the pill groups - and citedText, the answer text it backs), links (links written into the answer: position, title, url, domain), sources (every site cited or linked, once), webSearch (whether ChatGPT searched the web), model (null: signed-out ChatGPT does not show it) and conversationId. Signed-out ChatGPT shows the full URL of a cited page only on hover, so citations carry the site and domain, not the page URL. country asks from that country. Answers take 15-60 s and vary between identical calls, as they do for people. One unit per call; a 503 when ChatGPT capacity is busy is not billed.
curl --request POST \
--url https://api.scrapeunblocker.com/ai/chatgpt \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/ai/chatgpt"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/ai/chatgpt', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
The question to ask ChatGPT, as a user would type it, e.g. 'best CRM for small business' (max 2000 characters). Each call starts a new conversation.
Two-letter country code to ask from, e.g. US, GB, DE. ChatGPT tailors local results to where the visitor is. Leave blank for any location.
Response
JSON with ChatGPT's answer and the sites it cites.

