rawBase64 returns the bytes the site sent, Base64 encoded. Use it when you need the file itself, not its text.
Make a request
Get an API key in the Quickstart. This request returns the bytes of a small page.Read the response
data.rawBase64 is a Base64 string without a data: prefix. data.metadata.contentType says what the bytes are. This real response is cut. The full string was 3,164 characters and decodes to the page’s HTML, starting with <!DOCTYPE html>.
Options
Limits and errors
- The page is always read live. Stophy never answers
rawBase64from a stored copy, whatevermaxAgesays. - A page that answers with a 404 or 410 status, or cannot be read, costs nothing.
Price
$1 per 1,000 pages.rawBase64 adds nothing to the price of the page.
Related
- HTML returns the cleaned page or the raw HTML as text.
- PDFs and documents reads PDFs, CSV and Excel files.
- Freshness and caching explains stored copies.
- Scrape overview lists every format.