Carabain Digital Apify Actors

Run our Actors from the API and Python

Start runs from curl or Python, wait for small runs, poll big ones and read the dataset.

Every Actor on this site can be started from the Apify API with the same JSON you would type in its input form. You need an API token: Apify Console, Settings, Integrations (direct link). Keep it in an environment variable, APIFY_TOKEN, not in your code.

Small runs: one call, results back

For runs that finish within 5 minutes, run-sync-get-dataset-items starts the Actor, waits, and returns the items in the response:

curl -X POST 'https://api.apify.com/v2/acts/carabain-digital~tripadvisor-reviews/run-sync-get-dataset-items' \
  -H "Authorization: Bearer $APIFY_TOKEN" -H 'Content-Type: application/json' \
  -d '{"startUrls": [{"url": "https://www.tripadvisor.com/Hotel_Review-g60763-d93450-Reviews-Hyatt_Grand_Central_New_York-New_York_City_New_York.html"}], "limit": 20}'

Add ?format=csv to the URL to get CSV instead of JSON. Each Actor page shows this call with that Actor’s own example input.

Big runs: start, then read the dataset

A run that takes longer than 5 minutes needs two steps: start it with POST /v2/acts/carabain-digital~<actor>/runs, which returns a run object at once, then read its dataset when the run has finished. The Python client does the waiting for you:

# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("carabain-digital/stepstone-jobs").call(run_input={"keyword": "Data Engineer", "location": "Berlin", "limit": 500})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

call() blocks until the run ends. For a fire-and-forget start use start() and add a webhook (see schedules and integrations).

Saved tasks

Save an input as a task in Apify Console and start it by name: POST /v2/actor-tasks/<user>~<task>/runs. Handy when several scripts or people share one setup.

Costs and limits

You pay per result (see the price box on each Actor page), plus a small run-start fee on Actors that drive a browser. Set a limit in the input to cap a run, and a maximum cost per run in the run options if you want a hard ceiling. API reference: docs.apify.com/api/v2.