Check an Apify actor run by run id
apify.web.scrape.job.statusCheck whether a background scraper run has finished
- 价格
- free按供应商原价
- 成功率
- 99.6%近 30 天 · 279 次
- 延迟 p50
- 236 毫秒p95 60 秒
- 最后验证
- 2026年7月31日实测可用
GEThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.status预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
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
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
run_id | 字符串 | 必填 | the id from the run-start response | HG7ML7M8z78YcAPEB |
| 查询参数 | ||||
waitForFinish | 整数 | 可选 | seconds to block waiting for a terminal status, max 60 — cheaper than a poll loop | 30 |
- 路径参数
run_id字符串必填the id from the run-start response
示例:
HG7ML7M8z78YcAPEB- 查询参数
waitForFinish整数可选seconds to block waiting for a terminal status, max 60 — cheaper than a poll loop
示例:
30
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
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());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。