Developers
Caching and refresh
Store Parcel records on your side and keep them current.
Store what you fetch
Save each record with the time you fetched it. Serve your pages from that copy.
Refresh
Refresh every record at least every 30 days. Projects move slowly, so a weekly job is plenty:
- Run the search that built your set again, paging with
search_afterto the last page. - Replace your copy of each record returned. Reading a record your workspace took out in the last 30 days is free.
- For each record you hold that the search no longer returns,
GETit by id. If it is gone, or itspublic_urlis now null, remove it.
public_url follows what Parcel publishes: when Parcel withdraws a page, the field turns null within a day.
A weekly refresh costs nothing extra; each record you keep showing is charged once every 30 days.
New records
A record costs credits when it first appears in your search, and again once 30 days have passed since you last paid for it. metadata.credits on each response tells you what the call charged. If a page answers 402, ask for a smaller page or add credits; nothing was charged.
The Terms of Service govern.