Jump toTenderHub Data API
Get started

TenderHub Data API

Pull awarded contracts, opportunities, supplier and buyer records into your own systems with an organisation API key.
  • Get a key
    Organisation admins create keys in Account > API access.
  • Make your first call
    Check a key with GET /me in curl, JavaScript, Python or C#.
  • API reference
    Every endpoint, parameter and response, with "try it".
  • Changelog
    What changed in the API, newest first.

Make your first callLink to this section

  1. 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.
  2. Check the key with GET /api/integration/v1/me, sending it in the X-Api-Key header. The samples read the key from a TENDERHUB_API_KEY environment 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

  1. Poll a feed. Ask the awards, opportunities or supplier changes feed for everything since a date, then follow nextCursor until hasMore is false. 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/me

    Your 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/usage

    Today'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/awards

    Feed of awarded opportunities. Query: since, cursor, limit.

    Scope: awards:read

  • GET/api/integration/v1/opportunities

    Feed 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/changes

    Feed 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/suppliers

    Find 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}/awards

    The supplier's awards, newest first. Query: from, to, cursor, limit (1 to 200, default 50).

    Scope: suppliers:read

Buyers

  • GET/api/integration/v1/buyers

    List 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}/awards

    The 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/categories

    TenderHub categories: slug, name, parentSlug and the category's TenderHub page.

    Scope: none (any valid key)

  • GET/api/integration/v1/reference/locations

    Locations: slug, name and state code.

    Scope: none (any valid key)

  • GET/api/integration/v1/reference/states

    States and territories: code and name.

    Scope: none (any valid key)

  • GET/api/integration/v1/reference/statuses

    Opportunity statuses: code and name.

    Scope: none (any valid key)

  • GET/api/integration/v1/reference/opportunity-types

    Opportunity 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.

Identifiers
WhatLooks likeNotes
OpportunityTH-abc123The opportunity's TenderHub reference (ref). Opaque and stable. Store this value.
SupplierSUP-x9Yz12Opaque and stable. When suppliers merge, the supplier changes feed gives the id to use instead.
BuyerBUY-x7Pq2kOpaque and stable. Store this value.
Category, locationcleaning-janitorial-servicesThe slug of its TenderHub website page. GET /reference/categories and GET /reference/locations list them.
State, status, type, changensw, open, request_for_tenderLowercase codes that never change. The /reference endpoints list them.
CursornextCursorOpaque. Store it and send it back unchanged to the same endpoint.
API keydisplayPrefixthub_live_ plus six characters, as shown in Account > API access. Not the secret.
  • Store the id, not the name or slug. TH-..., SUP-... and BUY-... ids are opaque strings: store them as they are and never parse them or build them. Each record also has a slug and a tenderHubUrl, but those are attributes that can change (buyers and suppliers get renamed, and suppliers get merged).
  • Slug lookups are a convenience. GET /suppliers?slug= and GET /buyers?slug= find a record from a TenderHub page address; read the id from 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. abn and slug are exact and come back in name order. Either way, page with nextCursor and send the same criterion each time.
  • Every id you are given resolves. A BUY-... id in an opportunity or award always works with GET /buyers/{buyerId}. When a buyer is no longer active, records that point to it show buyer: null, as they do when no buyer is known.
  • Codes never change. Statuses, opportunity types, states and change kinds are lowercase snake_case codes such as open, closed, future_opportunity, nsw and awards_changed. Match on the code; the name beside 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 /reference endpoints list them.
  • Cursors are opaque. Store nextCursor as 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 /me and GET /usage do 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.

Support
Contact support and include the traceId from any error response. Every error code is explained on the errors page.