# Italy Public Tenders (ANAC) (`danielefontana/italy-tenders-anac`) Actor

Italian public procurement from the official ANAC open data: every CIG with buyer, amount, CPV, deadline, procedure and outcome, plus OCDS awards with suppliers. Filter by region, CPV, keywords, value, PNRR. Pay per result.

- **URL**: https://apify.com/danielefontana/italy-tenders-anac.md
- **Developed by:** [Daniele Fontana](https://apify.com/danielefontana) (community)
- **Categories:** Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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

## Italy Public Tenders (ANAC open data) – CIG, buyers, amounts, outcomes

Every Italian public contract gets a **CIG** (Codice Identificativo Gara) and is published by
**ANAC**, the National Anti-Corruption Authority, as open data. This Actor reads those official
files and returns clean, normalized records: contracting authority, subject, CPV, amount,
procedure, publication date, deadline, outcome, region and province.

Unlike TED, ANAC covers **all** Italian procurement, including the below-threshold contracts
(affidamenti diretti, procedure negoziate, MePA orders) that make up most of the market.

Use cases: tender monitoring for sales and bid teams, supplier intelligence, market sizing by
CPV and region, PNRR tracking, compliance and research, and AI agents that need structured data.

- Official ANAC open data (CC BY-SA 4.0), no scraping of portals.
- Up to the last 12 monthly ANAC updates, pre-split by publication date: a 30-day query
  starts returning records in seconds instead of downloading hundreds of MB.
- The Actor stops as soon as your `maxItems` is reached, so targeted queries are quick and cheap.
- Pay per result, same output schema as our **EU Public Tenders (TED)** Actor.

***

### What you get

```json
{
  "source": "anac-cig",
  "source_id": "BB10203040",
  "id": "anac-cig:BB10203040",
  "title": "SERVIZIO DI MANUTENZIONE SOFTWARE GESTIONE DOCUMENTALE E PROTOCOLLO INFORMATICO",
  "description": null,
  "buyer_name": "COMUNE DI MILANO",
  "buyer_id": "01199250158",
  "region": "Lombardia",
  "country": "ITA",
  "cpv_codes": ["72267000"],
  "cpv_main": "72267000",
  "procedure_type": "procedura negoziata senza previa pubblicazione",
  "contract_nature": "services",
  "notice_kind": "competition",
  "estimated_value": 180000,
  "currency": "EUR",
  "publication_date": "2026-10-01",
  "deadline": "2026-11-15",
  "status": "open",
  "url": "https://dati.anticorruzione.it/superset/dashboard/dettaglio_cig/?cig=BB10203040",
  "winner_name": null,
  "award_value": null,
  "extra": {
    "cig": "BB10203040",
    "tender_group_id": "9999999",
    "province": "MILANO",
    "total_tender_value": 180000,
    "lots_count": 1,
    "cpv_description": "SERVIZI DI MANUTENZIONE E RIPARAZIONE DI SOFTWARE",
    "outcome": null,
    "pnrr": true,
    "urgent": false
  }
}
```

#### Fields

| Field | Type | Description |
|---|---|---|
| `source` | string | `anac-cig`. |
| `source_id` | string | The CIG. |
| `id` | string | Stable id (`anac-cig:<CIG>`), use it to deduplicate across runs. |
| `title` | string | Subject of the lot (falls back to the subject of the tender). |
| `description` | string or null | Subject of the whole tender when it differs from the lot. |
| `buyer_name`, `buyer_id` | string | Contracting authority and its fiscal code. |
| `region` | string or null | Region of the contracting authority (`Lombardia`, `Lazio`, `Centrale` for national bodies). |
| `cpv_codes`, `cpv_main` | string\[] / string | 8-digit CPV. |
| `procedure_type` | string | ANAC procedure name, lower case (`procedura aperta`, `affidamento diretto`, ...). |
| `contract_nature` | `works` / `services` / `goods` | lavori / servizi / forniture. |
| `notice_kind` | `competition` / `result` | `result` once an outcome has been communicated. |
| `estimated_value`, `currency` | number / `EUR` | Lot value. The whole-tender value is in `extra.total_tender_value`. |
| `publication_date`, `deadline` | `YYYY-MM-DD` | Publication and deadline for offers. |
| `status` | `open` / `closed` / `awarded` / `cancelled` / `unknown` | |
| `url` | string | ANAC detail page of the CIG. |
| `winner_name`, `award_value` | null | Not published in the CIG files (the outcome is in `extra.outcome`). |
| `extra` | object | Province, ISTAT place code, number of lots, sector, implementation mode, outcome and outcome date, cancellation reason, PNRR and urgency flags, buyer AUSA code, cost center. |
| `raw` | object | The original ANAC row, only when `includeRaw` is on. |

### Data source and freshness

ANAC publishes the **"CIG aggiornamenti delta"** file once a month (usually in the first days of
the month, sometimes later): every CIG published or updated since the previous file. ANAC blocks
cloud servers, so we copy each new file to Apify storage as soon as it appears, unchanged, and the
Actor reads that copy. The run log shows the date of the newest ANAC file and the latest
publication date it contains.

- Up to the last 12 monthly files are available. A CIG updated in several files is returned once, in
  its newest state.
- Data is as fresh as ANAC's monthly publication: tenders published this month appear after the
  next ANAC file (for example, October's tenders in the file of early November).

### Input

All inputs are optional. With no input you get **all Italian tenders published in the last 30 days
covered by the newest ANAC file** (for the file of 1 November: 2–31 October). Add filters to narrow
the result (and the cost):

| Input | Description |
|---|---|
| `daysBack` | Last N days of available data (default 30), ending at the latest publication date in the newest ANAC file. |
| `publishedFrom`, `publishedTo` | Explicit publication window (overrides `daysBack`). |
| `onlyOpen` | Keep only tenders whose deadline for offers has not passed. |
| `regions`, `provinces` | e.g. `Lombardia`, `Lazio`; provinces as ANAC writes them (`MILANO`, `ROMA`). |
| `cpvCodes` | CPV codes or prefixes (`72`, `45`, `33`, `79`, `90`, `72253000`). |
| `keywords` | Phrases searched in the subject (accent-insensitive). |
| `minValue`, `maxValue` | Lot value range in EUR. |
| `contractNature` | `works`, `services`, `goods`. |
| `procedureTypes` | e.g. `procedura aperta`, `affidamento diretto`. |
| `buyerNames`, `buyerIds` | Contracting authority name (contains) or fiscal code (exact). |
| `pnrrOnly` | Only PNRR / PNC funded tenders. |
| `includeCancelled` | Keep cancelled CIGs (skipped by default). |
| `maxItems`, `includeRaw` | Stop after N records; add the original row. |

#### Example: open IT tenders in Lombardy and Veneto above 40 k€

```json
{
  "cpvCodes": ["72", "48"],
  "regions": ["Lombardia", "Veneto"],
  "minValue": 40000,
  "onlyOpen": true
}
```

#### Example: everything a given buyer published since January

```json
{
  "publishedFrom": "2026-01-01",
  "buyerIds": ["01199250158"]
}
```

### Pricing and run cost

**Pay per result**: a fixed price per 1 000 records saved (see the Actor page). Nothing is charged
when nothing matches. A 30-day query reads only the data published in those days (a few MB) and
takes seconds; long windows (`publishedFrom` months back) read more files and take a few minutes.

### Notes and limits

- Each CIG appears once per CPV code in the ANAC files; the Actor keeps one record per CIG.
- The ANAC files contain both new tenders and updates to older ones (for example, outcomes
  communicated last month for tenders published years ago). The publication window selects
  by publication date; use `publishedFrom: "2000-01-01"` to see every update.
- Region `Centrale` means a national body (ministries, RFI, Consip...); `Non Classificato` is
  what ANAC publishes for some buyers.
- ANAC publishes the data as is; some rows have inconsistent dates (deadline earlier than
  publication) or missing amounts. The Actor never invents values.
- Suppliers and award amounts are not in the CIG files.

### Legal

Data: ANAC open data, licence Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0).
Attribution: "Autorità Nazionale Anticorruzione – dati.anticorruzione.it". If you redistribute
the data, keep the attribution and the same licence. The data contains names of legal
entities and their fiscal codes as published by law; no additional personal data is collected.

***

### 🇮🇹 In italiano

Questo Actor legge i **dati aperti ufficiali ANAC** (aggiornamenti mensili dei CIG) e restituisce ogni
appalto in formato uniforme: stazione appaltante con codice fiscale, oggetto, CPV, importo del
lotto e della gara, procedura, data di pubblicazione, scadenza offerte, esito, regione, provincia,
flag PNRR. Copre **tutti** gli appalti italiani, anche sotto soglia (affidamenti diretti,
negoziate, ordini MePA), non solo quelli pubblicati su TED.

ANAC pubblica i dati una volta al mese: senza input ottieni i bandi pubblicati negli ultimi 30
giorni coperti dall'ultimo file ANAC (il log indica quale). Esempi:

- Bandi IT aperti in Lombardia sopra 40.000 €: `{"cpvCodes": ["72"], "regions": ["Lombardia"], "minValue": 40000, "onlyOpen": true}`
- Tutto ciò che ha pubblicato un ente da gennaio: `{"publishedFrom": "2026-01-01", "buyerIds": ["01199250158"]}`

Il prezzo è **a consumo per risultato**, addebitato da Apify; l'Actor si ferma appena raggiunto
`maxItems`, quindi le ricerche mirate costano pochi centesimi. Programmalo ogni mese, dopo
l'uscita del file ANAC, e ricevi i nuovi bandi via email, Slack o Google Sheets. Per le gare
sopra soglia di tutta l'UE usa l'Actor gemello **EU Public Tenders (TED)**, stesso schema di output.

### Support

Open an issue from the Actor's **Issues** tab with the run id and the input used.

# Actor input Schema

## `daysBack` (type: `integer`):

ANAC publishes its data once a month: the window ends on the latest publication date in the newest ANAC update (shown in the run log) and goes back N days. Ignored when 'Published from' or 'Published to' is set.

## `publishedFrom` (type: `string`):

Publication date lower bound, inclusive.

## `publishedTo` (type: `string`):

Publication date upper bound, inclusive.

## `onlyOpen` (type: `boolean`):

Keep only records whose deadline for offers has not passed (records without a deadline are dropped).

## `regions` (type: `array`):

Italian regions of the contracting authority, e.g. Lombardia, Lazio, Emilia Romagna, Sicilia. Empty = all.

## `provinces` (type: `array`):

Province of execution (as named by ANAC, e.g. MILANO, ROMA, BARI). Empty = all.

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

72 = IT services, 45 = construction, 33 = medical, 79 = business services, 90 = environmental. Full codes like 72253000 accepted.

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

Case- and accent-insensitive phrases searched in the subject of the tender and of the lot. Any keyword may match.

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

Skips lots whose value is known and lower than this amount. Records without a value are kept.

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

Skips lots whose value is known and higher than this amount.

## `contractNature` (type: `array`):

works = lavori, services = servizi, goods = forniture. Empty = all.

## `procedureTypes` (type: `array`):

Matched against the ANAC procedure name, e.g. 'procedura aperta', 'affidamento diretto', 'procedura negoziata'.

## `buyerNames` (type: `array`):

Keep only contracting authorities whose name contains one of these phrases, e.g. 'Comune di Milano', 'ASL'.

## `buyerIds` (type: `array`):

Exact codice fiscale of the contracting authorities to keep.

## `pnrrOnly` (type: `boolean`):

Keep only tenders flagged as financed by the National Recovery and Resilience Plan (CIG sources only).

## `includeCancelled` (type: `boolean`):

By default CIGs cancelled by the contracting authority are skipped. Enable to keep them (status = cancelled).

## `maxItems` (type: `integer`):

Stop after this many records. You are only charged for records actually written. Processing stops as soon as the limit is reached, which also keeps the run short.

## `includeRaw` (type: `boolean`):

Adds the original ANAC CIG row under the `raw` field (larger output).

## Actor input object example

```json
{
  "daysBack": 30,
  "onlyOpen": false,
  "regions": [],
  "provinces": [],
  "cpvCodes": [],
  "keywords": [],
  "contractNature": [],
  "procedureTypes": [],
  "buyerNames": [],
  "buyerIds": [],
  "pnrrOnly": false,
  "includeCancelled": false,
  "includeRaw": false
}
```

# Actor output Schema

## `results` (type: `string`):

All tenders saved by the run (JSON; add ?format=csv or ?format=xlsx to download).

## `summary` (type: `string`):

Counts of matched, filtered and saved records and the query used.

# 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 = {
    "daysBack": 30,
    "regions": [],
    "provinces": [],
    "cpvCodes": [],
    "keywords": [],
    "contractNature": [],
    "procedureTypes": [],
    "buyerNames": [],
    "buyerIds": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("danielefontana/italy-tenders-anac").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 = {
    "daysBack": 30,
    "regions": [],
    "provinces": [],
    "cpvCodes": [],
    "keywords": [],
    "contractNature": [],
    "procedureTypes": [],
    "buyerNames": [],
    "buyerIds": [],
}

# Run the Actor and wait for it to finish
run = client.actor("danielefontana/italy-tenders-anac").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 '{
  "daysBack": 30,
  "regions": [],
  "provinces": [],
  "cpvCodes": [],
  "keywords": [],
  "contractNature": [],
  "procedureTypes": [],
  "buyerNames": [],
  "buyerIds": []
}' |
apify call danielefontana/italy-tenders-anac --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,danielefontana/italy-tenders-anac"
        }
    }
}
```

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/yiCKrD1dbxkJmUV42/builds/7v3vHKhcCmpFZDZ4W/openapi.json
