# Scrape.ly API reference

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

Source: https://osinttools.io/apis/scrape-ly/ (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/scrape-ly/

- Base URL: https://api.scrape.ly/v2
- Authentication: Bearer token in the `Authorization` header. Get a key: https://scrape.ly/docs/api-overview.md Create a token under Settings, API & Integrations in the dashboard.
- Rate limits: 1000 requests per minute per account for general /v2 endpoints; 5000 per minute for datasets, key-value stores and request queues
- Vendor docs: https://scrape.ly/docs

## Overview

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.

## Errors

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

## Runs

### Start an Actor run; the body is the Actor's input at the top level.

`POST /actors/{actorId}/runs`

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `actorId` | path | string | yes | Actor ID or username~actor-name Example: your-user~your-actor |
| `memory` | query | integer | no | Memory allocation for the run Example: 1024 |
| `timeout` | query | integer | no | Maximum run duration Example: 300 |
| `maxItems` | query | integer | no | Cap on dataset items produced Example: 50 |
| `maxTotalChargeUsd` | query | number | no | Spending cap for the run Example: 1 |
| `waitForFinish` | query | integer | no | Block up to 60 seconds before returning Example: 30 |

Response fields:

- `data.id` (string): Run ID
- `data.actId` (string): Actor ID
- `data.status` (string): Run status, for example READY
- `data.defaultDatasetId` (string): Dataset holding the results
- `data.defaultKeyValueStoreId` (string): Default key-value store
- `data.defaultRequestQueueId` (string): Default request queue

```bash
curl -X POST 'https://api.scrape.ly/v2/actors/your-user~your-actor/runs' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (201):

```json
{
  "data": {
    "id": "runExample0001",
    "actId": "actorExample001",
    "status": "READY",
    "defaultDatasetId": "datasetExample01",
    "defaultKeyValueStoreId": "kvsExample00001",
    "defaultRequestQueueId": "queueExample0001"
  }
}
```

### Get a run's state; poll until it is SUCCEEDED, FAILED, ABORTED or TIMED-OUT.

`GET /actor-runs/{runId}`

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `runId` | path | string | yes | Run ID Example: runExample0001 |
| `waitForFinish` | query | integer | no | Block up to 60 seconds for the run to finish Example: 30 |

Response fields:

- `data.id` (string): Run ID
- `data.actId` (string): Actor ID
- `data.status` (string): READY, RUNNING, SUCCEEDED, FAILED, ABORTED or TIMED-OUT
- `data.defaultDatasetId` (string): Dataset holding the results

```bash
curl 'https://api.scrape.ly/v2/actor-runs/runExample0001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

---

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/
