curl --request POST \
--url https://api.scrapeunblocker.com/getImage \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/getImage"
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/getImage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Fetch an image in its original format
Downloads the image at url through rotating proxies and returns its bytes exactly as the image host serves them, with the host’s own Content-Type (JPEG, PNG, WebP, AVIF, GIF incl. animation, SVG, ICO, …). Nothing is re-encoded. When the host answers with a bot challenge, a real browser opens the image and clears it. url must point at the image itself - for a page, use /getPageSource and take the image URL from its HTML.
curl --request POST \
--url https://api.scrapeunblocker.com/getImage \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/getImage"
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/getImage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
The image URL to fetch.
Two-letter ISO country code (e.g. de, us) of the country the request is made from, so the site serves that country's prices, language and content. Omit it and the country is picked for you. An unsupported code answers 400 with the list of available countries.
Response
The image bytes, unchanged, with the image's own Content-Type. X-Destination-URL carries the final URL after redirects. Billed.

