Skip to content
OSINTtools.io

ScraperAPI API

Send a URL with your key and get the page's HTML back, fetched through the provider's proxy pool; JSON endpoints for some sites.

Base URL
https://api.scraperapi.com
Sign-in
API key
Free tier
Free trial
Pricing
Credits
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from docs.scraperapi.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

ScraperAPI fetches a web page for you through its own proxies and browsers and returns the page's content. An investigator uses it to retrieve pages that block direct requests or need JavaScript, such as a profile page or a search result.

The synchronous API is a single GET to https://api.scraperapi.com with your api_key and the target url. Put ScraperAPI's own parameters before url so they do not collide with parameters inside the target address. The docs recommend a 70-second client timeout, because failed requests are retried for up to 70 seconds before a 500 is returned.

Each request spends credits, and some options cost more (rendering, premium and ultra premium proxies). The docs also describe an async API, a proxy port method, structured data endpoints, a crawler and DataPipeline; those are not covered here.

Quick start

  1. Get a key

    Create an account with ScraperAPI and copy your api key (free trial). Where to get it

  2. Make your first request

    Fetch a page through ScraperAPI's proxies and return its content.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.scraperapi.com/?url=https%3A%2F%2Fexample.com%2F&api_key=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    <!doctype html><html><head><title>Example Domain</title></head><body><h1>Example Domain</h1></body></html>

Authentication

Send your API key in the api_key query parameter of every request.

Sent as the api_key query parameter on every request.

Get a key from ScraperAPI

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Concurrent request limit depends on the plan; too many simultaneous requests return 429. Request size limit of 50MB.

Free trial. Pricing: credits.

Errors

StatusMeaning
400Malformed request; check the URL format
401Unauthorized; the API key is not valid
403All API credits for the monthly cycle are used
404The requested page does not exist (still charged)
429Too many simultaneous requests for the plan
500Request failed after 70 seconds of retries (not charged)

Scrape

  • Takes: URL
  • Active: contacts the target
  • Cost: render=true 10 credits; premium=true 10 (25 with render); ultra_premium=true 30 (75 with render)

Returns the content of the target URL. Put ScraperAPI parameters before url. Rendering and premium options cost more credits.

Query parameters

urlstringrequiredtakes your url

The page to fetch

Example: https://example.com/
renderboolean

Run JavaScript and return the rendered HTML

Example: true
country_codestring

Send the request from a proxy in this country

Example: us
premiumboolean

Use residential and mobile IPs; cannot be combined with ultra_premium

Example: true
ultra_premiumboolean

Advanced bypass mechanisms; cannot be combined with premium

Example: true
session_numberinteger

Reuse the same proxy across requests; expires 15 minutes after last use

Example: 123
device_typestring

Desktop or mobile user agent

Example: desktopDefault: desktopOne of: desktop, mobile
screenshotboolean

Take a screenshot of the page; turns on rendering

Example: true
output_formatstring

Response file type for general scraping

Example: markdownOne of: markdown, text
follow_redirectboolean

Follow redirects from the site

Example: trueDefault: true
curl 'https://api.scraperapi.com/?url=https%3A%2F%2Fexample.com%2F&api_key=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
<!doctype html><html><head><title>Example Domain</title></head><body><h1>Example Domain</h1></body></html>