Skip to main content
If you maintain a local database of CivicMarketplace data, use incremental syncing to stay up to date without re-fetching everything.

How incremental sync works

  1. Initial sync: Page through all records using cursor pagination
  2. Subsequent syncs: Use updated_since to fetch only records that changed since your last sync

Step 1: Initial full sync

Fetch all contracts, paginating until next_cursor is null:

Step 2: Incremental updates

On subsequent syncs, pass your last sync timestamp as updated_since:

Sync schedule recommendations

The updated_since filter works with cursor pagination, so even if thousands of records changed, you can page through them safely.

Syncing suppliers

The same pattern works for suppliers:

Syncing signals

List Signals has no updated_since filter. It returns the newest signals first, so a scheduled pull pages from the start and stops at the first signal it already holds:
Treat a signal id such as sig_aj4k as opaque text. Results follow the order signals were matched to your supplier, not their ids, so “fetch ids higher than last time” can miss signals.
Two more things to know:
  • status, contacted and not_relevant_note change as your team works a signal. Stopping at a known id does not refresh them, so re-read the window you care about if you track them.
  • Reading signals never marks them as viewed or contacted.