---
title: "All public contracts won by a company, with summary stats ($0.01 via x402)"
method: GET
path: "/v1/licitacoes/fornecedor/{cnpj}"
---

# All public contracts won by a company, with summary stats ($0.01 via x402)

`GET /v1/licitacoes/fornecedor/{cnpj}`

## Request

- Base URL: `https://api.brazilayer.com`
- URL: `https://api.brazilayer.com/v1/licitacoes/fornecedor/{cnpj}`
- Auth: none declared

## Path parameters

- `cnpj` string, required

## Response `200`

Contracts list (max 100, newest first) + aggregates

- object
  - `cnpj` string
  - `resumo` object
    - `total_contratos` integer
    - `valor_total` number
    - `orgaos_distintos` integer
  - `contratos` object[]

## 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)
