Public API for Brazilian tenders
Query the same database as the site, in JSON, with no key and no sign-up. Fair use: 60 requests per minute per IP. Field names and tender descriptions are in Portuguese.
Search tenders
GET https://www.todaslicitacoes.com.br/api/licitacoes?q=notebook&uf=SP&situacao=abertas
| Parameter | Values | Description |
|---|---|---|
q | text | Keywords (Portuguese) searched in the description, agency and city |
uf | state code | State (SP, RJ, MG…) |
municipio | text | City name |
modalidade | 6, 8, 9, 4, 7, 5, 1, 13, 3 | PNCP method code (6 = electronic reverse auction, 8 = direct award…) |
categoria | slug | Category (see /api/categorias) |
cnpj | 14 digits | Agency tax ID |
situacao | abertas, encerradas, todas | open, closed or all (default: open) |
valorMin / valorMax | number | Estimated value range, in BRL |
ordem | relevancia, prazo, recentes, valor, valor_asc | Sort order |
pagina | 1 to 25 | 20 results per page |
One tender
GET https://www.todaslicitacoes.com.br/licitacao/<slug>.json GET https://www.todaslicitacoes.com.br/api/licitacao/<id>
Every tender page has a JSON version at the same address plus .json, announced with
<link rel="alternate" type="application/json">: agency, description, values, dates, items,
documents, source and the date of the agency's last update on the PNCP.
For AI assistants
- /llms.txt and /en/llms.txt: full site content for language models;
- /llms-full.txt: every tender currently accepting bids, one per line, plus per-state files;
- WebMCP: tools registered in
navigator.modelContext(buscar_licitacoes, consultar_licitacao, listar_categorias, licitacao_desta_pagina).
Terms
- The data comes from the PNCP and is public; the organization and index belong to this site.
- Cite the source and, if possible, link to the corresponding tender page.
- No availability guarantee — for high volume, use the PNCP directly or the commercial API with a key.