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: