---
title: "Open government tenders, live from PNCP ($0.01 via x402)"
method: GET
path: "/v1/licitacoes/abertas"
---

# Open government tenders, live from PNCP ($0.01 via x402)

`GET /v1/licitacoes/abertas`

## Request

- Base URL: `https://api.brazilayer.com`
- URL: `https://api.brazilayer.com/v1/licitacoes/abertas`
- Auth: none declared

## Query parameters

- `uf` string
- `modalidade` string
- `pagina` integer
- `por_pagina` integer

## Response `200`

Open tenders with deadlines and bidding links. Always 200 when the request is valid: if PNCP is slow or down, the last cached copy is served instead of an error. `fonte` always states what you got: `consultado_em` (when the data was collected from PNCP), `defasagem_segundos` (how old it is), `atualiza_a_cada_minutos` (fixed refresh cadence, 30) and `status` (`ok`, `cache_servido`, `fonte_indisponivel`). Expect staleness of minutes, never an error, since PNCP itself takes 15-22s per query.

- object
  - `total` integer
  - `pagina` integer
  - `oportunidades` object[]
  - `fonte` object
    - `base` string
    - `consultado_em` string, date-time, nullable
    - `defasagem_segundos` integer, nullable
    - `atualiza_a_cada_minutos` integer
    - `cache` boolean
    - `status` 'ok' | 'cache_servido' | 'fonte_indisponivel'

## Other responses

- `400`: Error envelope: { erro: { codigo, mensagem } }
- `402`: x402 payment required. The `payment-required` response header carries base64 JSON with accepted payment options (scheme "exact", USDC on Base, amount in 6-decimal units, payTo address). Sign an EIP-3009 authorization and retry with the `payment-signature` header. x402 client libraries automate this. If you are not using an x402 client, read the JSON body instead: it states the price and links the free sample of this dataset plus the free tools.

---

[API](https://skmtc.dev/brazilayer/apis/brazilayer-brazilian-company-data-cnpj.md) · [All operations](https://skmtc.dev/brazilayer/apis/brazilayer-brazilian-company-data-cnpj/llms.txt) · [OpenAPI document](https://skmtc.dev/brazilayer/apis/brazilayer-brazilian-company-data-cnpj/revisions/609368003291?raw)
