Brazil Government Tenders & Contracts API (PNCP Oficial) avatar

Brazil Government Tenders & Contracts API (PNCP Oficial)

Under maintenance

Pricing

from $8.00 / 1,000 pncp public procurement tender extracteds

Go to Apify Store
Brazil Government Tenders & Contracts API (PNCP Oficial)

Brazil Government Tenders & Contracts API (PNCP Oficial)

Under maintenance

Monitor daily Brazilian federal, state & municipal public procurement tenders and electronic auctions (Pregão Eletrônico / Dispensa) from Portal Nacional de Contratações Públicas (PNCP) by keyword, UF & BRL value.

Pricing

from $8.00 / 1,000 pncp public procurement tender extracteds

Rating

0.0

(0)

Developer

BR Data Hub

BR Data Hub

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Monitor daily Brazilian federal, state & municipal public procurement tenders and electronic auctions (Pregão Eletrônico / Dispensa) from Portal Nacional de Contratações Públicas (PNCP) by keyword, UF & BRL value.

Categories: LEAD_GENERATION, BUSINESS, AUTOMATION | Billing Model: Pay-Per-Event ($0.01 start + $0.008 per pncp-tender-extracted) | Permissions: LIMITED_PERMISSIONS (Safe for AI Agents & MCP)


Why Use brazil-pncp-government-tenders?

Accessing structured Brazilian institutional, financial, regulatory, and B2B datasets normally requires navigating legacy Portuguese portals, handling regional encodings (ISO-8859-1 / Brazilian decimal formats 1.234,56), paginating custom endpoints, and normalizing inconsistent schemas.

brdatahub/brazil-pncp-government-tenders turns official public records into a clean, fast, schema-validated JSON/CSV API ready for:

  • AI Agents & MCP Workflows: Plug directly into Claude Desktop, Cursor, LangChain, CrewAI, n8n, Make, or Zapier via the official Apify MCP Server.
  • Quantitative, Financial & Market Intelligence: Automate daily ingestion into Snowflake, BigQuery, PostgreSQL, Google Sheets, Power BI, or internal ERPs.
  • B2B Lead Generation & Compliance Automation: Enrich CRMs, underwrite risk, monitor regulatory changes, and size regional markets programmatically.

Key Capabilities

  • Zero-Configuration Start: Includes sensible pre-filled defaults so automated runs and health checks succeed out of the box in seconds.
  • Normalized Numeric & Date Fields: Brazilian currency, percentage, and date formats are parsed into clean standard floats and ISO strings alongside raw source fields.
  • Low Compute Footprint: Optimized async Python (httpx) container running on 256 MB RAM — minimizing Apify compute unit consumption to fractions of a cent per run.
  • Spreadsheet & API Ready: Export results with one click as JSON, CSV, Excel (.xlsx), XML, or Parquet.

Input Parameters

FieldTypeDefaultDescription
keywordFilterstring""Optional Portuguese keyword to filter tender descriptions (leave empty to fetch all recent tenders).
stateUfstring""Two-letter Brazilian state code, or empty for nationwide coverage.
modalidadeCodigointeger6PNCP modality code: 6 (Pregão Eletrônico - main B2G auction), 8 (Dispensa de Licitação), 4 (Concorrência).
minEstimatedBrlnumber0Only include tenders with estimated value >= this BRL threshold.
lookbackDaysinteger3Number of recent publication days to query.
maxItemsinteger30Maximum number of public procurement opportunities to extract.

Example Input (JSON)

{
"keywordFilter": "",
"stateUf": "SP",
"modalidadeCodigo": 6,
"minEstimatedBrl": 0,
"lookbackDays": 3,
"maxItems": 20
}

Output Schema & Real Sample Record

Each extracted item is pushed to the default Apify Dataset and validated against the Actor's structured dataset_schema.json and output_schema.json.

{
"pncp_control_id": "05051955000191-1-000027/2026",
"modality": "Pregão - Eletrônico",
"dispute_mode": "Aberto",
"status": "Divulgada no PNCP",
"uf": "SP",
"municipality": "São Paulo",
"buyer_agency": "AGENCIA REGULADORA DE SERVICOS PUBLICOS DELEGADOS DE TRANSPORTE DO ESTADO DE SAO PAULO-ARTESP",
"buyer_cnpj": "05051955000191",
"object_summary": "Contratação de serviços transporte mediante locação de veículos novos, em caráter não eventual (para utilização em serviço público de natureza permanente ou de longa duração), nas Modalidades: “A” (sem condutor e sem combustível) e “C” (com condutor e com combustível), com a disponibilização de Base operacional fixa (Centro de controle de operações) e “equipamentos veiculares especiais”, com gerenciamento total da frota objetivando o deslocamento para apoio das atividades técnico-administrativas",
"estimated_value_brl": 74357769.52,
"homologated_value_brl": null,
"published_at": "2026-11-10T00:11:18",
"proposal_opening_at": "2026-11-10T09:30:00",
"proposal_closing_at": "2026-11-25T09:30:00",
"origin_portal_url": "https://cnetmobile.estaleiro.serpro.gov.br/comprasnet-web/public/compras/acompanhamento-compra?compra=39260105000252026",
"source": "PNCP Oficial (Lei 14.133)"
}

Quick Integration Examples

1. Python (apify-client)

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_API_TOKEN")
run = client.actor("brdatahub/brazil-pncp-government-tenders").call(run_input={
"keywordFilter": "",
"stateUf": "SP",
"modalidadeCodigo": 6,
"minEstimatedBrl": 0,
"lookbackDays": 3,
"maxItems": 20
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

2. Node.js / TypeScript (apify-client)

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('brdatahub/brazil-pncp-government-tenders').call({
"keywordFilter": "",
"stateUf": "SP",
"modalidadeCodigo": 6,
"minEstimatedBrl": 0,
"lookbackDays": 3,
"maxItems": 20
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

3. cURL (Synchronous REST API — Instant JSON)

curl -X POST "https://api.apify.com/v2/acts/brdatahub~brazil-pncp-government-tenders/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"keywordFilter": "", "stateUf": "SP", "modalidadeCodigo": 6, "minEstimatedBrl": 0, "lookbackDays": 3, "maxItems": 20}'

4. AI Agents & Apify MCP Server

Add brdatahub/brazil-pncp-government-tenders as a tool in https://mcp.apify.com so LLM agents can query live Brazilian data on demand with typed input/output schemas and LIMITED_PERMISSIONS sandboxing.


Pricing & Free-Plan Preview Policy

This Actor uses transparent Pay-Per-Event (PPE) pricing:

  • apify-actor-start: $0.01 per run initialization
  • pncp-tender-extracted: $0.008 per structured record written to the dataset

Note for Apify Free-tier accounts: Users on the Apify Free plan automatically receive a clean preview sample per run and exit gracefully with a status message so you can test schema compatibility before upgrading to a paid Apify plan for full bulk extractions.


Changelog & Maintenance

  • v1.0 (2026-11): Initial production release with full input_schema.json, dataset_schema.json typed fields, output_schema.json v1 export links, and automated cloud health monitoring.
  • Support: Open an issue in the Issues tab on Apify Store if you need custom filters, additional fields, or enterprise SLAs.