Skip to content
OSINTtools.io

Scrape.ly API

Platform of ready-made scrapers (Actors) run in the cloud through a REST API or MCP, with results as JSON, CSV, Excel, XML or RSS.

Base URL
https://api.scrape.ly/v2
Sign-in
Bearer token
Format
REST
Endpoints
2

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

Introduction

The Scrape.ly API runs Actors (scraping programs) and returns their results. You start a run with the Actor's input, poll the run until it finishes, then read the output from the run's dataset. What a run returns depends on the Actor, so dataset item shapes are not described here.

All requests go to https://api.scrape.ly under /v2 with Authorization: Bearer <token>; query-string tokens are ignored. Datasets, key-value stores, request queues, tasks, webhooks, schedules and a synchronous run-sync endpoint also exist in the docs and are not covered here.

Quick start

  1. Get a key

    Create an account with Scrape.ly and copy your bearer token. Where to get it

  2. Make your first request

    Get a run's state; poll until it is SUCCEEDED, FAILED, ABORTED or TIMED-OUT.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.scrape.ly/v2/actor-runs/runExample0001' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "data": {
        "id": "runExample0001",
        "actId": "actorExample001",
        "status": "SUCCEEDED",
        "defaultDatasetId": "datasetExample01"
      }
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Create a token under Settings, API & Integrations in the dashboard.

Get a key from Scrape.ly

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

Rate limits and pricing

1000 requests per minute per account for general /v2 endpoints; 5000 per minute for datasets, key-value stores and request queues

Errors

StatusMeaning
400Invalid request, input or value
401Token not provided or not valid
402Out of credit or daily cap reached
403Forbidden or insufficient permissions
404Record not found
429Rate limit exceeded
503Service busy or upstream failure; retry with backoff

Runs

  • Active: contacts the target

Returns immediately with the run object. The input fields depend on the Actor, so none are listed. Responds 201, or 202 when queued.

Path parameters

actorIdstringrequired

Actor ID or username~actor-name

Example: your-user~your-actor

Query parameters

memoryinteger

Memory allocation for the run

Example: 1024
timeoutinteger

Maximum run duration

Example: 300
maxItemsinteger

Cap on dataset items produced

Example: 50
maxTotalChargeUsdnumber

Spending cap for the run

Example: 1
waitForFinishinteger

Block up to 60 seconds before returning

Example: 30
Response fields · 6Show

idstring

Run ID

actIdstring

Actor ID

statusstring

Run status, for example READY

defaultDatasetIdstring

Dataset holding the results

defaultKeyValueStoreIdstring

Default key-value store

defaultRequestQueueIdstring

Default request queue

curl -X POST 'https://api.scrape.ly/v2/actors/your-user~your-actor/runs' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": "runExample0001",
    "actId": "actorExample001",
    "status": "READY",
    "defaultDatasetId": "datasetExample01",
    "defaultKeyValueStoreId": "kvsExample00001",
    "defaultRequestQueueId": "queueExample0001"
  }
}
  • Passive: the target is not contacted

waitForFinish blocks for at most 60 seconds, so repeat the call for long jobs. Webhooks are preferred over tight polling.

Path parameters

runIdstringrequired

Run ID

Example: runExample0001

Query parameters

waitForFinishinteger

Block up to 60 seconds for the run to finish

Example: 30
Response fields · 4Show

idstring

Run ID

actIdstring

Actor ID

statusstring

READY, RUNNING, SUCCEEDED, FAILED, ABORTED or TIMED-OUT

defaultDatasetIdstring

Dataset holding the results

curl 'https://api.scrape.ly/v2/actor-runs/runExample0001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": "runExample0001",
    "actId": "actorExample001",
    "status": "SUCCEEDED",
    "defaultDatasetId": "datasetExample01"
  }
}