Skip to content

Every scraper is an API.

Send the input as JSON, get the results back as JSON, CSV or Excel. Use any language, or the official JavaScript and Python clients. You need one Apify API token.

curl -X POST "https://api.apify.com/v2/acts/vero-api~jobs-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "searchTerm": "software engineer",
  "country": "us",
  "location": "New York, NY",
  "maxResults": 2,
  "fetchExtraJobInfo": true,
  "deduplicate": true
}'

Example with the Jobs Scraper. Find your token in Apify Console under Settings, then API and integrations.

Run and wait

Get results in the same request

POST https://api.apify.com/v2/acts/<publisher>~<actor>/run-sync-get-dataset-items

This call starts the actor, waits for it to finish and returns the dataset. It is the simplest way to call a scraper from a script, a no-code tool or an AI agent.

The request waits up to 300 seconds. For longer runs, start the run without waiting and read the dataset when it finishes.

Shell
# Start a run and return at once
curl -X POST "https://api.apify.com/v2/acts/vero-api~jobs-scraper/runs?maxTotalChargeUsd=5" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchTerm": "data engineer", "country": "de", "maxResults": 500}'

# Read the results when the run has finished
curl "https://api.apify.com/v2/datasets/<defaultDatasetId>/items?format=csv" \
  -H "Authorization: Bearer $APIFY_TOKEN"

Cap the cost of every call

Add maxTotalChargeUsd to any run. The actor stops once your limit is reached and you pay only for the results delivered. Most actors also take a maximum results field in their input.

Choose your format

Add format=json, csv, xlsx, xml or rss to the dataset request. Use fields to keep only the columns you need.

Schedules, webhooks and no-code

Save an input as a task in Apify Console, run it on a schedule, and send results to a webhook, Google Sheets, Slack, n8n, Make or Zapier. Every actor works with Apify's integrations without extra code.

37 definitions

OpenAPI specs

Each actor publishes an OpenAPI 3 definition of its input and endpoints. Import it into Postman, generate a client, or hand it to your agent.