search_licitacoes
Search Brazilian public procurement bids by date range, modality, keyword, value, location, and agency. Filter results to find relevant licitações efficiently.
Instructions
Search Brazilian public procurement bids (licitações) on PNCP.
PNCP requires a date range and at least one modality code per query. If you do not specify, defaults are: last 7 days and modalities [6, 8, 9] (Pregão Eletrônico, Dispensa, Inexigibilidade — most common).
Maximum date range per query: 365 days (PNCP limit). Wider windows return HTTP 422. For multi-year searches, issue multiple calls with date windows of <= 365 days each.
Modality codes: 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 de Licitação 9 = Inexigibilidade 10 = Manifestação de Interesse 11 = Pré-qualificação 12 = Credenciamento 13 = Leilão - Presencial
Filters palavraChave, valorMinimo, valorMaximo are applied client-side over the page returned by PNCP.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataInicial | No | Start date in YYYYMMDD format. Default: 7 days ago. | |
| dataFinal | No | End date in YYYYMMDD format. Default: today. | |
| modalidades | No | List of modality codes. Default: [6, 8, 9]. | |
| uf | No | Two-letter state code (e.g. SP, RJ). | |
| codigoMunicipioIbge | No | IBGE municipality code (7 digits). | |
| cnpjOrgao | No | Filter by procuring agency CNPJ (14 digits, no punctuation). | |
| esfera | No | Filter by government sphere: 'federal', 'estadual', 'municipal', or 'distrital'. Useful when analyzing impact of policies that affect a specific sphere (e.g., municipal elections). Applied client-side over the agency's esferaId field. | |
| palavraChave | No | Keyword to filter on objetoCompra (case-insensitive substring match). | |
| valorMinimo | No | Minimum estimated value in BRL. | |
| valorMaximo | No | Maximum estimated value in BRL. | |
| pagina | No | ||
| tamanhoPagina | No |