Download a crawl job's results as JSON or CSV
diffbot.x.crawl-dataDownloads the extracted results of a crawl job as JSON or CSV, or a diagnostic URL report
- Price
- 価格未定プロバイダー原価
- Success rate
- —成功率データはまだありませんLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/diffbot.x.crawl-dataPreviewTry online近日公開Provider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
different HOST than base_url — api.diffbot.com
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
num | 整数 | 任意 | limit to N most-recently-processed URLs | |
name | 文字列 | 必須 | which crawl job's data to download | test-crawl |
type | 文字列 | 任意 | 'urls' returns a diagnostic URL Report in CSV instead of extraction output | |
format | 文字列 | 任意 | 'csv' for CSV (top-level fields only); default json | |
- クエリパラメータ
num整数任意limit to N most-recently-processed URLs
name文字列必須which crawl job's data to download
例:
test-crawltype文字列任意'urls' returns a diagnostic URL Report in CSV instead of extraction output
format文字列任意'csv' for CSV (top-level fields only); default json
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/diffbot.x.crawl-data' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/diffbot.x.crawl-data",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/diffbot.x.crawl-data", {
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。