# EU Tender Match - Scored, Explained, With Buyer History (`arcuate_owl/eu-opportunity-match`) Actor

Give it one company profile and it returns the EU public tenders worth bidding on, each with a 0-100 score, the reason it matched, and what that buyer has awarded before and to whom. Billed per match, not per row.

- **URL**: https://apify.com/arcuate_owl/eu-opportunity-match.md
- **Developed by:** [Arcuate Owl](https://apify.com/arcuate_owl) (community)
- **Categories:** Lead generation, Business, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 opportunity matches

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

## EU Tender Match

Give it one company profile. It returns the EU public tenders worth bidding on, each
with a score out of 100, the reason it matched, and what that buyer has awarded
before and to whom.

The difference from a tender scraper is what you are billed for. A scraper sells you
rows: every notice in a date range, at a fraction of a cent each, and you do the
sifting. This sells answers: it reads the candidates, drops the ones your own rules
rule out, and charges only for the matches it hands you.

### What a match looks like

```
SCORE 78   relevance 86 x feasibility 0.914
Lægemiddelstyrelsen (DNK) · 19,600,000 DKK · deadline 2026-12-02, 12 days left
Udbud af udvikling af Den Veterinære Lægemiddeldatabase
why: exact CPV code 72000000 against your 72000000; 1 of 5 terms matched,
     1 in the title; value is inside your range; 12 days left to bid
buyer history: 2 awards in 3 years, median 27,046,090 DKK,
     top supplier CGI Danmark A/S holds 50%
```

That last line is the part a notice feed cannot tell you. Before you spend a week on
a bid it is worth knowing that this buyer awards rarely and has an incumbent with
half the work. The example above is from a real run.

### How the score works

The score is relevance scaled by feasibility, not a sum of parts:

```
score = relevance (0-100) x valueFactor x deadlineFactor
```

**Relevance** is the only thing that earns points, out of 70 and rescaled:

- **CPV fit, up to 40.** The strongest signal because it is structured. Codes narrow
  left to right, so an exact code scores 40, the same category 32, the same group 22,
  the same division 12.
- **Terms, up to 30.** Your keywords found as whole words, so "it" will not match
  "sanitet". A title hit counts double. The score saturates, so listing synonyms for
  coverage costs you nothing.

**Feasibility** can only hold a score back, never inflate it. A contract inside your
value range and a deadline three weeks out are not evidence that a tender is
relevant; they are reasons it is still worth bidding on. An unknown value or deadline
costs a tenth. Anything that fails one of your hard rules is excluded, not scored
low, and excluded notices are never billed.

The first version of this scorer added value and deadline as points, which meant an
exact CPV hit with no keyword match and no known deadline scored 63 out of 100. That
claimed more confidence than the evidence supported. The same notice now scores 51,
and the breakdown says plainly that none of your terms appeared.

### What gets excluded and never billed

- a tender whose deadline has passed, because you cannot bid on it
- one closing sooner than the days you said you need
- a contract outside your value range
- anything containing one of your exclusion terms
- a buyer outside your country list
- a notice matching neither your codes nor your words

### Deadlines

TED spreads deadlines across several fields and none is reliable. Measured on 25 live
Danish contract notices: `deadline-receipt-request` appeared on 25,
`deadline-receipt-tender-date-lot` on 19, and `deadline` on 10. Using the obvious
field alone leaves two notices in three with no date, which quietly disables the
whole feasibility half of the score.

So the Actor tries them in the order a bidder has to care about and reports which one
the date came from in `deadlineSource`. That took coverage from 9 of 25 to 25 of 25.

It also rejects dates too far out to be a submission deadline. A 25-year framework
agreement reported a deadline in 2051, which an earlier version faithfully described
as "9162 days left to bid". Those land in `deadlineImplausible` instead, so a null
deadline is never confused with a missing one.

### Billing

Two events, because two different kinds of work happen.

| Event | When | Suggested price |
|---|---|---|
| `profile-analysis` | once per run, after TED answers | $0.02 |
| `opportunity-match` | per delivered match | $0.05 |

The analysis charge covers reading the candidates whether or not anything matches, so
a run that genuinely finds nothing still pays for the look. Everything else is per
answer. `minScore` and `maxMatches` are both hard caps on what a run can cost, and
`scanLimit` controls how hard it looks without affecting the bill.

For comparison, row-priced tender Actors charge around $3 to $4 per thousand notices,
and matched tender subscriptions from Tendium, Mercell, MoreTenders and Jorpex run
from about €125 to €300 a month.

### Buyer history

With `includeBuyerHistory` on, each matched tender carries that buyer's award record:
how many contracts they awarded in the look-back window, the median value, the
currency, and the suppliers who keep winning, with the top supplier's share.

Median rather than mean, because one framework agreement would make every buyer look
enormous. One lookup per buyer per run however many of their tenders match, and if a
lookup fails you still get the match you paid for, with `buyerHistory` null.

### Where the data comes from

Everything is read from `POST https://api.ted.europa.eu/v3/notices/search`, the
European Union's own service, which needs no authentication for published notices.
Nothing is scraped and no model is called, which is also why a match costs cents
rather than dollars. Requests stay well inside TED's published fair-use policy of 700
a minute.

TED covers notices at or above the EU threshold values. National notices below the
threshold are published by each member state separately and are not in TED.

### Running it yourself

The source is public, and it runs locally without an Apify account:

```bash
npm install
npm test          # offline, fixtures, fast
npm run smoke     # hits the real TED API and checks the assumptions still hold
node src/main.js
```

Put your input in `storage/key_value_stores/default/INPUT.json`. To see the
pay-per-event charges, set `ACTOR_TEST_PAY_PER_EVENT=true` and
`ACTOR_USE_CHARGING_LOG_DATASET=true`, then read `storage/datasets/charging_log/`.

MIT licensed.

# Actor input Schema

## `companyName` (type: `string`):

Only used to label the output, so you can tell two runs apart. It does not affect matching.

## `cpvCodes` (type: `array`):

Common Procurement Vocabulary codes, the strongest matching signal because it is structured. Codes narrow from left to right: 72000000 is all IT services, 72200000 software and consultancy, 72212000 application software programming. Give the codes that describe what you sell and the scorer credits parents and children of them. Either this or keywords is required. Defaults to 72000000, all IT services, so the Actor returns something useful when run with no settings at all.

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

Matched as whole words in the notice title and description, so "it" will not match "sanitet". A hit in the title counts double. List synonyms freely; the score saturates rather than punishing a long list. Either this or CPV codes is required.

## `excludeKeywords` (type: `array`):

Any notice containing one of these is dropped and never billed, whatever else it matches. Use it for the work you will not take.

## `countries` (type: `array`):

ISO 3166-1 alpha-3 codes of the buyer's country, for example DNK, SWE, DEU. Leave empty for the whole EU.

## `minValue` (type: `integer`):

In the notice's own currency. A notice below this scores zero on value. Notices that state no value are scored neutrally rather than dropped, because TED often omits it.

## `maxValue` (type: `integer`):

In the notice's own currency. Keeps framework agreements you cannot service out of the results.

## `minDaysToDeadline` (type: `integer`):

A tender closing sooner than this is excluded rather than scored low, and is never billed. Set it to how long a bid actually takes you.

## `minScore` (type: `integer`):

Scores run 0 to 100. Only matches at or above this are delivered and billed, so this setting is how you trade cost against recall. 50 is a reasonable start; raise it if you get noise, lower it if you get too little.

## `maxMatches` (type: `integer`):

Hard cap on delivered matches, which is also a hard cap on what the run can cost you.

## `scanLimit` (type: `integer`):

How many candidate notices to score before giving up on finding more matches. Raise it for a narrow profile that matches rarely. Reading is not billed; only delivered matches are.

## `includeBuyerHistory` (type: `boolean`):

For each matched tender, look up what that buyer has awarded over the last few years: how many contracts, the median value, and which suppliers keep winning. One lookup per buyer per run, however many of their tenders match.

## `historyYears` (type: `integer`):

How far back to look for that buyer's past awards.

## `noticeTypes` (type: `array`):

TED notice type codes. cn-standard is a contract notice, the thing you can still bid on. Add pin-only for prior information notices to see work coming before it is tendered.

## `lookbackDays` (type: `integer`):

How far back to look for tenders. Ignored when you set an explicit date.

## `publishedSince` (type: `string`):

Only tenders published on or after this date (YYYY-MM-DD). Overrides the look-back setting.

## `language` (type: `string`):

Which language to read titles and descriptions in, falling back to English and then to whatever the notice carries. Keyword matching runs against the language you pick, so choose the one your keywords are written in.

## `onlyNew` (type: `boolean`):

Remembers which tenders it has already delivered for this exact profile, so a daily schedule only bills you for genuinely new opportunities.

## `stateStoreName` (type: `string`):

Only used with the only-new mode. Change it to keep separate profiles apart. It is a named key-value store on your own account, because the run's default store is wiped between runs.

## Actor input object example

```json
{
  "companyName": "Example ApS",
  "cpvCodes": [
    "72000000"
  ],
  "keywords": [
    "software",
    "udvikling",
    "development"
  ],
  "minDaysToDeadline": 7,
  "minScore": 50,
  "maxMatches": 25,
  "scanLimit": 600,
  "includeBuyerHistory": true,
  "historyYears": 3,
  "noticeTypes": [
    "cn-standard"
  ],
  "lookbackDays": 30,
  "language": "eng",
  "onlyNew": false,
  "stateStoreName": "eu-opportunity-match-state"
}
```

# Actor output Schema

## `matches` (type: `string`):

Every match this run delivered, one JSON object each, carrying the score, its relevance and feasibility parts, the reason, and the buyer's history.

# 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 = {
    "companyName": "Example ApS"
};

// Run the Actor and wait for it to finish
const run = await client.actor("arcuate_owl/eu-opportunity-match").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 = { "companyName": "Example ApS" }

# Run the Actor and wait for it to finish
run = client.actor("arcuate_owl/eu-opportunity-match").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 '{
  "companyName": "Example ApS"
}' |
apify call arcuate_owl/eu-opportunity-match --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,arcuate_owl/eu-opportunity-match"
        }
    }
}
```

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/Ci928CCbvbdo4Zo49/builds/N3YpYHzRMsoe8YOUR/openapi.json
