DEV Community

Aurelix Solutions
Aurelix Solutions

Posted on

UK Contracts Finder, Find a Tender and AusTender notices in Python

The UK and Australia both publish their public procurement as Open Contracting (OCDS) data: Contracts Finder and Find a Tender in the UK, AusTender in Australia. The APIs are free and need no key, but each pages differently, nests values in different places and mixes tenders, updates and awards in one stream.

This post reads all three into Python in one schema, filters them by category, buyer and value, and turns them into a daily feed that returns only notices not returned before.

Disclosure: I'm Aurelix, and I built UK & Australia Tenders, the tool used here. It's a paid tool (prices below).

What each row holds

  • source, notice_id, ocid, stage (planning, tender, award, cancelled).
  • title, description (contact details removed), buyer, region.
  • cpv (UK) or unspsc (Australia) codes and their descriptions.
  • value, award_value, currency, procurement_method, status.
  • published_date, closes_at (tender deadline), award_date, contract_start, contract_end.
  • suppliers: the organisations awarded (only names with an organisation marker such as Ltd, Pty, PLC or Council; others are withheld).
  • url and licence.

Open UK IT tenders from today and yesterday

pip install apify-client
Enter fullscreen mode Exit fullscreen mode
import os

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("aurelix/uk-australia-tenders").call(
    run_input={"sources": ["contracts-finder", "find-a-tender"], "daysBack": 1,
               "stages": ["tender"], "categoryCodes": ["72", "48"]}
)
for t in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(t["closes_at"], t["buyer"], t["title"], t["value"], t["currency"])
Enter fullscreen mode Exit fullscreen mode

Who won Australian Government contracts this week

run = client.actor("aurelix/uk-australia-tenders").call(
    run_input={"sources": ["austender"], "daysBack": 7, "minValue": 100000}
)
for t in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"{t['award_value']:>12,.0f} AUD  {t['buyer']:<40} {', '.join(t['suppliers'])}")
Enter fullscreen mode Exit fullscreen mode

Only new notices, every day

run_input = {
    "sources": ["contracts-finder", "find-a-tender", "austender"],
    "daysBack": 1,
    "keywords": ["software", "cloud", "cyber"],
    "incremental": True,
    "stateKey": "uk-au-it-daily",
    "slackWebhookUrl": "https://hooks.slack.com/services/...",
}
Enter fullscreen mode Exit fullscreen mode

The first run returns everything that matches and remembers it; each later run with the same stateKey returns only notices it has not returned before. Schedule it daily in the Apify Console: Slack gets a short digest with links, and nothing is sent when nothing is new.

Limits

  • AusTender's public API publishes contract notices (awards) only, not open approaches to market.
  • Up to 7 days per run. Find a Tender limits requests, so one run reaches about its last 3 days; for longer history run it daily with incremental mode.
  • Australian state government portals are not covered.

Cost

$1.50 per 1,000 notices on Apify's free plan, $1.20 on paid plans, plus a $0.008 start fee per run. A source with nothing to return costs $0.0005, except the first two in each run. Current prices are on the Store page; Apify's free plan includes $5 of credit a month.

Use it from an AI assistant

Through Apify's hosted MCP server, Claude, ChatGPT or Cursor can run it from a request like "list open UK cyber security tenders over 100,000 GBP closing this month". Server URL: https://mcp.apify.com/?tools=aurelix/uk-australia-tenders.

Links

Top comments (0)