Jump toTenderHub Data API
TenderHub Data API
Make your first callLink to this section
- Get a key. The Data API is part of the Enterprise plan. An organisation admin creates keys in Account > API access; see keys and authentication.
- Check the key with
GET /api/integration/v1/me, sending it in theX-Api-Keyheader. The samples read the key from aTENDERHUB_API_KEYenvironment variable, which keeps it out of your code.
curl -H "X-Api-Key: thub_live_YOUR_KEY" https://api.tenderhub.com.au/api/integration/v1/me- Poll a feed. Ask the awards, opportunities or supplier changes feed for everything since a date, then follow
nextCursoruntilhasMoreisfalse. The polling guide describes each step.
EndpointsLink to this section
Every endpoint is a GET under /api/integration/v1/ and returns JSON. The API reference has the full request and response schemas. Timestamps are UTC ISO 8601 with a Z suffix, money is a number in Australian dollars, and records are identified by opaque ids and lowercase codes (see identifiers). Endpoints with no scope work with any valid key.
Your key and usage
- GET
/api/integration/v1/meYour organisation, the calling key (displayPrefix, scopes, expiry) and its limits. Use it to verify a key.
Scope: none (any valid key)
- GET
/api/integration/v1/usageToday's request counts for your organisation and each of its keys, against the daily quota, plus the current minute for the calling key.
Scope: none (any valid key)
Feeds
- GET
/api/integration/v1/awardsFeed of awarded opportunities. Query: since, cursor, limit.
Scope:
awards:read - GET
/api/integration/v1/opportunitiesFeed of opportunities. Query: since, cursor, limit, category (category slug, includes subcategories), state (state code such as nsw), location (location slug).
Scope:
opportunities:read - GET
/api/integration/v1/suppliers/changesFeed of supplier changes: updated, hidden, unhidden, merged, deleted and awards_changed. Query: since, cursor, limit.
Scope:
awards:read, buyers:read or suppliers:read
Opportunities
- GET
/api/integration/v1/opportunities/{ref}One opportunity by its TenderHub reference (TH-...), in the same shape as an opportunities feed item.
Scope:
opportunities:read
Suppliers
- GET
/api/integration/v1/suppliersFind suppliers. Query: exactly one of abn (11 digits), name (2 to 100 characters, contains) or slug; cursor, limit (1 to 50, default 20).
Scope:
suppliers:read - GET
/api/integration/v1/suppliers/{supplierId}One supplier: name, ABN, website, slug and award totals.
Scope:
suppliers:read - GET
/api/integration/v1/suppliers/{supplierId}/awardsThe supplier's awards, newest first. Query: from, to, cursor, limit (1 to 200, default 50).
Scope:
suppliers:read
Buyers
- GET
/api/integration/v1/buyersList active buyers, or find them. Query: name (2 to 100 characters, contains) or slug, or neither to list them all; cursor, limit (1 to 100, default 50).
Scope:
buyers:read - GET
/api/integration/v1/buyers/{buyerId}One buyer: name, slug, opportunity and award counts, total awarded value and first and last award dates.
Scope:
buyers:read - GET
/api/integration/v1/buyers/{buyerId}/awardsThe buyer's awarded opportunities, newest first, with every award. Query: from, to, cursor, limit (1 to 200, default 50).
Scope:
buyers:read
Reference data
- GET
/api/integration/v1/reference/categoriesTenderHub categories: slug, name, parentSlug and the category's TenderHub page.
Scope: none (any valid key)
- GET
/api/integration/v1/reference/locationsLocations: slug, name and state code.
Scope: none (any valid key)
- GET
/api/integration/v1/reference/statesStates and territories: code and name.
Scope: none (any valid key)
- GET
/api/integration/v1/reference/statusesOpportunity statuses: code and name.
Scope: none (any valid key)
- GET
/api/integration/v1/reference/opportunity-typesOpportunity types: code and name.
Scope: none (any valid key)
IdentifiersLink to this section
The API never exposes TenderHub's internal database ids. Every record is identified in one of three ways. Each is stable: it does not change when a name or display label changes.
| What | Looks like | Notes |
|---|---|---|
| Opportunity | TH-abc123 | The opportunity's TenderHub reference (ref). Opaque and stable. Store this value. |
| Supplier | SUP-x9Yz12 | Opaque and stable. When suppliers merge, the supplier changes feed gives the id to use instead. |
| Buyer | BUY-x7Pq2k | Opaque and stable. Store this value. |
| Category, location | cleaning-janitorial-services | The slug of its TenderHub website page. GET /reference/categories and GET /reference/locations list them. |
| State, status, type, change | nsw, open, request_for_tender | Lowercase codes that never change. The /reference endpoints list them. |
| Cursor | nextCursor | Opaque. Store it and send it back unchanged to the same endpoint. |
| API key | displayPrefix | thub_live_ plus six characters, as shown in Account > API access. Not the secret. |
- Store the id, not the name or slug.
TH-...,SUP-...andBUY-...ids are opaque strings: store them as they are and never parse them or build them. Each record also has aslugand atenderHubUrl, but those are attributes that can change (buyers and suppliers get renamed, and suppliers get merged). - Slug lookups are a convenience.
GET /suppliers?slug=andGET /buyers?slug=find a record from a TenderHub page address; read theidfrom the result and key on that. - Name search is ranked.
GET /suppliers?name=returns the best matches first (an exact name, then names starting with your words, then names containing all of them), not name order.abnandslugare exact and come back in name order. Either way, page withnextCursorand send the same criterion each time. - Every id you are given resolves. A
BUY-...id in an opportunity or award always works withGET /buyers/{buyerId}. When a buyer is no longer active, records that point to it showbuyer: null, as they do when no buyer is known. - Codes never change. Statuses, opportunity types, states and change kinds are lowercase
snake_casecodes such asopen,closed,future_opportunity,nswandawards_changed. Match on the code; thenamebeside it is for display and may be reworded. Treat a code you do not recognise as something new, not as an error. - Categories and locations use the website's slugs, the same ones as their TenderHub pages, for example
cleaning-janitorial-services. The/referenceendpoints list them. - Cursors are opaque. Store
nextCursoras it is and only send it back to the endpoint that issued it. - Keys are identified by their
displayPrefix(thub_live_plus six characters, as shown in Account > API access).GET /meandGET /usagedo not return any other key id.
Using the dataLink to this section
Supplier records include the business name and ABN as published by buyers and the Australian Business Register. For a sole trader these can identify an individual. The API never returns contact names, email addresses, phone numbers or other contact details. Use of the Data API is governed by the TenderHub terms and conditions.
Requesting new endpointsLink to this section
The Data API grows with the needs of the organisations that use it. If your integration needs data or a query shape the current endpoints do not provide, such as a search endpoint that returns a configurable set of fields, contact support with a description of the use case. Requests from Enterprise customers are prioritised and worked through with you directly, and each release is announced in the changelog.
traceId from any error response. Every error code is explained on the errors page.