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
- Price pendingAt provider cost
- Success rate
- —No success-rate data yetLast 30 days · 0 calls
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/diffbot.x.crawl-dataPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
different HOST than base_url — api.diffbot.com
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
num | integer | Optional | limit to N most-recently-processed URLs | |
name | string | Required | which crawl job's data to download | test-crawl |
type | string | Optional | 'urls' returns a diagnostic URL Report in CSV instead of extraction output | |
format | string | Optional | 'csv' for CSV (top-level fields only); default json | |
- Query parameters
numintegerOptionallimit to N most-recently-processed URLs
namestringRequiredwhich crawl job's data to download
Example:
test-crawltypestringOptional'urls' returns a diagnostic URL Report in CSV instead of extraction output
formatstringOptional'csv' for CSV (top-level fields only); default json
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
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());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data.