Jump toPolling the feeds
Build

Polling the feeds

Keep your copy of awards, opportunities and suppliers up to date by following each feed's cursor to the end.

How polling worksLink to this section

The awards, opportunities and supplier changes feeds return everything that changed since a point in time, oldest change first, one page at a time. All three work the same way. Each response looks like { "items": [...], "nextCursor": "...", "hasMore": true, "limit": 100 }.

  1. Make the first request with since (a UTC timestamp) and an optional limit (1 to 500, default 100).
  2. Process items, then store nextCursor somewhere durable.
  3. While hasMore is true, request the next page with cursor=<nextCursor> (leave since off; the cursor carries it).
  4. When hasMore is false, your copy is current. On the next poll, start from the stored cursor.

The feeds keep 24 months of history. A first request with an older since gets 400 since_too_old, whose detail gives the earliest allowed value. A stored cursor never expires, but returns nothing older than 24 months. If your last poll (or your stored cursor) is more than 24 months old, changes in the gap, including supplier hidden and deleted entries, cannot be delivered. Restarting from the earliest allowed since does not recover them. To keep your copy accurate, we recommend that you first re-verify every supplier you hold with GET /api/integration/v1/suppliers/{supplierId}: a 404 means the supplier is no longer published. That call needs suppliers:read. Then resume from the earliest allowed since.

A page can be short or empty while hasMore is true
Each request reads a bounded part of the change history, so a page can end before it is full. Follow nextCursor until hasMore is false. A short or empty page is not the end of the feed.
Polling loop
cursor = load_stored_cursor()            # empty on the first run
loop:
    if cursor: page = GET /api/integration/v1/awards?cursor={cursor}&limit=500
    else:      page = GET /api/integration/v1/awards?since=2026-01-01T00:00:00Z&limit=500
    for item in page.items: upsert(item)  # key on item.opportunity.ref, replace awards[]
    cursor = page.nextCursor
    store_cursor(cursor)
    if not page.hasMore: break            # short or empty pages do NOT mean the end
wait a few minutes, then run the loop again from the stored cursor

First page
curl -H "X-Api-Key: thub_live_YOUR_KEY" "https://api.tenderhub.com.au/api/integration/v1/awards?since=2026-01-01T00:00:00Z&limit=500"

Next page
curl -H "X-Api-Key: thub_live_YOUR_KEY" "https://api.tenderhub.com.au/api/integration/v1/awards?cursor=PASTE_NEXT_CURSOR&limit=500"

Handling changesLink to this section

An opportunity appears again each time it changes, so upsert by its ref. In the awards feed the awards array is always the complete current set for that opportunity: replace what you hold rather than appending. A withdrawn award arrives as the opportunity with awards: [].

Categories are TenderHub categories, the same ones the website uses. Each is { "slug": "cleaning-janitorial-services", "name": "Cleaning & janitorial services", "parentSlug": "trades-building-services" }, with parentSlug null for a top-level category. Statuses and opportunity types are { "code": "open", "name": "Open" } pairs, and locations carry a slug, a name and a state code. Match on slugs and codes, never on names (see identifiers).

Cursors are opaque
Store them as they are and do not build or edit them. A cursor only works on the endpoint that issued it.

Filtering opportunitiesLink to this section

The opportunities feed takes three optional filters. Send the same filters on every page: a cursor does not remember them.

Opportunities feed filters
ParameterTakes
categoryA TenderHub category slug from GET /reference/categories, for example trades-building-services. Matches that category and every category under it.
stateA state or territory code from GET /reference/states, for example nsw or nt.
locationA location slug from GET /reference/locations.
Cleaning opportunities in New South Wales
curl -H "X-Api-Key: thub_live_YOUR_KEY" "https://api.tenderhub.com.au/api/integration/v1/opportunities?since=2026-01-01T00:00:00Z&category=cleaning-janitorial-services&state=nsw"

An unknown category slug, state code or location slug gets 400 invalid_request.

Supplier changesLink to this section

If you keep copies of supplier records, poll GET /api/integration/v1/suppliers/changes (any one of the scopes awards:read, buyers:read or suppliers:read: supplier names reach you through all three) with the same since and cursor loop as the other feeds. It tells you when a supplier is edited, hidden or shown again, merged into another supplier, removed, or when its set of awards changes (for example when an award is re-matched to a different supplier). There is one item per supplier: if a supplier changes twice between your polls, you see only its latest change. The supplier record itself (name, ABN, website, page) is included only when your key holds suppliers:read; for any other key supplier is always null, and each item carries only id, change, changedAt and mergedInto.

One supplier change
{
  "id": "SUP-x9Yz12",
  "change": "updated",
  "changedAt": "2026-11-26T03:04:05Z",
  "mergedInto": null,
  "supplier": {
    "id": "SUP-x9Yz12",
    "name": "Acme Pty Ltd",
    "abn": "12345678901",
    "website": null,
    "slug": "acme-pty-ltd",
    "tenderHubUrl": "https://www.tenderhub.com.au/insights/acme-pty-ltd"
  }
}

Supplier change kinds
changeWhat to do
updatedThe name, ABN, website or page address changed. Refresh your copy from supplier.
unhiddenThe supplier is published again. Refresh your copy from supplier.
awards_changedThe supplier's set of awards changed. If you keep its totals or award history, refetch GET /suppliers/{supplierId} and its awards. The award rows themselves arrive in the awards feed.
mergedThe supplier was merged into the supplier in mergedInto. To keep your copy accurate, repoint your references to mergedInto and drop the merged record. mergedInto is null if that supplier is not published: handle that like hidden.
hiddenThe supplier is no longer published. To keep your copy accurate, drop it, and set supplier to null on every award you hold whose supplier.id is this id.
deletedThe supplier no longer exists. To keep your copy accurate, drop it, and set supplier to null on every award you hold whose supplier.id is this id.

For hidden and deleted the item carries only id, change and changedAt: supplier and mergedInto are null, and none of the supplier's details are returned. Treat a change code you do not recognise like updated.

A hidden supplier appears once, as hidden, when it is hidden. After that it does not appear again until it is shown again (unhidden), whatever happens to its awards. A supplier that was never published does not appear in this feed at all.

Hiding a supplier does not re-send the awards that name it. Awards you already hold keep the supplier you stored, so to match what the awards endpoints now return for those awards, set supplier to null on every stored award whose supplier.id matches the id of a hidden or deleted item.

Handling hidden, deleted and merged entries is recommended practice for keeping your copy accurate.

Data notesLink to this section

The source data has the following properties.

  • Shared awards are split evenly. When a buyer publishes one value for an award shared by several suppliers (common on panels), TenderHub divides it evenly between them. Per-supplier value figures on those awards are an estimate; totalValue is the published figure.
  • Standing offers carry their history. A standing offer or panel produces one award notice per engagement, and TenderHub groups them under the parent opportunity. A supplier's value there is the sum of its notices, and the opportunity is re-sent whenever a new notice arrives. Read these as the running history of an arrangement, not a single contract.
  • Unpublished values are null. Every money field (value, totalValue, awardedTotalValue, estimatedValue and totalAwardedValue) is null when the source did not publish a value. It is never 0 for an unknown value. Totals include only published values, and are null when none was published.
  • Some awards have no supplier. supplier is null when the awardee has not been matched to a TenderHub supplier record, or when the supplier record is hidden. The award value is still included when published.
  • Skipping awards without a supplier. An award row with "supplier": null has no matched TenderHub supplier. The API does not filter these rows out. Clients that want only known suppliers skip such rows on their side, and skip an opportunity when every one of its awards has supplier null. Continue to follow the awards feed and the supplier changes feed: an award that is matched or re-matched later, or a supplier that is hidden, is published there.
  • Supplier changes have their own feed. Hiding or showing a supplier, merging suppliers and re-matching an award to a different supplier are published in the supplier changes feed (as hidden, unhidden, merged and awards_changed), not by re-sending the opportunities they touch.
  • Opportunity deletes are not re-sent in v1. The feeds do not report a deleted opportunity. To check an opportunity you hold, request it with GET /opportunities/{ref}: a deleted one returns 404 not_found.