Skip to content
Login Sign up

Binary files

Point the API at any binary file under 2MB (images, PDFs, audio, etc.) and it returns a JSON object containing a base64_string key with the file encoded as a data URI.

GET https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<BINARY_FILE_URL>&binary_response=1
ParameterTypeRequiredDescription
api_keystringyesYour Web Scraping API key
urlstringyesURL of the binary file to fetch.
binary_responseintegernoSet to 1 to force the binary response format.
Terminal window
curl "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F2%2F2f%2FGoogle_2015_logo.svg%2F440px-Google_2015_logo.svg.png"
{
"base64_string": "data:image/webp;base64,UklGRlobAABXRUJQVlA4TE4bAAA..."
}