Check an Apify actor run by run id
apify.web.scrape.job.statusCheck whether a background scraper run has finished
- Price
- freeAu prix du fournisseur
- Success rate
- 99,6 %Last 30 days · 279 calls
- Latency p50
- 236 msp95 60 s
- Last verified
- 31 juil. 2026Verified working
GEThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.statusPreview- Uses platform quota
- Synchronous response
- Reads public data
Paramètres
status is READY | RUNNING | SUCCEEDED | FAILED | TIMED-OUT | ABORTED. The response also carries usageTotalUsd — what the run has cost so far — and defaultDatasetId for collecting results. GET /actor-runs (no id) lists recent runs with the same fields, which is how you price a run-sync call after the fact: run-sync-get-dataset-items returns the items only, never the run id. CHAINED ID: the run_id in test_request is a real hello-world run from 2026-07-31 and unnamed runs expire with the plan's data-retention window — re-verify by starting a fresh run and harvesting its id, not by trusting a 404 here
| Paramètre | Type | Obligatoire | Description | Exemple |
|---|---|---|---|---|
| Paramètres de chemin | ||||
run_id | chaîne | Obligatoire | the id from the run-start response | HG7ML7M8z78YcAPEB |
| Paramètres de requête | ||||
waitForFinish | entier | Facultatif | seconds to block waiting for a terminal status, max 60 — cheaper than a poll loop | 30 |
- Paramètres de chemin
run_idchaîneObligatoirethe id from the run-start response
Exemple :
HG7ML7M8z78YcAPEB- Paramètres de requête
waitForFinishentierFacultatifseconds to block waiting for a terminal status, max 60 — cheaper than a poll loop
Exemple :
30
Exemples de code
Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.
curl -X GET 'https://toolswitch.dev/v1/tools/apify.web.scrape.job.status' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/apify.web.scrape.job.status",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/apify.web.scrape.job.status", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.