Download an Apify run's results by dataset id
apify.web.scrape.job.resultsDownload the results of a finished scraper run
- 价格
- free按供应商原价
- 成功率
- 99.8%近 30 天 · 1,741 次
- 延迟 p50
- 154 毫秒p95 650 毫秒
- 最后验证
- 2026年7月31日实测可用
GEThttps://toolswitch.dev/v1/tools/apify.web.scrape.job.results?clean=true&limit=5预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
results are already paid for at run time — re-reading a dataset is free and repeatable, so store the dataset id rather than re-running the actor. The response is the items ARRAY at the top level, not an envelope. CHAINED ID: the dataset_id in test_request is the defaultDatasetId of that same 2026-07-31 hello-world run and expires with it — harvest a fresh one from a run before re-verifying
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
dataset_id | 字符串 | 必填 | defaultDatasetId from the run | 9RcGyLmzZm3nBWNsL |
| 查询参数 | ||||
clean | 布尔 | 可选 | true drops empty and hidden (#-prefixed) items | true |
limit | 整数 | 可选 | items per page; default is everything, which can be a very large response | 100 |
fields | 字符串 | 可选 | comma-separated field allow-list — the fastest way to shrink an unwieldy scrape result | adId,pageName,adText,snapshotUrl |
format | 字符串 | 可选 | json (default) | jsonl | csv | xlsx | xml | rss | json |
offset | 整数 | 可选 | 0 | |
- 路径参数
dataset_id字符串必填defaultDatasetId from the run
示例:
9RcGyLmzZm3nBWNsL- 查询参数
clean布尔可选true drops empty and hidden (#-prefixed) items
示例:
truelimit整数可选items per page; default is everything, which can be a very large response
示例:
100fields字符串可选comma-separated field allow-list — the fastest way to shrink an unwieldy scrape result
示例:
adId,pageName,adText,snapshotUrlformat字符串可选json (default) | jsonl | csv | xlsx | xml | rss
示例:
jsonoffset整数可选示例:
0
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/apify.web.scrape.job.results?clean=true&limit=5' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/apify.web.scrape.job.results?clean=true&limit=5",
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.results?clean=true&limit=5", {
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 计费,已含服务费。