apify_run_sync
Run an actor and return its results in one call. Waits up to 300 s.
The normal path for a bounded scrape. A run still going after 300 s is NOT
stopped: the error names its run id — continue with apify_run_status then
apify_dataset_items. For a scrape you know is long, use apify_run.
Returns: the LIST of dataset items — or, for a run that ended FAILED, TIMED-OUT
or ABORTED, {error, run_id, status, items} (that run is billed too).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actor_id": "<actor_id>"
},
"name": "apify_run_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _org | No | Org (id) de CET APPEL. `oto_list_orgs()`. | |
| limit | No | ||
| _group | No | Équipe (id) de CET APPEL, sous son org parente. | |
| fields | No | ||
| _run_id | No | OBLIGATOIRE à chaque appel dès `run_start` ou `data_claim_next` : sans lui, l'écriture sur une ligne réservée est refusée. Hérité seulement si le serveur tient un run actif — n'y compte pas. | |
| _project | No | Projet (id) de CET APPEL — jeton PRIMAIRE. `oto_project(op='list')`. | |
| actor_id | Yes | `username/actor-name` or id. | |
| _instance | No | Instance de connecteur PRÉCISE (un credential exact). `oto_instance(op='list')`. | |
| max_items | No | results wanted — set it. It caps billed items on pay-per-result actors ONLY: a pay-per-event actor can charge far beyond it, `max_total_charge_usd` is what stops it. | |
| run_input | No | the actor's own input JSON — its fields are specific to each actor (e.g. `{"searchStringsArray": ["bakery Marseille"], "maxCrawledPlaces": 20}` for the Google Maps scraper). See the actor's Store page. | |
| timeout_secs | No | ||
| memory_mbytes | No | ||
| max_total_charge_usd | No | hard cost ceiling for this run, at most your organization's ceiling per run ($25 unless its admins set another; on the platform's key, never above the platform maximum; on a key another organization lends, never above that organization's ceiling; above it the run is refused, `max_charge_above_cap`). Omitted, it is derived from `max_items` and the actor's event prices, or $5 by default. A run that reaches it stops, with a partial output. |