# PNCP (Portal Nacional de Contratações Públicas) · Procurement search

Search public records with PNCP (Portal Nacional de Contratações Públicas) · Procurement search from Alexandria through one Spiral API key. To find Brazilian public tenders, price-registration minutes or contracts on a topic (e.g. school meals, notebooks, AI solutions), optionally in one state or government level or only those still receiving proposals, and get the control number to read one in full. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Public Records
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `pncp-gov-br/procurement/procurement_search`
- Page: https://spiral.ai/tools/alexandria/pncp-gov-br/procurement/procurement_search

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `query` (required) | text |  | — | Keywords matched against the notice object and description, e.g. 'merenda escolar' or 'notebook'. |
| `page` | number | 1 to 500 | 1 | page |
| `sort` | one of | newest, oldest, relevance | newest | sort |
| `state` | text |  | — | Two-letter UF code of the buyer, e.g. SP, RJ, MG. Pattern: ^[A-Za-z]{2}$. |
| `status` | one of | receiving_proposals, under_evaluation, closed, all | all | Notice phase filter (editais only). |
| `modality` | number | 1 to 14 | — | PNCP modality code: 1 Leilão eletrônico, 2 Diálogo competitivo, 3 Concurso, 4 Concorrência eletrônica, 5 Concorrência presencial, 6 Pregão eletrônico, 7 Pregão presencial, 8 Dispensa, 9 Inexigibilidade, 10 Manifestação de interesse, 11 Pré-qualificação, 12 Credenciamento, 13 Leilão presencial, 14 Inaplicabilidade. |
| `page_size` | number | 1 to 100 | 20 | page_size |
| `document_type` | one of | edital, ata, contrato | edital | edital = tender notice, ata = price-registration minutes, contrato = signed contract. |
| `government_level` | one of | federal, state, municipal | — | government_level |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "pncp-gov-br/procurement/procurement_search",
    "input": {
      "query": "<query>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=pncp-gov-br%2Fprocurement%2Fprocurement_search

## Common questions

### PNCP (Portal Nacional de Contratações Públicas) · Procurement search

**How much does PNCP (Portal Nacional de Contratações Públicas) · Procurement search cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use PNCP (Portal Nacional de Contratações Públicas) · Procurement search through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "pncp-gov-br/procurement/procurement_search"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use PNCP (Portal Nacional de Contratações Públicas) · Procurement search?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use PNCP (Portal Nacional de Contratações Públicas) · Procurement search?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

