Records come as files
Large results are not put into the response: a catalogue run can deliver hundreds of thousands of records. The result carries links to JSON Lines files instead: one JSON object per line, UTF-8, one line per record.
Read a file line by line:
Links expire
Each link is signed and works for 7 days. It needs no API key. Download the files when you receive them. If a link has expired, callretrieve-data again. You get fresh links. The files are not deleted when a link expires.
Absent is null
A field the source did not show is null, never an empty string. So you can always tell “absent” from “empty”. Most sources show only some of the optional fields: a job board that shows pay on half its postings is normal, not a fault.
Dates
Dates on records are Unix time in milliseconds, UTC. A review has two dates:posted_atis the date the publisher shows now.original_posted_atis when the review was first written.
posted_at and a January original_posted_at. Treat original_posted_at != posted_at as “this review was edited”.
Counts
Each result reports what the run did. Reviews carry ahistogram and pagination. Products, jobs and documents carry the crawl counts, which add up:
fetched + delisted == discovered (jobs also count reused, see Keeping data current).
- Products:
recordsis usually larger thandiscovered, because one garment in seven colours is seven records. - Jobs: they usually agree.
delistedis often above zero, because roles close while a run is going.
vacancies across the records. It is null when the board does not say.
While a run is going
retrieve-data returns result: null until the run finishes. progress carries the counts so far, so you can show how far along it is.
