# UK Procurement Evidence | Contracts Finder & FTS (`sentry_zero/public-procurement-evidence-packet`) Actor

Bounded UK Contracts Finder and Find a Tender OCDS evidence packets with provenance and explicit missing fields. Supports supplied records or limited lookup by notice ID or keyword. Read-only: no eligibility advice, bid recommendation, document download, arbitrary URL fetch or external write.

- **URL**: https://apify.com/sentry_zero/public-procurement-evidence-packet.md
- **Developed by:** [Gaz Norman](https://apify.com/sentry_zero) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$250.00 / 1,000 procurement evidence packets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Public Procurement Evidence Packet

Bounded, deterministic processing of Contracts Finder/Find a Tender OCDS-style
releases. The Actor returns title, buyer, status, value, deadline, CPV,
geography, document references, keyword matches, provenance, source terms and
explicit missing fields.

Inputs may be supplied by the caller or retrieved from one of two fixed
official UK OCDS APIs by tender/notice identifier or a bounded keyword window.
Retrieval is GET-only, limited to 10 results and 10 requests, uses a six-second
minimum interval, and never follows arbitrary URLs or downloads documents. It
does not infer supplier eligibility, recommend bidding, submit bids, contact
buyers, or perform external writes.

### Input limits

- supplied mode: 1–10 releases per run
- official retrieval mode: 1–10 releases and at most 10 API requests
- up to 20 keywords
- up to 10 returned packets
- one dataset item per successful run; failed, invalid, partial and empty runs write none

### Example

The Store health-test prefill is a clearly labelled synthetic, local-only
example (`local-fixture://contracts-finder-ocds`) containing no sensitive data.
Use `example_input.json` for the same example. The output keeps unknown fields
visible, for example `submission route` when it is absent.

Official procurement endpoints may occasionally be unavailable or return an
HTTP 200 response with invalid JSON. The Actor records only a safe error
classification, HTTP status and content type in diagnostics, never the
response body. Failed retrieval is non-chargeable.

### Proposed paid pricing

Draft only — not active until publication approval: **$0.25 per successful
dataset item**, covering up to 10 packets. Failed or empty runs produce no
dataset item and no payable event. This is a pricing hypothesis, not revenue.

### Source attribution and terms

The retrieval sources are the official Contracts Finder and Find a Tender OCDS
APIs. Government notice data is generally published under the Open Government
Licence where applicable. Supplier-owned documents, third-party copyright,
logos and other exemptions are not assumed to be reusable. The Actor returns
document references and does not download or redistribute documents. Each
packet retains the request endpoint, release ID, retrieval timestamp and terms
link. Users remain responsible for current source terms and lawful use. This
Actor is not affiliated with or endorsed by any government service.

### Support

Use the Apify Store issue/support channel for run-specific problems. Include the
run ID, build number, timestamp, input field names and the error message; never
include credentials or sensitive procurement documents. There is no guaranteed
response-time or procurement advice service.

# Actor input Schema

## `source_url` (type: `string`):

Canonical URL or lawful source identifier for the already-fetched data; required for provenance.

## `keywords` (type: `array`):

Optional case-insensitive terms used to filter notice text.

## `max_results` (type: `integer`):

Maximum number of evidence packets to return; capped at 10 per run.

## `releases` (type: `array`):

Synthetic, non-sensitive example release for the Store health test; caller-supplied releases are capped at 10 per run.

## `retrieval` (type: `object`):

Optional bounded read-only retrieval from the official UK OCDS APIs. No arbitrary URLs or document downloads.

## Actor input object example

```json
{
  "source_url": "local-fixture://contracts-finder-ocds",
  "keywords": [
    "cleaning"
  ],
  "max_results": 10,
  "releases": [
    {
      "ocid": "ocds-demo/clean-001",
      "id": "release-clean-001",
      "tag": [
        "tender"
      ],
      "parties": [
        {
          "name": "Example Borough Council",
          "roles": [
            "buyer"
          ]
        }
      ],
      "tender": {
        "title": "Deep cleaning services for civic buildings",
        "description": "The council seeks suitably qualified cleaning suppliers for a three-year service.",
        "status": "active",
        "tenderPeriod": {
          "endDate": "2026-12-01T12:00:00Z"
        },
        "value": {
          "amount": 120000,
          "currency": "GBP"
        },
        "items": [
          {
            "classification": {
              "id": "90910000",
              "description": "Cleaning services"
            },
            "deliveryAddresses": [
              {
                "locality": "Exampletown",
                "countryName": "United Kingdom"
              }
            ]
          }
        ],
        "documents": [
          {
            "title": "Tender notice",
            "url": "https://example.gov.uk/notice/clean-001"
          }
        ],
        "submissionMethod": [
          "electronicSubmission"
        ]
      }
    }
  ]
}
```

# Actor output Schema

## `packet` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "source_url": "local-fixture://contracts-finder-ocds",
    "keywords": [
        "cleaning"
    ],
    "max_results": 10,
    "releases": [
        {
            "ocid": "ocds-demo/clean-001",
            "id": "release-clean-001",
            "tag": [
                "tender"
            ],
            "parties": [
                {
                    "name": "Example Borough Council",
                    "roles": [
                        "buyer"
                    ]
                }
            ],
            "tender": {
                "title": "Deep cleaning services for civic buildings",
                "description": "The council seeks suitably qualified cleaning suppliers for a three-year service.",
                "status": "active",
                "tenderPeriod": {
                    "endDate": "2026-12-01T12:00:00Z"
                },
                "value": {
                    "amount": 120000,
                    "currency": "GBP"
                },
                "items": [
                    {
                        "classification": {
                            "id": "90910000",
                            "description": "Cleaning services"
                        },
                        "deliveryAddresses": [
                            {
                                "locality": "Exampletown",
                                "countryName": "United Kingdom"
                            }
                        ]
                    }
                ],
                "documents": [
                    {
                        "title": "Tender notice",
                        "url": "https://example.gov.uk/notice/clean-001"
                    }
                ],
                "submissionMethod": [
                    "electronicSubmission"
                ]
            }
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("sentry_zero/public-procurement-evidence-packet").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "source_url": "local-fixture://contracts-finder-ocds",
    "keywords": ["cleaning"],
    "max_results": 10,
    "releases": [{
            "ocid": "ocds-demo/clean-001",
            "id": "release-clean-001",
            "tag": ["tender"],
            "parties": [{
                    "name": "Example Borough Council",
                    "roles": ["buyer"],
                }],
            "tender": {
                "title": "Deep cleaning services for civic buildings",
                "description": "The council seeks suitably qualified cleaning suppliers for a three-year service.",
                "status": "active",
                "tenderPeriod": { "endDate": "2026-12-01T12:00:00Z" },
                "value": {
                    "amount": 120000,
                    "currency": "GBP",
                },
                "items": [{
                        "classification": {
                            "id": "90910000",
                            "description": "Cleaning services",
                        },
                        "deliveryAddresses": [{
                                "locality": "Exampletown",
                                "countryName": "United Kingdom",
                            }],
                    }],
                "documents": [{
                        "title": "Tender notice",
                        "url": "https://example.gov.uk/notice/clean-001",
                    }],
                "submissionMethod": ["electronicSubmission"],
            },
        }],
}

# Run the Actor and wait for it to finish
run = client.actor("sentry_zero/public-procurement-evidence-packet").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "source_url": "local-fixture://contracts-finder-ocds",
  "keywords": [
    "cleaning"
  ],
  "max_results": 10,
  "releases": [
    {
      "ocid": "ocds-demo/clean-001",
      "id": "release-clean-001",
      "tag": [
        "tender"
      ],
      "parties": [
        {
          "name": "Example Borough Council",
          "roles": [
            "buyer"
          ]
        }
      ],
      "tender": {
        "title": "Deep cleaning services for civic buildings",
        "description": "The council seeks suitably qualified cleaning suppliers for a three-year service.",
        "status": "active",
        "tenderPeriod": {
          "endDate": "2026-12-01T12:00:00Z"
        },
        "value": {
          "amount": 120000,
          "currency": "GBP"
        },
        "items": [
          {
            "classification": {
              "id": "90910000",
              "description": "Cleaning services"
            },
            "deliveryAddresses": [
              {
                "locality": "Exampletown",
                "countryName": "United Kingdom"
              }
            ]
          }
        ],
        "documents": [
          {
            "title": "Tender notice",
            "url": "https://example.gov.uk/notice/clean-001"
          }
        ],
        "submissionMethod": [
          "electronicSubmission"
        ]
      }
    }
  ]
}' |
apify call sentry_zero/public-procurement-evidence-packet --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sentry_zero/public-procurement-evidence-packet"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/h0etpA0jol6AG9PPH/builds/ELnlDIZA7M3zfn7jB/openapi.json
