Brazil Public Procurement / PNCP Licitações avatar

Brazil Public Procurement / PNCP Licitações

Pricing

from $2.00 / 1,000 tender results

Go to Apify Store
Brazil Public Procurement / PNCP Licitações

Brazil Public Procurement / PNCP Licitações

Busca licitações e contratações públicas no Portal Nacional de Contratações Públicas (PNCP) por UF, palavra-chave ou nicho e exporta JSON/CSV. Brazil public procurement scraper for PNCP tenders and bids via the official API — no API key. Filter by state, keyword, modality and open proposal deadline.

Pricing

from $2.00 / 1,000 tender results

Rating

0.0

(0)

Developer

Sempre Crypto Milionário

Sempre Crypto Milionário

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

This Brazil public procurement / PNCP licitações scraper searches public tenders and contracts on the Portal Nacional de Contratações Públicas (PNCP) through the official public consultation API. It needs no API key. Results are saved as a JSON dataset and, optionally, as a CSV file.

Este Actor busca licitações e contratações públicas no PNCP pela API oficial de consulta, sem chave de acesso, e devolve os resultados em JSON e CSV.

It is not an official service of the Brazilian government. Data comes from the public PNCP API and may be delayed or fail if the portal is unstable. Always confirm notices on pncp.gov.br before bidding.

Não é um serviço oficial do governo brasileiro. Os dados vêm da API pública do PNCP e podem atrasar ou falhar se o portal estiver instável. Confira sempre o edital no portal antes de participar.

On the Apify platform you can run the Actor from the Console or via API, schedule recurring searches, monitor runs, export results (JSON, CSV, Excel and others) and connect them to other tools.

What is this Actor? / O que este Actor faz?

Use it to extract PNCP licitações (Brazil public procurement notices) filtered by:

  • Brazilian state (UF), or the whole country
  • Keyword in the tender object (all words must match)
  • Ready-made niche (cleaning, foodstuffs, IT/software, construction/renovation, transport/freight)
  • Publication window (last N days, or an explicit date range of up to 90 days)
  • Procurement modality (default: electronic auction / pregão eletrônico and electronic bidding / concorrência eletrônica)
  • Open proposal deadline only (on by default)

Serve para acompanhar editais por estado, palavra no objeto, nicho, janela de publicação, modalidade e prazo de propostas ainda aberto.

How to use / Como usar

  1. Open the Actor on Apify Store or in Apify Console and click Try for free / Start.
  2. Choose a UF (leave empty for all of Brazil — slower), a palavra-chave, and/or a nicho.
  3. Keep the default window (last 10 days) or set dataInicial and dataFinal (YYYY-MM-DD, max 90 days).
  4. Keep Só com prazo de propostas aberto on if you only want tenders still accepting proposals.
  5. Set Máximo de itens (default 100, max 1000) and run.
  6. Download the dataset as JSON/CSV/Excel, or grab licitacoes.csv and SUMMARY.json from the key-value store.

The input form stays in Portuguese. Field names and behavior are unchanged.

Input / Entrada

Field / CampoDescription / Descrição
UFOptional state acronym. Empty = all of Brazil.
Palavra-chaveText in the tender object. Every word must appear (case-insensitive). Examples: limpeza, merenda, software.
NichoReady filter: limpeza, gêneros alimentícios, TI e software, obras e reformas, transporte e frete. If used with a keyword, the item must match both.
Janela de publicação (dias)Notices published in the last N days (default 10). Ignored when both dates are set.
Data inicial / Data finalAAAA-MM-DD. Together they replace the day window (max 90 days).
ModalidadesPNCP API codes. Default is 6 (pregão eletrônico) and 4 (concorrência eletrônica).
Só com prazo de propostas abertoOn by default. Items without an end date are kept.
Máximo de itens no resultadoStops when this many filtered items are reached (default 100, max 1000).
Gerar arquivo CSVAlso writes licitacoes.csv to the run's key-value store.

Example input:

{
"uf": "RS",
"palavraChave": "limpeza",
"nicho": "",
"dias": 10,
"modalidades": [6, 4],
"apenasPropostasAbertas": true,
"maxItens": 10,
"gerarCsv": true
}

Output / Saída

Each dataset item includes: PNCP id, object, contracting authority, CNPJ, unit, municipality, UF, modality, estimated value, publication / opening / closing dates, SRP flag, process number, and the notice link on the portal.

Cada item inclui id do PNCP, objeto, órgão, CNPJ, unidade, município, UF, modalidade, valor estimado, datas, processo e o link do edital no portal.

A run summary is stored as SUMMARY.json.

Pricing / Preço

This Actor is designed for pay-per-event (PPE) on Apify Store:

  • Custom event result-item: one charge per licitação / tender written to the dataset.
  • Apify also recommends keeping the synthetic apify-actor-start event (default about $0.00005 per start, with the first 5 seconds of compute covered).

The exact event prices are set in the Actor's Publishing tab in Apify Console at publish time. They are not hardcoded here.

Free plan notes: users on the Apify free plan can run the Actor, but usage by free-plan users does not generate creator revenue (Apify covers their platform usage). Paid-plan users pay for the events above. Local runs are never billed.

Nada é cobrado na execução local. O preço na Store só é configurado no Console da Apify na hora de publicar.

Data source and disclaimer / Fonte dos dados e aviso

This tool only reads public official data. It does not bypass access controls, submit bids, or change notices. It is not affiliated with, endorsed by, or part of the Brazilian government or the PNCP. If the official API is slow, rate-limits, or returns errors, the run retries with backoff, skips a failed page if needed, and still finishes with any results already collected plus a warning in SUMMARY.json. Treat results as a starting point and validate them on the official portal.

Esta ferramenta só lê dados públicos oficiais. Não envia propostas nem altera editais. Não é afiliada ao governo brasileiro nem ao PNCP.

How to run locally / Como rodar localmente

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# optional: npm install -g apify-cli
cp input.example.json storage/key_value_stores/default/INPUT.json
ACTOR_TEST_PAY_PER_EVENT=true apify run --purge
# if the CLI is not installed:
# ACTOR_TEST_PAY_PER_EVENT=true python -m my_actor

FAQ

Is this the official PNCP API / Isso é a API oficial? The Actor calls the official public consultation API. The Actor itself is an independent tool, not a government product.

Do I need an API key? No.

Can I search all of Brazil? Yes. Leave UF empty. The query takes longer because every selected modality is paged for the whole country, and each modality is capped at 40 pages so the run can finish before the platform timeout.

Why are some notices missing? Filters (keyword, niche, open deadline, modalities, max items) or a temporary PNCP outage can exclude or delay items. Widen the window or turn off the open-deadline filter to check. A whole-Brazil search also stops after 40 pages per modality (2,000 notices scanned in that modality) so the run can finish in time.

How do I get data via API or on a schedule? Use Apify's Actor API, saved tasks, and schedules after you run it once in Console.

Limits and safeguards / Limites e proteções

The Actor is built to finish as SUCCEEDED whenever possible, including on heavy or messy input:

  • Newest first / mais recentes primeiro: long publication windows are queried in 7-day slices starting from the end date, because the PNCP API pages oldest items first. This finds still-open tenders sooner. / Janelas longas são consultadas em fatias de 7 dias a partir da data final.
  • Time budget / orçamento de tempo: it reads the platform timeout (APIFY_TIMEOUT_AT / ACTOR_TIMEOUT_AT), stops about 45 seconds before the limit, saves whatever it already found, and ends successfully with a warning in SUMMARY.json and in the run status message. You still receive partial results instead of a TIMED-OUT run.
  • Whole-Brazil page cap / limite de páginas no Brasil inteiro: when UF is empty, each modality is capped at 40 pages (50 items per page). Narrow the search with a UF, keyword, or niche if you need a deeper scan.
  • Invalid input / entrada inválida: bad values are clamped to safe defaults when that makes sense (for example a date window longer than 90 days is cut to the most recent 90 days; dataInicial after dataFinal is swapped; unknown UF/niche/modality is ignored). The run does not crash with a traceback.
  • PNCP errors: HTTP 429, 5xx and network timeouts are retried with backoff. If a page still fails, it is skipped and the run continues with the data already collected.
  • Pay-per-event cap: items are charged as result-item when they are written to the dataset. If the run reaches the user-set max total charge, it stops cleanly, keeps the items already saved, and finishes successfully.

O Actor tenta terminar sempre com sucesso: para ~45 s antes do timeout da plataforma, limita a busca nacional a 40 páginas por modalidade, ajusta entradas inválidas, não cai em erro se o PNCP falhar depois das retentativas e respeita o limite máximo de cobrança.