curl --request POST \
--url https://api.scrapeunblocker.com/ai/gemini \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/ai/gemini"
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/gemini', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Ask Google Gemini and get its answer and cited sources
Asks Google Gemini (gemini.google.com, signed out) one question and returns answer (plain text) and answerMarkdown, citations (pages cited inline: position, title, url, domain, siteName, description, citedText - the answer sentences that page backs - and firstCitedAt, the character offset of the first of them), sources (pages Gemini consulted when it searched the web: position, title, url, domain), webSearch (whether it searched the web), followUpPrompts (label, prompt), richBlocks (cards Gemini drew that have no text, e.g. a sports score or image strip, left out of the answer), model (the model label the app shows), location and locationCountry (where Gemini placed the visitor), complete and conversationId. country asks from that country. Answers vary between identical calls, as they do for people. One unit per call.
curl --request POST \
--url https://api.scrapeunblocker.com/ai/gemini \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/ai/gemini"
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/gemini', 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 Gemini, as a user would type it, e.g. 'best CRM for small business' (max 4000 characters). Each call starts a new conversation.
Two-letter country code to ask from, e.g. US, GB, DE. Gemini answers for where it locates the visitor (local results, currency, language defaults); locationCountry in the answer says where it placed this call. Leave blank for any European location.
Response
JSON with Gemini's answer and its sources.

