# ANAC Italy Procurement Dataset Search

> ANAC Italy Procurement Dataset Search is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Searches the Italian public procurement open data catalogue (ANAC/dati.anticorruzione.it) and returns dataset metadata including title, publisher, licence, last modified date, resource count, and dataset link.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/anac-italy-procurement?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/anac-italy-procurement-dataset-search-ccdb8aa1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-jZ80iqXyL-xts2hKDyeX

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability anac-italy-procurement-dataset-search-ccdb8aa1
```

Example prompt: Search the ANAC Italian procurement open data catalogue for datasets about 'lavori pubblici' and show me up to 5 results with their titles, publishers, licences, and last modified dates.

## When to prefer this

Use this endpoint when you need to discover what Italian public procurement datasets exist on the ANAC open data portal before downloading or analysing actual tender records. It is ideal for catalogue exploration, research scoping, and finding dataset URLs and metadata. Prefer this over direct CKAN API calls when you need a pre-formatted, low-cost proxy with structured JSON output. Do not use this if you need actual tender/contract records — this returns catalogue metadata only.

## Known failure modes

- Query string too short (under 2 characters) or too long (over 80 characters) returns a validation error
- No datasets found for obscure or misspelled search terms returns an empty datasets array
- ANAC CKAN API unavailable or rate-limited results in upstream error
- rows parameter outside 1-10 range may be rejected or clamped
- Non-Italian search terms may return fewer results since dataset titles are primarily in Italian

## How this service works

Italian public procurement datasets from ANAC open data (dati.anticorruzione.it, CKAN): dataset title, publisher, licence, last modified date, number of resources and dataset link, for a search term. Catalogue metadata only, not the tender records.

## Output

Returns a JSON object containing the search query, the ANAC CKAN source URL, a checkedAt timestamp, the total number of matching datasets, and an array of dataset metadata objects each with: dataset URL, name, title, licence (e.g. Creative Commons Attribution 4.0), publisher, last modified date, and resource count. Note: this is catalogue metadata only — not actual tender records or contract details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Search text, 2 to 80 characters (Italian or English)"
      },
      "rows": {
       "type": "string",
       "description": "Datasets to return, 1 to 10 (default 5)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "appalti",
  "source": "https://dati.anticorruzione.it/opendata/api/3/action/package_search",
  "datasets": [
   {
    "url": "http://dati.anticorruzione.it/opendata/dataset/ocds-appalti-ordinari-2024",
    "name": "ocds-appalti-ordinari-2024",
    "title": "OCDS appalti ordinari anno 2024",
    "licence": "Creative Commons Attribution 4.0",
    "publisher": "anticorruzione",
    "lastModified": "2026-04-09",
    "resourceCount": 12
   },
   {
    "url": "http://dati.anticorruzione.it/opendata/dataset/ocds-appalti-ordinari-2025",
    "name": "ocds-appalti-ordinari-2025",
    "title": "OCDS appalti ordinari anno 2025",
    "licence": "Creative Commons Attribution 4.0",
    "publisher": "anticorruzione",
    "lastModified": "2026-04-09",
    "resourceCount": 12
   }
  ],
  "checkedAt": "2026-10-23T09:37:15.071Z",
  "totalDatasets": 61
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/anac-italy-procurement-dataset-search-ccdb8aa1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
