> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

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

> Brazil's national public procurement portal: tenders open for bids, published procurements, contracts and price-registration records (atas) from federal, state and municipal bodies.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/pncp.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=b25bdaa3d1119b556bce4b1c2a638c89)

[Web Catalog · Government](https://docs.webrouter.net/data-apis.md?category=government)

No key needed

Endpoints

5

Auth

None

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html)

## Notes

* Keyless public query API (API de Consulta), run by Serpro for the Brazilian government.
* Dates are strings in yyyyMMdd form (20240131), not ISO dates.
* Paging is required: pagina starts at 1; tamanhoPagina is 10-50 on the procurement lists and 10-500 on contracts and atas. Responses carry the page in a data array with totals alongside.
* Organisations are identified by CNPJ (14 digits, no punctuation); uf is the two-letter Brazilian state code.

## Endpoints

GET

List procurements open for bids

Procurements whose proposal-receiving period is still open up to a date, optionally by modality, state, municipality or buying body.

[Open](#pncp-tenders-open)

GET

List procurements by publication date

Procurements published in a date range for one modality, optionally by dispute mode, state, municipality or buying body.

[Open](#pncp-tenders-published)

GET

Get one procurement

One procurement by the buying body's CNPJ, year and sequence number.

[Open](#pncp-tenders-get)

GET

List contracts by publication date

Contracts published in a date range, optionally for one buying body or unit.

[Open](#pncp-contracts-list)

GET

List price-registration records in force

Atas de Registro de Preço whose validity overlaps a date range, optionally for one body or unit.

[Open](#pncp-atas-list)

### List procurements open for bids

GET

`/v1/contratacoes/proposta`

`pncp.tenders.open`

Procurements whose proposal-receiving period is still open up to a date, optionally by modality, state, municipality or buying body.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataFinal` required</td><td>string</td><td>query</td><td>End date, yyyyMMdd. Example `20261231`</td></tr>

    <tr>
      <td>
        `codigoModalidadeContratacao`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        PNCP procurement-modality code (pregão, concorrência, dispensa and so on, per PNCP's domain tables).
      </td>
    </tr>

    <tr><td>`uf`</td><td>string</td><td>query</td><td>Two-letter state code. Example `SP`</td></tr>

    <tr>
      <td>
        `codigoMunicipioIbge`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IBGE municipality code.
      </td>
    </tr>

    <tr>
      <td>
        `cnpj`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CNPJ of the buying body.
      </td>
    </tr>

    <tr>
      <td>
        `codigoUnidadeAdministrativa`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Code of the buying administrative unit (1-30 characters).
      </td>
    </tr>

    <tr>
      <td>
        `idUsuario`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the publishing system (portal) user.
      </td>
    </tr>

    <tr><td>`pagina` required</td><td>integer</td><td>query</td><td>Page number, from 1. Example `1`</td></tr>
    <tr><td>`tamanhoPagina`</td><td>integer</td><td>query</td><td>Page size, 10-50. Example `50`</td></tr>
  </tbody>
</table>

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html) · Same job: [SAM.gov](https://docs.webrouter.net/data-apis/sam-gov.md#sam-gov-opportunities-search)

```python Python theme={null}
router.call_data_api("pncp.tenders.open", {'dataFinal': '20261231', 'uf': 'SP', 'pagina': 1, 'tamanhoPagina': 50})
```

```text MCP theme={null}
call_data_api(endpoint="pncp.tenders.open", params={"dataFinal": "20261231", "uf": "SP", "pagina": 1, "tamanhoPagina": 50})
```

### List procurements by publication date

GET

`/v1/contratacoes/publicacao`

`pncp.tenders.published`

Procurements published in a date range for one modality, optionally by dispute mode, state, municipality or buying body.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataInicial` required</td><td>string</td><td>query</td><td>Start date, yyyyMMdd. Example `20260101`</td></tr>
    <tr><td>`dataFinal` required</td><td>string</td><td>query</td><td>End date, yyyyMMdd. Example `20260131`</td></tr>

    <tr>
      <td>
        `codigoModalidadeContratacao`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        PNCP procurement-modality code, per PNCP's domain tables.
      </td>
    </tr>

    <tr>
      <td>
        `codigoModoDisputa`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        PNCP dispute-mode code.
      </td>
    </tr>

    <tr>
      <td>
        `uf`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter state code.
      </td>
    </tr>

    <tr>
      <td>
        `codigoMunicipioIbge`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        IBGE municipality code.
      </td>
    </tr>

    <tr>
      <td>
        `cnpj`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CNPJ of the buying body.
      </td>
    </tr>

    <tr>
      <td>
        `codigoUnidadeAdministrativa`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Code of the buying administrative unit.
      </td>
    </tr>

    <tr>
      <td>
        `idUsuario`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the publishing system (portal) user.
      </td>
    </tr>

    <tr><td>`pagina` required</td><td>integer</td><td>query</td><td>Page number, from 1. Example `1`</td></tr>

    <tr>
      <td>
        `tamanhoPagina`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size, 10-50.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html) · Same job: [SAM.gov](https://docs.webrouter.net/data-apis/sam-gov.md#sam-gov-opportunities-search)

### Get one procurement

GET

`/v1/orgaos/{cnpj}/compras/{ano}/{sequencial}`

`pncp.tenders.get`

One procurement by the buying body's CNPJ, year and sequence number.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `cnpj`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        CNPJ of the buying body, 14 digits.
      </td>
    </tr>

    <tr>
      <td>
        `ano`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Year of the procurement.
      </td>
    </tr>

    <tr>
      <td>
        `sequencial`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Sequence number of the procurement within that body and year, from 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html)

> [!NOTE]
>
> * The three parts come from a list result's orgaoEntidade.cnpj, anoCompra and sequencialCompra.

### List contracts by publication date

GET

`/v1/contratos`

`pncp.contracts.list`

Contracts published in a date range, optionally for one buying body or unit.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataInicial` required</td><td>string</td><td>query</td><td>Start date, yyyyMMdd. Example `20260101`</td></tr>
    <tr><td>`dataFinal` required</td><td>string</td><td>query</td><td>End date, yyyyMMdd. Example `20260131`</td></tr>

    <tr>
      <td>
        `cnpjOrgao`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CNPJ of the contracting body.
      </td>
    </tr>

    <tr>
      <td>
        `codigoUnidadeAdministrativa`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Code of the administrative unit.
      </td>
    </tr>

    <tr>
      <td>
        `usuarioId`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the publishing system (portal) user.
      </td>
    </tr>

    <tr><td>`pagina` required</td><td>integer</td><td>query</td><td>Page number, from 1. Example `1`</td></tr>

    <tr>
      <td>
        `tamanhoPagina`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size, 10-500.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html) · Same job: [USAspending](https://docs.webrouter.net/data-apis/usaspending.md#usaspending-awards-search)

```python Python theme={null}
router.call_data_api("pncp.contracts.list", {'dataInicial': '20260101', 'dataFinal': '20260131', 'pagina': 1})
```

```text MCP theme={null}
call_data_api(endpoint="pncp.contracts.list", params={"dataInicial": "20260101", "dataFinal": "20260131", "pagina": 1})
```

### List price-registration records in force

GET

`/v1/atas`

`pncp.atas.list`

Atas de Registro de Preço whose validity overlaps a date range, optionally for one body or unit.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`dataInicial` required</td><td>string</td><td>query</td><td>Start date, yyyyMMdd. Example `20260101`</td></tr>
    <tr><td>`dataFinal` required</td><td>string</td><td>query</td><td>End date, yyyyMMdd. Example `20260131`</td></tr>

    <tr>
      <td>
        `idUsuario`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Id of the publishing system (portal) user.
      </td>
    </tr>

    <tr>
      <td>
        `cnpj`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CNPJ of the managing body.
      </td>
    </tr>

    <tr>
      <td>
        `codigoUnidadeAdministrativa`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Code of the administrative unit (1-30 characters).
      </td>
    </tr>

    <tr><td>`pagina` required</td><td>integer</td><td>query</td><td>Page number, from 1. Example `1`</td></tr>

    <tr>
      <td>
        `tamanhoPagina`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page size, 10-500.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://pncp.gov.br/api/consulta/swagger-ui/index.html) · Same job: [USAspending](https://docs.webrouter.net/data-apis/usaspending.md#usaspending-awards-search)

```python Python theme={null}
router.call_data_api("pncp.atas.list", {'dataInicial': '20260101', 'dataFinal': '20260131', 'pagina': 1})
```

```text MCP theme={null}
call_data_api(endpoint="pncp.atas.list", params={"dataInicial": "20260101", "dataFinal": "20260131", "pagina": 1})
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.