# Tender Scoring & Eligibility Extractor (`jadelike_zine/tender-deep-extractor`) Actor

Extract award criteria weights, eligibility requirements, disqualification traps and deadlines from tender notices & PDFs (TED, SAM.gov). Every field carries a verbatim source quote re-verified against the document - no hallucinated compliance data. For bid/no-bid automation and AI agents.

- **URL**: https://apify.com/jadelike\_zine/tender-deep-extractor.md
- **Developed by:** [Derrick](https://apify.com/jadelike_zine) (community)
- **Categories:** AI, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$200.00 / 1,000 tender document deep-extracteds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Tender Deep-Field Extractor

Turn public tender notices (TED, SAM.gov, any English/EU tender PDF) into **deep, per-lot structured JSON** — the fields that decide whether a bid is worth writing and what gets it thrown out:

- ✅ **Eligibility requirements**, itemized (financial / experience / certification / personnel), each with the verbatim source line
- ✅ **Award-criteria weight breakdown** (price vs quality sub-criteria, percentage or points — exactly as published)
- ✅ **Disqualification triggers** — language restrictions, e-signature mandates, "variants not allowed", "prices outside the pricing form are invalid" and other rejection traps buried in submission terms
- ✅ **Key dates** normalized to ISO8601 with timezone (clarification deadline, submission deadline, opening, tender validity)
- ✅ **Change-notice awareness** — amended deadlines are resolved from authoritative structured fields, with the change recorded separately
- ✅ Multi-lot notices: every deep field extracted **per lot**, plus cross-lot constraints (e.g. max lots per tenderer)

### Why this instead of a notice scraper?

Notice monitors and RFP scrapers give you *discovery metadata*: title, buyer, deadline, a link. This Actor reads the notice like a bid manager does and answers:

| Question | Notice scrapers | This Actor |
|---|---|---|
| Who is even allowed to bid? | "eligibility mentioned" | Itemized requirement list with quotes |
| How is the score computed? | — | Weight table per criterion, percentage vs points |
| What gets my bid rejected? | — | Explicit disqualification-trigger list with quotes |
| Was the deadline amended? | Sometimes | Resolved date + change record |

### Anti-hallucination by design

Every extracted value carries a **`source_quote` — a verbatim substring of the document**. A validation layer re-checks each quote against the source text: anything that cannot be located verbatim is **dropped and reported in `validation_warnings`, never invented**. Runs that fall below a 50% quote-verification ratio are **not charged**.

Fields genuinely absent from a notice come back as `null` with an explanatory warning (e.g. *"selection criteria live in the procurement document"*) — that is the honest answer, not a gap in extraction.

### Input

```json
{
  "sources": [
    "https://ted.europa.eu/udl?uri=TED:NOTICE:341069-2026:PDF:EN:HTML",
    "https://example.com/any-tender.pdf"
  ]
}
````

1–20 notice URLs or direct PDF links per run. Duplicate URLs are de-duplicated. Sources must be public `http(s)` URLs.

### Output shape (annotated golden expectation for a real TED notice)

> This block is the **hand-annotated expected output** used in the golden set, shown to illustrate the schema — a live run produces the same shape. Note that when a notice defers selection criteria to a separate procurement document (common on TED), `eligibility.requirements` is intentionally empty and `eligibility.source` is `"procurement_document"`; this Actor reads the notice you pass it and does **not** currently follow the link to fetch that separate document.

```json
{
  "lot_id": "LOT-0000",
  "scoring": {
    "type": "MEAT",
    "weight_kind": "percentage",
    "criteria": [
      { "name": "TK1 - Price", "type": "price", "weight": 50,
        "source_quote": "Description: Total evaluation price (per annum)" },
      { "name": "TK 2 Quality - Environment", "type": "quality", "weight": 30,
        "source_quote": "The share of available zero emission vehicles" },
      { "name": "TK 3 Quality - Scale-up plan", "type": "quality", "weight": 20,
        "source_quote": "Plan for scaling up as regards real stand-by" }
    ],
    "weights_sum": 100
  },
  "disqualification_triggers": [
    { "trigger": "Tender submitted in a language other than Norwegian",
      "category": "format",
      "source_quote": "Languages in which tenders or requests to participate may be submitted: Norwegian" },
    { "trigger": "Missing advanced/qualified electronic signature or seal",
      "category": "signature",
      "source_quote": "Advanced or qualified electronic signature or seal (as defined in Regulation (EU) No 910/2014) is required" }
  ],
  "key_dates": {
    "submission_deadline": "2026-06-26T10:00:00Z",
    "tender_validity": "P4M"
  }
}
```

### Who uses this

- **Bid-tracking and procurement-intelligence tools** that need qualification logic, not just listings
- **Bid/no-bid automation** — feed the eligibility list and weight table straight into your scoring model
- **Agent workflows** (MCP / LLM pipelines) that must not hallucinate compliance requirements

### Accuracy

Validated against an annotated golden set of real TED notices (single-lot open procedures, two-stage negotiated procedures with change notices, multi-lot points-weighted notices, plus a held-out German-language notice): **≥90% field-level agreement across runs, 100% quote verification on passing runs**. Reproduce it yourself with `pnpm golden` (needs a DeepSeek key).

Honest caveats:

- Extraction of the *disqualification-triggers* list can vary run-to-run (the model occasionally under-recalls a trigger); the field is a strong signal, not a guaranteed-complete list.
- The golden set is currently all **TED** notices. SAM.gov is supported by the same pipeline but is **not yet covered by published golden evidence** — treat SAM.gov results as beta until we add annotated samples.
- **Data sources & terms.** TED notices are re-usable under CC BY 4.0. This Actor extracts from whatever tender URL/PDF *you* provide; it does not crawl or harvest any site on its own. For **SAM.gov** note that its [Terms of Use](https://sam.gov/about/terms-of-use) prohibit "systematic access (electronic harvesting) or extraction of content … including the use of 'bots' or 'spiders'" — this Actor reads a page you paste, not the official feed, so keep SAM.gov use to occasional individual notices; for bulk/automated needs use the official free [api.sam.gov Get Opportunities API](https://open.gsa.gov/api/get-opportunities-public-api/) instead.

### Fair charging

Pay per successfully extracted document. Failed fetches, non-tender pages, low-verification extractions, and sources skipped after your run's charge limit is reached are **all not charged**. Every `source_quote` — across eligibility, scoring, disqualification triggers, two-stage clauses, cross-lot constraints and change records — is re-verified verbatim against the document before the run is billable.

# Actor input Schema

## `sources` (type: `array`):

1-20 public tender notice URLs or direct PDF links (TED, SAM.gov, or any English-language tender document).

## Actor input object example

```json
{
  "sources": [
    "https://ted.europa.eu/udl?uri=TED%3ANOTICE%3A341069-2026%3APDF%3AEN%3AHTML"
  ]
}
```

# 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 = {
    "sources": [
        "https://ted.europa.eu/udl?uri=TED%3ANOTICE%3A341069-2026%3APDF%3AEN%3AHTML"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jadelike_zine/tender-deep-extractor").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 = { "sources": ["https://ted.europa.eu/udl?uri=TED%3ANOTICE%3A341069-2026%3APDF%3AEN%3AHTML"] }

# Run the Actor and wait for it to finish
run = client.actor("jadelike_zine/tender-deep-extractor").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "sources": [
    "https://ted.europa.eu/udl?uri=TED%3ANOTICE%3A341069-2026%3APDF%3AEN%3AHTML"
  ]
}' |
apify call jadelike_zine/tender-deep-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jadelike_zine/tender-deep-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Tender Scoring & Eligibility Extractor",
        "description": "Extract award criteria weights, eligibility requirements, disqualification traps and deadlines from tender notices & PDFs (TED, SAM.gov). Every field carries a verbatim source quote re-verified against the document - no hallucinated compliance data. For bid/no-bid automation and AI agents.",
        "version": "0.1",
        "x-build-id": "70Ax6v4RJzMmiiTrS"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jadelike_zine~tender-deep-extractor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jadelike_zine-tender-deep-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jadelike_zine~tender-deep-extractor/runs": {
            "post": {
                "operationId": "runs-sync-jadelike_zine-tender-deep-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jadelike_zine~tender-deep-extractor/run-sync": {
            "post": {
                "operationId": "run-sync-jadelike_zine-tender-deep-extractor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "sources"
                ],
                "properties": {
                    "sources": {
                        "title": "Tender notice URLs / PDF links",
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "description": "1-20 public tender notice URLs or direct PDF links (TED, SAM.gov, or any English-language tender document).",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
