# ScraperAPI API reference

> 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…

Source: https://osinttools.io/apis/scraperapi/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/scraperapi/

- Base URL: https://api.scraperapi.com
- Authentication: API key in the `api_key` query parameter. Get a key: https://www.scraperapi.com/ Sent as the api_key query parameter on every request.
- Free tier: a free trial only
- Pricing: Credits
- Rate limits: Concurrent request limit depends on the plan; too many simultaneous requests return 429. Request size limit of 50MB.
- Vendor docs: https://docs.scraperapi.com/

## Overview

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.

## Errors

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

## Scrape

### Fetch a page through ScraperAPI's proxies and return its content.

`GET /`

- Takes: URL
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | query | string | yes | The page to fetch Example: https://example.com/ |
| `render` | query | boolean | no | Run JavaScript and return the rendered HTML Example: true |
| `country_code` | query | string | no | Send the request from a proxy in this country Example: us |
| `premium` | query | boolean | no | Use residential and mobile IPs; cannot be combined with ultra_premium Example: true |
| `ultra_premium` | query | boolean | no | Advanced bypass mechanisms; cannot be combined with premium Example: true |
| `session_number` | query | integer | no | Reuse the same proxy across requests; expires 15 minutes after last use Example: 123 |
| `device_type` | query | string | no | Desktop or mobile user agent Example: desktop One of: desktop, mobile |
| `screenshot` | query | boolean | no | Take a screenshot of the page; turns on rendering Example: true |
| `output_format` | query | string | no | Response file type for general scraping Example: markdown One of: markdown, text |
| `follow_redirect` | query | boolean | no | Follow redirects from the site Example: true |

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

Example response (200):

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

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
