Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIUK public contracts

    ukcontracts.notices

    UK public tenders and awards from Find a Tender and Contracts Finder: title, buyer, value, deadline, CPV code, suppliers and contract dates, by publication date.

    Id
    ukcontracts.notices
    Version
    1
    Billed per
    request — 1 unit for a charged run
    Runs
    within one request

    Start it with POST /v1/scrapers/ukcontracts.notices/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.

    Inputs

    The fields of input. A field that is not listed here is refused.

    Inputs of ukcontracts.notices
    FieldTypeDescription
    source"find_a_tender" | "contracts_finder"find_a_tender (above the UK thresholds) or contracts_finder (below them).Default: "find_a_tender".
    published_fromstringNotices published on or after this day, YYYY-MM-DD. Default: seven days back.
    published_tostringNotices published on or before this day, YYYY-MM-DD. Default: today.
    stage"any" | "planning" | "tender" | "award" | "contract"Only notices of this stage, kept from the page read.Default: "any".
    keywordstringOnly notices whose title or description holds this text, kept from the page read.Limit: at least 2 characters, at most 100 characters.
    max_resultsintegerNotices read a page, at most 100.Limit: 1 to 100. Default: 50.
    cursorstringThe next page: the next_cursor a previous run reported.Limit: at most 400 characters.

    Record fields

    Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.

    Record fields of ukcontracts.notices
    FieldTypeNotes
    sourcestringfind_a_tender or contracts_finder.
    ocidstringThe procurement's Open Contracting id, the same across its notices.
    notice_idstringThe id of this notice.
    urlstringThe notice's public page.
    stagestring or nullWhat this notice is: planning, tender, award or contract, as the release is tagged; the last tag where it has several.
    titlestring or nullThe procurement's title.
    descriptionstring or nullIts description.
    buyerstring or nullThe public body buying.
    statusstring or nullThe tender's status, e.g. active, complete.
    categorystring or nullgoods, works or services.
    procurement_methodstring or nullThe method, e.g. open, selective.
    cpv_codestring or nullThe main CPV code.
    cpv_descriptionstring or nullWhat that code means.
    valuenumber or nullThe tender's estimated value.
    currencystring or nullThe currency of the value, e.g. GBP.
    published_datestring or nullThe day this notice was published, YYYY-MM-DD.
    deadline_datestring or nullThe day tenders are due, YYYY-MM-DD.
    contract_startstring or nullThe contract's start, YYYY-MM-DD.
    contract_endstring or nullThe contract's end, YYYY-MM-DD.
    suppliersarray of stringThe organisations awarded it.
    award_valuenumber or nullThe value of the award, where one is published.
    award_datestring or nullThe day of the award, YYYY-MM-DD.
    fetched_atstring (date-time)When the service was asked, in UTC.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/scrapers/ukcontracts.notices/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"input":{"source":"find_a_tender","published_from":"2026-11-15","published_to":"2026-11-20","max_results":4}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("ukcontracts.notices", {
        "source": "find_a_tender",
        "published_from": "2026-11-15",
        "published_to": "2026-11-20",
        "max_results": 4,
    })
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("ukcontracts.notices", {
      source: "find_a_tender",
      published_from: "2026-11-15",
      published_to: "2026-11-20",
      max_results: 4,
    });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "ukcontracts.notices", map[string]any{"source": "find_a_tender", "published_from": "2026-11-15", "published_to": "2026-11-20", "max_results": 4})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("ukcontracts.notices", Map.of("source", "find_a_tender", "published_from", "2026-11-15", "published_to", "2026-11-20", "max_results", 4));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run ukcontracts.notices --input source=find_a_tender --input published_from=2026-11-15 --input published_to=2026-11-20 --input max_results=4

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "input": {
        "source": "find_a_tender",
        "published_from": "2026-11-15",
        "published_to": "2026-11-20",
        "max_results": 4
      }
    }

    Example response

    The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.

    JSON
    {
      "id": "run_841742f37553189ff9c27ba1",
      "scraper_id": "ukcontracts.notices",
      "scraper_version": 1,
      "status": "ok",
      "reason": null,
      "input": {
        "source": "find_a_tender",
        "published_from": "2026-11-15",
        "published_to": "2026-11-20",
        "max_results": 4
      },
      "record_count": 1,
      "units": 1,
      "units_per_request": 1,
      "units_per_record": null,
      "units_per_page": null,
      "diagnostics": {
        "requests": 1,
        "bytes": 259214,
        "wall_ms": 885,
        "facts": {}
      },
      "created_at": "2026-11-16T22:37:50.170950Z",
      "started_at": "2026-11-16T22:37:50.178331Z",
      "finished_at": "2026-11-16T22:37:51.066313Z"
    }

    Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.

    JSON
    {
      "records": [
        {
          "source": "find_a_tender",
          "ocid": "ocds-h6vhtk-07c0d9",
          "notice_id": "110374-2026",
          "url": "https://www.find-tender.service.gov.uk/Notice/110374-2026",
          "stage": "tender",
          "title": "PROVISION OF SERVICES TO ACCEPT, PROCESS AND MARKET MIXED AND SOURCE SEPARATED WASTE FOR RECYCLING",
          "description": "arc21 is procuring, in two Lots to reflect different waste configurations and collection systems and to provide for future changes and roll out of services, the provision of services relating to the receipt, transfer, processing, brokerage … [truncated]",
          "buyer": "arc21",
          "status": "active",
          "category": "services",
          "procurement_method": "open",
          "cpv_code": null,
          "cpv_description": null,
          "value": 14913274,
          "currency": "GBP",
          "published_date": "2026-11-20",
          "deadline_date": "2026-12-21",
          "contract_start": null,
          "contract_end": null,
          "suppliers": [],
          "award_value": null,
          "award_date": null,
          "fetched_at": "2026-11-23T23:51:46.174094Z"
        }
      ],
      "next_cursor": null
    }

    What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].

    • Shortened: description: 5,828 characters, the first 239 shown.

    A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the UK public contracts scrapers are in their own section there.