# Web Scraper API reference

> The Web Scraper Cloud API manages the sitemaps and scraping jobs of a Web Scraper Cloud account. It does not look up a lead: you start a scraping job for a sitemap you already built, check its status and download the scraped data as JSON Lines, CSV or XLSX. Calls go to…

Source: https://osinttools.io/apis/web-scraper-extension/ (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/web-scraper-extension/

- Base URL: https://api.webscraper.io/api/v1
- Authentication: Bearer token in the `Authorization` header.
- Rate limits: Not stated in the docs (429 responses carry X-RateLimit-* headers)
- Vendor docs: https://webscraper.io/documentation/web-scraper-cloud/api
- OpenAPI spec: https://webscraper.io/openapi.yaml

## Overview

The Web Scraper Cloud API manages the sitemaps and scraping jobs of a Web Scraper Cloud account. It does not look up a lead: you start a scraping job for a sitemap you already built, check its status and download the scraped data as JSON Lines, CSV or XLSX.

Calls go to `https://api.webscraper.io/api/v1` with an API token as a Bearer token in the `Authorization` header. Responses are JSON with a `success` flag. A request over the limit gets HTTP 429 with `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` headers; the docs do not give the numbers.

The reference is published as an OpenAPI file that the docs page renders in the browser (the page itself is empty without JavaScript). Sitemap create, update and delete, scheduler, tag, problematic-URL, data-quality, continue and stop endpoints exist in the spec and are not listed here.

## Errors

| Status | Meaning |
| --- | --- |
| 401 | Unauthorized |
| 403 | Forbidden |
| 422 | Validation failed; see validationErrors |
| 429 | Too many requests |
| 500 | Server error |

## Account

### Account info

`GET /account`

- Footprint: passive (the target is not contacted)

Returns account details for the authenticated user, including the remaining page credits.

Response fields:

- `data.email` (string): Account email
- `data.firstname` (string): First name
- `data.lastname` (string): Last name
- `data.page_credits` (number): Page credits left

```bash
curl 'https://api.webscraper.io/api/v1/account' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "success": true,
  "data": {
    "email": "user@example.com",
    "firstname": "Jane",
    "lastname": "Doe",
    "page_credits": 1000
  }
}
```

## Sitemaps

### List sitemaps

`GET /sitemaps`

- Footprint: passive (the target is not contacted)

Returns a paginated list of the sitemaps of the account's organization.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `tag` | query | string | no | Only sitemaps with this tag Example: ecommerce |
| `page` | query | integer | no | Page number Example: 1 |

Response fields:

- `data[].id` (integer): Sitemap id
- `data[].name` (string): Sitemap name
- `current_page` (integer): Current page
- `last_page` (integer): Last page
- `total` (integer): Total sitemaps
- `per_page` (integer): Items per page

```bash
curl 'https://api.webscraper.io/api/v1/sitemaps' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "success": true,
  "data": [
    {
      "id": 123,
      "name": "example-sitemap"
    }
  ],
  "current_page": 1,
  "last_page": 1,
  "total": 1,
  "per_page": 100
}
```

## Scraping jobs

### Create a scraping job

`POST /scraping-job`

- Takes: URL
- Footprint: active (contacts the target)

Starts a new scraping job for a sitemap. The job scrapes the sitemap's start URLs, or the start_urls given here.

Response fields:

- `data.id` (integer): Scraping job id
- `data.custom_id` (string): The custom id, if given

```bash
curl -X POST 'https://api.webscraper.io/api/v1/scraping-job' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"sitemap_id":123,"request_interval":2000,"page_load_delay":2000,"proxy":"datacenter-us","render_js":true,"priority":3,"start_urls":["https://example.com/page"]}'
```

Example response (200):

```json
{
  "success": true,
  "data": {
    "id": 123,
    "custom_id": "custom-123"
  }
}
```

### List scraping jobs

`GET /scraping-jobs`

- Footprint: passive (the target is not contacted)

Returns a paginated list of scraping jobs, optionally filtered by sitemap, tag or status.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `sitemap_id` | query | integer | no | Only jobs of this sitemap Example: 123 |
| `tag` | query | string | no | Only jobs of sitemaps with this tag Example: ecommerce |
| `status` | query | string | no | Filter by status; omit for all Example: finished One of: started, finished, failed, stopped, waiting-to-be-scheduled |
| `page` | query | integer | no | Page number Example: 1 |

Response fields:

- `data[].id` (integer): Job id
- `data[].sitemap_id` (integer): Sitemap id
- `data[].status` (string): Job status
- `data[].time_created` (integer): Creation time, Unix seconds
- `data[].jobs_scheduled` (integer): URLs scheduled
- `data[].jobs_executed` (integer): URLs executed
- `data[].jobs_failed` (integer): URLs failed
- `data[].stored_record_count` (integer): Records stored
- `total` (integer): Total jobs

```bash
curl 'https://api.webscraper.io/api/v1/scraping-jobs' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "success": true,
  "data": [
    {
      "id": 123,
      "sitemap_id": 123,
      "status": "finished",
      "time_created": 1713700000,
      "jobs_scheduled": 100,
      "jobs_executed": 100,
      "jobs_failed": 0,
      "stored_record_count": 1200
    }
  ],
  "current_page": 1,
  "last_page": 1,
  "total": 1,
  "per_page": 100
}
```

### Get a scraping job

`GET /scraping-job/{scrapingJobId}`

- Footprint: passive (the target is not contacted)

Returns the status and counters of one scraping job.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `scrapingJobId` | path | integer | yes | Scraping job id Example: 123 |

Response fields:

- `data.id` (integer): Job id
- `data.status` (string): scheduling, scheduled, started, finished, failed, waiting-to-be-scheduled, stopping, stopped, unshelving or shelving
- `data.sitemap_name` (string): Sitemap name
- `data.jobs_scheduled` (integer): URLs scheduled
- `data.jobs_executed` (integer): URLs executed
- `data.stored_record_count` (integer): Records stored
- `data.scraping_duration` (integer): Scraping duration

```bash
curl 'https://api.webscraper.io/api/v1/scraping-job/123' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "success": true,
  "data": {
    "id": 123,
    "status": "finished",
    "sitemap_name": "example-sitemap",
    "jobs_scheduled": 100,
    "jobs_executed": 100,
    "stored_record_count": 1200,
    "scraping_duration": 360
  }
}
```

### Download scraping job data

`GET /scraping-job/{scrapingJobId}/{extension}`

- Footprint: passive (the target is not contacted)

Streams the scraped data as a file: JSON Lines (json), csv or xlsx. Set raw=true for the raw exported format.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `scrapingJobId` | path | integer | yes | Scraping job id Example: 123 |
| `extension` | path | string | yes | File format Example: json One of: json, csv, xlsx |
| `raw` | query | string | no | Return the raw exported data format when true Example: false One of: true, false |

Response fields:

- `(each line)` (object): One scraped record; the keys are the sitemap's selector ids

```bash
curl 'https://api.webscraper.io/api/v1/scraping-job/123/json' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "title": "Item one",
  "price": 199
}
```

---

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/
