---
title: "Web scraping API: one scraper API for any Actor | Scrape.ly"
description: "Web scraping API and scraper API in one: run any Scrape.ly scraper, manage jobs, track progress and fetch structured JSON results from one API client."
url: https://scrape.ly/api
markdown: https://scrape.ly/api.md
---

G2

4.7/5

[Excellent](https://www.trustpilot.com/review/scrape.ly)

[Trustpilot](https://www.trustpilot.com/review/scrape.ly)

# Web scraping API for every Scrape.ly workflow

Use a single API client to run scrapers, manage jobs, monitor progress, and fetch structured results from Scrape.ly.

[Discover Scrapers](https://scrape.ly/store.md) [Check API Reference](https://scrape.ly/docs/api-overview.md)

01 API-First Platform

## Built to control scraping from code

Scrape.ly gives developers a reliable control layer for web scraping, automation, and structured data extraction.

### Run scrapers with one call

Start sync or async scraping jobs, pass custom input, and follow the run until completion.

### Structured results

Fetch clean outputs from datasets, tables, files, or key-value stores in formats your team already uses.

### Developer-friendly clients

Use JavaScript, Python, or direct REST requests to connect Scrape.ly with your product or internal stack.

### Secure by default

Authenticate with API tokens, manage access safely, and scale requests with clear limits and predictable behavior.

02 Quick start

## Your first web scraping API call

One request starts a scraper, waits for it and returns the data. Below is a real call to the [Website Content Crawler](https://scrape.ly/store/querystone/website-content-crawler.md) and the response it returned.

1. Step 1

   ### Get an API token

   Create a free account and copy a token from Settings → API & Integrations. Send it in the Authorization header as a Bearer token.

2. Step 2

   ### Send the scraper its input

   POST the input as JSON to the Actor’s run-sync-get-dataset-items endpoint. The body is the input itself, the same JSON the Actor page shows.

3. Step 3

   ### Read structured JSON

   The response is the run’s dataset items as a JSON array. Add ?format=csv, xlsx or jsonl to the URL for another format.

Request

```
curl -X POST "https://api.scrape.ly/v2/actors/querystone~website-content-crawler/run-sync-get-dataset-items"
 -H"Authorization: Bearer $SCRAPELY_TOKEN"
 -H"Content-Type: application/json"
 -d'{"startUrls":[{"url":"https://example.com"}],"maxCrawlPages":1}'
```

Response · 200

```
[
{
"url":"https://example.com/",
"crawl":{
"loadedUrl":"https://example.com/",
"loadedTime":"2026-10-28T00:13:20.416Z",
"depth":0,
"httpStatusCode":200,
"contentLengthBytes":577,
"contentType":"text/html; charset=utf-8"
},
"metadata":{
"canonicalUrl":"https://example.com/",
"title":"Example Domain",
"languageCode":"en"
},
"text":"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.",
"markdown":"This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes."
}
]
```

Response from a run on 28 October 2026, with the page’s HTTP headers left out. A synchronous call waits up to 90 seconds; longer runs keep going and are read [asynchronously](https://scrape.ly/docs/api-overview.md#waiting-for-runs-and-builds).

03 How it works

## How the scraper API works

One REST API under /v2 runs every scraper in the Store. Start a run, wait for it or get a webhook, then read the results in the format you need.

[Read the API guide](https://scrape.ly/docs/api.md)

### Authentication

Every request sends a token as Authorization: Bearer. Tokens in the query string are ignored. Extra API keys can be limited to scopes, specific Actors, an IP allowlist and a daily spending cap.

[API keys & permissions →](https://scrape.ly/docs/api-keys.md)

### Synchronous runs

run-sync-get-dataset-items starts a run and answers with its results in the same response, for jobs that finish within 90 seconds. A slower run returns 408 with its run ID and keeps going.

[Run an Actor synchronously →](https://scrape.ly/docs/api-actors.md#run-actor-synchronously)

### Asynchronous runs

POST /v2/actors/{actorId}/runs returns a run ID right away. Wait with waitForFinish, then read the run’s dataset. An Idempotency-Key header makes a retried start return the same run.

[Start a run →](https://scrape.ly/docs/api-actors.md#start-a-run)

### Webhooks

Get a POST when a run succeeds, fails, aborts or times out. Failed deliveries are retried up to five times, and a payload template shapes the body your endpoint receives.

[Webhooks API →](https://scrape.ly/docs/api-webhooks.md)

### Output formats

Read results as JSON, JSONL, CSV, Excel, XML, RSS, HTML or PDF from the same endpoint, and pick fields, skip empty items and page through large datasets with offset and limit.

[Get dataset items →](https://scrape.ly/docs/api-datasets.md#get-dataset-items)

### Rate limits and errors

The API allows 1,000 requests a minute per account, 5,000 for storage. Errors come back as JSON with a type and a message; retry 429 and 503 with backoff, as the clients do.

[Limits and error codes →](https://scrape.ly/docs/api-overview.md#rate-limits)

### Any language

Call the REST API from any language that speaks HTTP, or use the official JavaScript/TypeScript and Python clients, which add retries, pagination helpers and run waiting.

[Python client →](https://scrape.ly/docs/client-python.md)

### AI agents over MCP

The hosted MCP server lets Claude, Cursor, VS Code and other MCP clients search the Store, run scrapers and read the results from your account.

[MCP server →](https://scrape.ly/docs/mcp.md)

04 API Clients

## Run Scrape.ly from JavaScript or Python

Use Scrape.ly’s API clients to trigger scrapers, pass inputs, monitor runs, and fetch structured results from your own code.

from scrapely_client import ScrapelyClient

client = ScrapelyClient ( 'YOUR_TOKEN' , api_url = 'https\://api.scrape.ly' )

run = client. actor ( 'username/my-actor' ) . call (

run_input = { 'url' : 'https\://example.com/products' }

)

for item in client. dataset ( run.default_dataset_id ) . iterate_items () :

print ( item )

### Scheduling & Monitoring

Run scrapers hourly, daily, weekly, or on custom intervals with built-in status tracking.

### Proxy Reliability

Use smart proxy routing to reduce blocks, avoid rate limits, and keep requests moving.

### Scalable Runs

Start small and scale up as your data needs grow without rebuilding your scraping stack.

05 API Library

## Discover ready-to-use APIs at Scrape.ly

Explore popular scraping APIs and data extractors built for common websites, marketplaces, search platforms, and content sources.

[Google Trends API](https://scrape.ly/api/google-trends-api.md)

[Google Search API](https://scrape.ly/api/google-search-api.md)

[Google Maps API](https://scrape.ly/api/google-maps-api.md)

[Google Maps Reviews API](https://scrape.ly/api/google-maps-reviews-api.md)

[Google Shopping API](https://scrape.ly/api/google-shopping-api.md)

[Google News API](https://scrape.ly/api/google-news-api.md)

[Google Jobs API](https://scrape.ly/api/google-jobs-api.md)

[Google Flights API](https://scrape.ly/api/google-flights-api.md)

[Google Hotels API](https://scrape.ly/api/google-hotels-api.md)

[Google Scholar API](https://scrape.ly/api/google-scholar-api.md)

[Google Images API](https://scrape.ly/api/google-images-api.md)

[Google Lens API](https://scrape.ly/api/google-lens-api.md)

[Google Play API](https://scrape.ly/api/google-play-api.md)

[Google AI Overviews API](https://scrape.ly/api/google-ai-overviews-api.md)

[Bing Search API](https://scrape.ly/api/bing-search-api.md)

[Amazon API](https://scrape.ly/api/amazon-api.md)

[eBay API](https://scrape.ly/api/ebay-api.md)

[Walmart API](https://scrape.ly/api/walmart-api.md)

[Etsy API](https://scrape.ly/api/etsy-api.md)

[AliExpress API](https://scrape.ly/api/aliexpress-api.md)

[Shopify API](https://scrape.ly/api/shopify-api.md)

[Target API](https://scrape.ly/api/target-api.md)

[Home Depot API](https://scrape.ly/api/home-depot-api.md)

[Best Buy API](https://scrape.ly/api/best-buy-api.md)

[Instagram API](https://scrape.ly/api/instagram-api.md)

[TikTok API](https://scrape.ly/api/tiktok-api.md)

[Facebook API](https://scrape.ly/api/facebook-api.md)

[Facebook Marketplace API](https://scrape.ly/api/facebook-marketplace-api.md)

[Facebook Ads Library API](https://scrape.ly/api/facebook-ads-library-api.md)

[Twitter (X) API](https://scrape.ly/api/twitter-x-api.md)

[Threads API](https://scrape.ly/api/threads-api.md)

[Reddit API](https://scrape.ly/api/reddit-api.md)

[YouTube API](https://scrape.ly/api/youtube-api.md)

[YouTube Transcript API](https://scrape.ly/api/youtube-transcript-api.md)

[Pinterest API](https://scrape.ly/api/pinterest-api.md)

[LinkedIn Jobs API](https://scrape.ly/api/linkedin-jobs-api.md)

[LinkedIn Profile API](https://scrape.ly/api/linkedin-profile-api.md)

[LinkedIn Company API](https://scrape.ly/api/linkedin-company-api.md)

[Indeed API](https://scrape.ly/api/indeed-api.md)

[Glassdoor API](https://scrape.ly/api/glassdoor-api.md)

[Upwork API](https://scrape.ly/api/upwork-api.md)

[Trustpilot API](https://scrape.ly/api/trustpilot-api.md)

[Yahoo Finance API](https://scrape.ly/api/yahoo-finance-api.md)

[Zillow API](https://scrape.ly/api/zillow-api.md)

[Realtor.com API](https://scrape.ly/api/realtor-com-api.md)

[Redfin API](https://scrape.ly/api/redfin-api.md)

[Airbnb API](https://scrape.ly/api/airbnb-api.md)

[Booking.com API](https://scrape.ly/api/booking-com-api.md)

[Tripadvisor API](https://scrape.ly/api/tripadvisor-api.md)

[Yelp API](https://scrape.ly/api/yelp-api.md)

[Craigslist API](https://scrape.ly/api/craigslist-api.md)

06 FAQ

## Common questions about Scrape.ly APIs

Quick answers about using Scrape.ly's APIs, available data, setup, and legal usage.

Got more questions? [Reach out to us](mailto:hello@scrape.ly?subject=API%20question\&body=I%20have%20a%20question%20about%20the%20Scrape.ly%20API.)

### What is a web scraping API?

---

A web scraping API runs the scraping for you and returns the data over HTTP. On Scrape.ly every scraper in the Store is an Actor with its own input: you send that input as JSON, the Actor collects the data in the cloud, and you read structured results as JSON, CSV or Excel.

### How do I get started with the scraper API?

### Can I try the API for free?

### How am I charged for API runs?

### Should I use synchronous or asynchronous runs?

### How do I know when a run has finished?

### Which output formats does the API return?

### Which programming languages can I use?

### What are the API rate limits?

### Do I need my own proxies?

### Can AI agents use the scraping API?

### Is it legal to scrape public data?

G2

4.7/5

[Excellent](https://www.trustpilot.com/review/scrape.ly)

[Trustpilot](https://www.trustpilot.com/review/scrape.ly)

## The internet is full of data. Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

[Get Started Free](https://my.scrape.ly/register) [Chat with Support](mailto:hello@scrape.ly?subject=Question%20about%20Scrape.ly\&body=Hi%2C%20I%20have%20a%20question%20about%20Scrape.ly.)

No credit card. No setup calls.
