Skip to content
OSINTtools.io

Web Scraper API

Free webscraper.io extension for building point-and-click scraping sitemaps that crawl multi-page and dynamic sites into CSV or XLSX.

Base URL
https://api.webscraper.io/api/v1
Sign-in
Bearer token
Format
REST
Endpoints
6

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

Introduction

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.

Quick start

  1. Get a key

    Create an account with Web Scraper and copy your bearer token. Where to get it

  2. Make your first request

    Account info. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.webscraper.io/api/v1/account' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

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

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

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

Rate limits and pricing

Not stated in the docs (429 responses carry X-RateLimit-* headers)

Errors

StatusMeaning
401Unauthorized
403Forbidden
422Validation failed; see validationErrors
429Too many requests
500Server error

Account

Account info

GET/account

  • Passive: the target is not contacted

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

Response fields · 4Show

emailstring

Account email

firstnamestring

First name

lastnamestring

Last name

page_creditsnumber

Page credits left

curl 'https://api.webscraper.io/api/v1/account' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "success": true,
  "data": {
    "email": "user@example.com",
    "firstname": "Jane",
    "lastname": "Doe",
    "page_credits": 1000
  }
}

Sitemaps

List sitemaps

GET/sitemaps

  • Passive: the target is not contacted

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

Query parameters

tagstring

Only sitemaps with this tag

Example: ecommerce
pageinteger

Page number

Example: 1
Response fields · 6Show

idinteger

Sitemap id

namestring

Sitemap name

current_pageinteger

Current page

last_pageinteger

Last page

totalinteger

Total sitemaps

per_pageinteger

Items per page

curl 'https://api.webscraper.io/api/v1/sitemaps' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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

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

Request body (JSON) · 8Show

sitemap_idintegeralways present

Sitemap to run

request_intervalintegeralways present

Delay between requests in milliseconds

page_load_delayintegeralways present

Wait after a page loads, in milliseconds

proxystringalways present

Proxy, for example datacenter-us or a residential-xx country value

render_jsboolean

Render JavaScript (default true)

priorityinteger

1 to 5 (default 3)

start_urlsstring[]

Start URLs for this job

custom_idstring

Your own id for the job

Response fields · 2Show

idinteger

Scraping job id

custom_idstring

The custom id, if given

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"]}'
Replace YOUR_API_KEY with your key
Response
{
  "success": true,
  "data": {
    "id": 123,
    "custom_id": "custom-123"
  }
}

List scraping jobs

GET/scraping-jobs

  • Passive: the target is not contacted

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

Query parameters

sitemap_idinteger

Only jobs of this sitemap

Example: 123
tagstring

Only jobs of sitemaps with this tag

Example: ecommerce
statusstring

Filter by status; omit for all

Example: finishedOne of: started, finished, failed, stopped, waiting-to-be-scheduled
pageinteger

Page number

Example: 1
Response fields · 9Show

idinteger

Job id

sitemap_idinteger

Sitemap id

statusstring

Job status

time_createdinteger

Creation time, Unix seconds

jobs_scheduledinteger

URLs scheduled

jobs_executedinteger

URLs executed

jobs_failedinteger

URLs failed

stored_record_countinteger

Records stored

totalinteger

Total jobs

curl 'https://api.webscraper.io/api/v1/scraping-jobs' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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}

  • Passive: the target is not contacted

Returns the status and counters of one scraping job.

Path parameters

scrapingJobIdintegerrequired

Scraping job id

Example: 123
Response fields · 7Show

idinteger

Job id

statusstring

scheduling, scheduled, started, finished, failed, waiting-to-be-scheduled, stopping, stopped, unshelving or shelving

sitemap_namestring

Sitemap name

jobs_scheduledinteger

URLs scheduled

jobs_executedinteger

URLs executed

stored_record_countinteger

Records stored

scraping_durationinteger

Scraping duration

curl 'https://api.webscraper.io/api/v1/scraping-job/123' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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}

  • 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.

Path parameters

scrapingJobIdintegerrequired

Scraping job id

Example: 123
extensionstringrequired

File format

Example: jsonOne of: json, csv, xlsx

Query parameters

rawstring

Return the raw exported data format when true

Example: falseOne of: true, false
Response fields · 1Show

(each line)object

One scraped record; the keys are the sitemap's selector ids

curl 'https://api.webscraper.io/api/v1/scraping-job/123/json' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "title": "Item one",
  "price": 199
}