Fetch an image in its original format
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>"
}
]
}Scraping
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.
Fetch an image in its original format
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>"
}
]
}
