retrieve-data answer has the same envelope. Only result differs by type.
| Field | Meaning |
|---|---|
state | buffered, queued, success, failed or cancelled |
outcome_code | 200, 429, 450, 460, 461, 500, 503 or 504. null until the run is final. |
reason | A sentence you can show your users. Do not branch on it. |
details | More detail about this run. Can be null. |
result | The type’s output, below. null until the run is final. |
progress | The counts so far, while the run is going. |
A run that failed still answers HTTP 200 on
retrieve-data. The outcome is in outcome_code, not in the HTTP status. Check state first: an empty result on a run still going is not an empty source.- Reviews
- Products
- Jobs
- Documents
- Businesses and authors
A Google Maps place, 5 reviews, with each review’s author linked in (Google Maps reviews):Each line of a file is a review.
{
"code": 200,
"scrape_type": "reviews",
"external_request_id": "your-own-id-001",
"publisher_key": "maps.google.com",
"task_id": "ca128687-2759-483b-ad4b-8cf1795c2930",
"state": "success",
"outcome_code": 200,
"reason": "OK",
"details": null,
"result": {
"external_location_id": "guide-bw-islamabad",
"publisher_url": "https://www.google.com/maps/place/...",
"matches": false,
"histogram": {
"primary": {
"internal_business_id": "0x38dfc01e23cf2e8b:0xb59126510cffcd2e",
"overall_rating": 4.2,
"overall_reviews": 2727,
"scrape_total_reviews": 5
}
},
"reviews_urls": ["https://.../reviews-001.jl?..."],
"reviews": ["... 5 reviews, paginated (page / page_size) ..."],
"pagination": { "total_reviews": 5, "page": 1, "page_size": 5, "total_pages": 1, "has_next": false, "has_previous": false },
"last_review_hashes": ["f58cba6f8d3dd2830eb42bfe455e0b1b", "..."],
"include": {
"authors": {
"counts": { "discovered": 5, "fetched": 5, "records": 5, "delisted": 0, "capped": true },
"urls": ["https://.../authors-001.jl?..."],
"include": {}
}
}
},
"progress": null,
"request_id": "0a143584ebd24755886d12c6d71f36f9"
}
Shopbop, one category, capped by
limit. The category listed 2,531 products and the run delivered 20:{
"code": 200,
"scrape_type": "products",
"external_request_id": "your-own-id-003",
"publisher_key": "shopbop.com",
"task_id": "bc5d34a1-f1b2-44fa-80f8-629aad0d36ed",
"state": "success",
"outcome_code": 200,
"reason": "OK",
"details": null,
"result": {
"listings": 1,
"listed": 2531,
"discovered": 2531,
"fetched": 20,
"delisted": 0,
"records": 20,
"unmapped_category": null,
"unmapped_colour": null,
"products_urls": ["https://.../products-001.jl?..."],
"source_url": "https://www.shopbop.com/",
"duration": "0:00:18.839129"
},
"request_id": "de37efd456ab4fb9b939d4419668cae1"
}
discovered counts the products found; records counts the lines delivered. Without limit, every product found is delivered. Each line is a product in one colour.A whole board: 116 postings, all unchanged since the previous run, so outcome The postings are still delivered on a
461:{
"code": 200,
"scrape_type": "jobs",
"external_request_id": "your-own-id-004",
"publisher_key": "jobs.kp.gov.pk",
"task_id": "ec837b6e-9623-47bd-8f44-18773f3b9e68",
"state": "success",
"outcome_code": 461,
"reason": "Nothing has changed since the last check.",
"details": null,
"result": {
"listings": 1,
"listed": 116,
"discovered": 116,
"fetched": 116,
"delisted": 0,
"records": 116,
"new": 0,
"changed": 0,
"unchanged": 116,
"closed": 0,
"jobs_urls": ["https://.../jobs-001.jl?..."],
"index_url": "https://.../index.json?...",
"source_url": "https://jobs.kp.gov.pk/",
"duration": "0:00:48.710663"
},
"request_id": "b0c432c643e24acd93d1557704539952"
}
461. closed counts postings that left the board since then; their ids are in the index. Each line is a job.One fee schedule, unchanged since the previous check, so outcome Each document carries a fresh signed
461:{
"code": 200,
"scrape_type": "documents",
"external_request_id": "your-own-id-002",
"publisher_key": "aquis.eu",
"task_id": "fbf20b38-6a2f-4916-a5a1-03ef1e5e5895",
"state": "success",
"outcome_code": 461,
"reason": "Nothing has changed since the last check.",
"details": null,
"result": {
"documents_root": "scraping/documents/aquis/scrape-fbf20b38.../",
"index_url": "https://.../index.json?...",
"discovered": 1,
"fetched": 1,
"failed": 0,
"accepted_missing": 0,
"not_published": 0,
"new": 0,
"changed": 0,
"unchanged": 1,
"removed": 0,
"documents": [
{
"path": "fee-schedule.pdf",
"storage_key": "scraping/documents/aquis/scrape-fbf20b38.../fee-schedule.pdf",
"url": "https://.../fee-schedule.pdf?...",
"source_url": "https://...pdf",
"display_name": "Aquis Rulebook.pdf",
"scope_key": "fee_aquis",
"category": "",
"content_type": "application/pdf",
"bytes": 202268,
"sha256": "0716c1a62f9488760a2a28d82cdd81639322cad2327f4ed0e2ba02de2e79ab06",
"status": "ok",
"change": "unchanged",
"error": null
}
]
},
"request_id": "e83c11dc3a784d4f8785b1e4f69985b0"
}
url, valid for 7 days. See the document entry.businesses and authors runs return the run’s counts and links to their files, with linked datasets under include:{
"result": {
"counts": { "discovered": 20, "fetched": 20, "records": 20, "delisted": 0, "capped": true },
"urls": ["https://.../businesses-001.jl?..."],
"source_url": "https://www.google.com/maps/search/dentist+in+Lahore",
"include": {
"reviews": { "counts": { "records": 812 }, "urls": ["https://.../reviews-001.jl?..."], "include": {} }
}
}
}

