PNCP Brazil Public Tenders Scraper (Licitações)
Pricing
from $2.00 / 1,000 tenders
PNCP Brazil Public Tenders Scraper (Licitações)
Search Brazilian public tenders from PNCP by keyword, state, modality and date. Get value, deadlines, buyer, line items and documents as clean JSON.
Pricing
from $2.00 / 1,000 tenders
Rating
0.0
(0)
Developer
Ciro Villasanti
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
11 hours ago
Last modified
Categories
Features
Share
PNCP Brazil Public Tenders Scraper (Licitações, Pregões, Editais)
Search Brazilian public tenders published on PNCP – Portal Nacional de Contratações Públicas, the official national procurement portal created by Law 14.133/2021. Every federal, state and municipal agency in Brazil must publish its tenders there, so one search covers the whole country.
Filter by keyword, state (UF), city, modality, government sphere and publication date, and get clean JSON with the estimated value, proposal deadline, buyer CNPJ, line items with quantities and unit prices, and links to the edital PDFs.
- ✅ Uses PNCP's official public data: no login, no captcha, no browser.
- ✅ Lightweight and cheap: plain HTTP requests, 128 MB of memory, automatic retries and rate-limit handling.
- ✅ Built for AI agents and MCP: predictable flat fields with English names and the full JSON schema published.
- ✅ Daily monitoring out of the box with
publishedInLastDaysand Apify Schedules.
What data does it extract?
| Field | Example |
|---|---|
Tender ID (pncpId) and link | 00394502000144-1-017129/2026 |
| Object (what is being bought) | Equipamentos de informática e audiovisuais |
| Modality and dispute mode | Pregão - Eletrônico, Aberto |
| Buyer name, CNPJ, unit, sphere, city, UF | COMANDO DA MARINHA, 00394502000144, São Luís, MA |
| Estimated and awarded value (BRL) | 64993.52 |
| Proposal opening and closing dates | 2026-11-26T08:00:00 |
| Legal basis, SRP flag, process number | Lei 14.133/2021, Art. 75, II |
| Line items (optional) | description, quantity, unit, estimated unit/total price, ME/EPP benefit, NCM code |
| Documents (optional) | edital, termo de referência, annexes with direct download URLs |
Use cases
- B2G sales leads: get every open tender for your product ("notebook", "uniforme", "merenda escolar") in your states every morning.
- Price intelligence: compare the estimated unit prices that agencies pay for the same item across Brazil.
- Market sizing: measure how much each state or city plans to spend in a category.
- Bid/no-bid automation: feed items and edital PDFs to your own AI agent to decide which tenders to bid on.
- Compliance and journalism: track direct purchases (Dispensa, Inexigibilidade) by agency.
Input examples
Open IT tenders in São Paulo and Minas Gerais, with items and documents:
{"keywords": ["notebook", "computador"],"status": "open","states": ["SP", "MG"],"includeItems": true,"includeDocuments": true,"maxItems": 200}
Daily monitor of every new Pregão Eletrônico from municipalities (run on a daily schedule):
{"status": "all","modalityIds": ["6"],"spheres": ["M"],"publishedInLastDays": 1,"maxItems": 5000}
Everything a single city published in a date range:
{"status": "all","cityIbgeCodes": ["3550308"],"publishedFrom": "2026-11-01","publishedTo": "2026-11-20","maxItems": 1000}
Input fields
| Field | Description |
|---|---|
keywords | Full-text search terms in Portuguese. Each one runs as its own search, and duplicate tenders are removed. |
status | open (receiving proposals, the default), closed or all. |
states | UF codes such as SP, RJ or MG. |
modalityIds | 6 Pregão Eletrônico, 8 Dispensa, 9 Inexigibilidade, 4 Concorrência Eletrônica, and so on. The input form lists all 20. |
spheres | F Federal, E Estadual, M Municipal, D Distrital. |
cityIbgeCodes | 7-digit IBGE municipality codes. |
publishedInLastDays | Relative date filter, the best choice for scheduled runs. |
publishedFrom / publishedTo | Absolute date filter in YYYY-MM-DD. |
includeItems / includeDocuments | Add line items and attached files. |
maxItems | Maximum number of tenders to save. |
proxyConfiguration | Optional Apify Proxy, for faster large runs. |
Output example
{"pncpId": "00394502000144-1-017129/2026","url": "https://pncp.gov.br/app/editais/00394502000144/2026/17129","title": "Aviso de Contratação Direta nº 35/2026","object": "Equipamentos de informática e audiovisuais para CPMA e AgImperatriz.","additionalInfo": null,"status": "Divulgada no PNCP","isCancelled": false,"modalityId": 8,"modality": "Dispensa","disputeMode": "Dispensa Com Disputa","instrumentType": "Aviso de Contratação Direta","legalBasis": "Lei 14.133/2021, Art. 75, II","isPriceRegistration": false,"processNumber": "63036.002724/2026-48","buyerCnpj": "00394502000144","buyerName": "COMANDO DA MARINHA","buyerUnitCode": "784320","buyerUnitName": "CAPITANIA DOS PORTOS DO ESTADO DO MARANHAO","sphere": "Federal","branch": "Executivo","city": "São Luís","cityIbgeCode": "2111300","state": "MA","estimatedValue": 64993.52,"awardedValue": null,"hasResult": false,"publishedAt": "2026-11-22T12:14:46.056391","updatedAt": "2026-11-22T12:14:46.056391","proposalsOpenAt": "2026-11-23T08:00:00","proposalsCloseAt": "2026-11-26T08:00:00","sourceSystemUrl": "https://cnetmobile.estaleiro.serpro.gov.br/comprasnet-web/public/compras/acompanhamento-compra?compra=78432006000352026","items": [{"itemNumber": 1,"description": "Microcomputador Tipo Desktop completo, acompanhado de monitor LED de 19 polegadas, teclado e mouse...","type": "Material","quantity": 8,"unit": "Unidade","estimatedUnitPrice": 1868,"estimatedTotalPrice": 14944,"awardCriterion": "Menor preço","smallBusinessBenefit": "Participação exclusiva para ME/EPP","status": "Em andamento","ncmNbsCode": "84714900","hasResult": false}],"documents": [{"title": "Termo_de_Referencia.pdf","type": "Termo de Referência","url": "https://pncp.gov.br/pncp-api/v1/orgaos/00394502000144/compras/2026/17129/arquivos/2","publishedAt": "2026-11-22T12:14:47"}]}
Dates are in Brasília time, as published by PNCP. Values are in BRL. A value is null when the agency keeps the budget confidential (orçamento sigiloso).
Pricing
Pay per event: you pay only for tenders saved to the dataset.
| Event | When it is charged |
|---|---|
tender | Once for every tender saved. |
tender-details | Once per tender, and only when includeItems or includeDocuments is on. |
Set a maximum cost per run in the run options and the Actor stops cleanly when it reaches it.
Tips and limits
- PNCP returns at most 10,000 results per search. For larger exports, split the run by state, modality or date range.
- PNCP limits how fast a single IP can read tender details, so the Actor paces itself (about 15–20 tenders per minute). For big exports, enable Apify Proxy in the Advanced section to spread the load across several IPs and speed it up.
- Use Schedules with
publishedInLastDays: 1and an integration (webhook, Google Sheets, Slack, Zapier, Make) to get a daily feed of new tenders.
Use it from the API
Run the Actor and get the results in one call. This endpoint waits up to 5 minutes, so use the Python client below for longer runs:
curl -X POST "https://api.apify.com/v2/acts/cvillasanti~pncp-brazil-tenders/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"keywords": ["notebook", "computador"], "status": "open", "states": ["SP", "MG"], "includeItems": true, "includeDocuments": true, "maxItems": 200}'
Or with the Python client (pip install apify-client):
from apify_client import ApifyClientclient = ApifyClient("YOUR_API_TOKEN")run = client.actor("cvillasanti/pncp-brazil-tenders").call(run_input={"keywords": ["notebook","computador"],"status": "open","states": ["SP","MG"],"includeItems": True,"includeDocuments": True,"maxItems": 200})for item in client.dataset(run["default_dataset_id"]).iterate_items():print(item)
It also works from Make, Zapier, n8n, Google Sheets and any AI agent through the Apify MCP server.
FAQ
Is this legal? Yes. PNCP data is public by law (Lei 14.133/2021 and Lei de Acesso à Informação), and this Actor reads PNCP's public endpoints at a polite request rate.
Does it include results and winners? It includes the awarded value (awardedValue) and the hasResult flag at tender level.
Can I use it from an AI agent? Yes. Call it through the Apify MCP server or the API. The input and output schemas are fully described, so agents can build queries on their own.
Em português
Licitações do PNCP (Portal Nacional de Contratações Públicas) em JSON, CSV ou Excel: pregões, dispensas, concorrências e inexigibilidades de órgãos federais, estaduais e municipais. Filtre por palavra-chave, UF, município, modalidade e situação, e receba órgão, CNPJ, objeto, valor estimado, datas de abertura e encerramento, itens e links para o edital e anexos. Ideal para empresas que vendem para o governo e para monitoramento diário de novas licitações.