Guides Data pipelines
Keep a copy in your own systems
A nightly job that pulls only what changed since last time.
-
Start from a date
The first run asks for everything changed since a date. Results come oldest change first, so you can stop and resume at any point.
curl "https://api.trendwatching.com/v1/innovations/changes?updated_since=2026-01-01&limit=100" \ -H "Authorization: Bearer $TW_API_KEY" -
Save the cursor
Every response includes
next_cursor, the position after the last change you received. Store it with your data. Whilehas_moreis true, call again straight away.import json, pathlib state = pathlib.Path("tw_cursor.json") cursor = json.loads(state.read_text())["cursor"] if state.exists() else None while True: page = ( tw.innovations.changes(cursor=cursor) if cursor else tw.innovations.changes(updated_since="2026-01-01") ) upsert(page.data) # your database write, keyed on innovation_id cursor = page.next_cursor or cursor state.write_text(json.dumps({"cursor": cursor})) if not page.has_more: break -
Run it on a schedule
Run the same script nightly. Each run starts from the saved cursor and receives only newer changes. Upsert on
innovation_id, since an innovation reappears when its record is updated.0 3 * * * python sync_trendwatching.py