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:
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, call retrieve-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_at is the date the publisher shows now.
  • original_posted_at is when the review was first written.
They are the same on an unedited review, and on every publisher that does not date edits. Google Maps does: a review written in January and edited in October arrives with an October 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 a histogram and pagination. Products, jobs and documents carry the crawl counts, which add up:
On a success, fetched + delisted == discovered (jobs also count reused, see Keeping data current).
  • Products: records is usually larger than discovered, because one garment in seven colours is seven records.
  • Jobs: they usually agree. delisted is often above zero, because roles close while a run is going.
A job posting is not one vacancy: one advert often opens several seats. To size the hiring, sum 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.