Check an Apify actor run by run id
apify.web.scrape.job.statusCheck whether a background scraper run has finished
- Price
- freePelo preço do provedor
- Success rate
- 99,6%Last 30 days · 279 calls
- Latency p50
- 236 msp95 60 s
- Last verified
- 31 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.statusPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
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
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
run_id | string | Obrigatório | the id from the run-start response | HG7ML7M8z78YcAPEB |
| Parâmetros de consulta | ||||
waitForFinish | inteiro | Opcional | seconds to block waiting for a terminal status, max 60 — cheaper than a poll loop | 30 |
- Parâmetros de caminho
run_idstringObrigatóriothe id from the run-start response
Exemplo:
HG7ML7M8z78YcAPEB- Parâmetros de consulta
waitForFinishinteiroOpcionalseconds to block waiting for a terminal status, max 60 — cheaper than a poll loop
Exemplo:
30
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no 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());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.