# Brazil Public Tenders (PNCP) - Official Procurement (`repeatable_stonecrop_tvc/brazil-pncp-tenders`) Actor

Get Brazilian public procurement notices from the official PNCP API: open tenders, dispensas and awards. Filter by modality, state (UF), keyword, value and open deadline. Buyer CNPJ, estimated or awarded value, proposal dates and a PNCP link. No API key.

- **URL**: https://apify.com/repeatable_stonecrop_tvc/brazil-pncp-tenders.md
- **Developed by:** [Proudfit Data](https://apify.com/repeatable_stonecrop_tvc) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 tender notices

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Brazil Public Tenders (PNCP): Official Procurement Notices

**Get Brazilian public procurement notices (licitações) from the official Portal Nacional de Contratações Públicas (PNCP)** — the national system under Lei 14.133/2021. Filter by modality (pregão eletrônico, concorrência, dispensa, inexigibilidade...), state (UF), keyword, value and whether proposals are still open. You get the buyer (name and CNPJ), object, estimated or awarded value in BRL, proposal dates and a direct PNCP link.

There is no API key, no login and no scraping of third-party bid portals: it uses the **official PNCP consulta API**.

### What can this Actor do?

- 🔎 **Open opportunities** (pregão eletrônico, concorrência and others) with proposal deadlines
- 🧾 **Dispensas and inexigibilidades**, including awarded values when they have been homologated
- 🗺️ **Filter by UF, keyword and minimum value**, or restrict to one buyer CNPJ
- 📅 **Schedule it daily** with *Published in the last 1 day*
- ✅ Company-level data only (public bodies and their CNPJs; no personal contacts)

### How to use it

1. Set **Published in the last N days** (3 is a good default; 1 for a daily schedule).
2. Optionally pick **modalities** (leave empty to walk the common commercial ones until the max is reached), **states**, **keywords** and a **minimum value**.
3. Turn on **Only open for proposals** if you only want live bid windows.
4. Run it, then download **CSV, Excel or JSON** or call it from the API, Make, Zapier or n8n.

### Input example: recent electronic auctions (pregão)

```json
{
  "publishedWithinDays": 3,
  "modalities": [
    "6"
  ],
  "maxItems": 50
}
```

### Output example

```json
{
  "pncp_id": "13183513000127-1-000214/2026",
  "process_number": "330025",
  "title": "AQUISIÇÃO, POR COMPRA ÚNICA, DE UNIDADES DE ARMAZENAMENTO SSD DESTINADAS À FUNDAÇÃO HOSPITALAR GETÚLIO VARGAS (FHGV).",
  "buyer_name": "FUNDACAO DE SAUDE SAPUCAIA DO SUL",
  "buyer_cnpj": "13183513000127",
  "buyer_unit": "FUNDAÇÃO DE SAÚDE SAPUCAIA DO SUL",
  "sphere": "Municipal",
  "uf": "RS",
  "municipality": "Sapucaia do Sul",
  "ibge_code": "4320008",
  "modality": "Dispensa",
  "modality_id": 8,
  "dispute_mode": "Dispensa Com Disputa",
  "instrument": "Aviso de Contratação Direta",
  "status": "Divulgada no PNCP",
  "legal_basis": "Lei 14.133/2021, Art. 75, II",
  "estimated_value_brl": 0.0,
  "awarded_value_brl": null,
  "published_at": "2026-11-16T00:01:05",
  "proposal_open_at": "2026-11-16T08:00:00",
  "proposal_close_at": "2026-11-19T09:00:00",
  "updated_at": "2026-11-16T00:01:05",
  "year": 2026,
  "sequence": 214,
  "is_price_registration": false,
  "source_url": "https://pregaobanrisul.com.br/editais/0093_2026/359550",
  "pncp_url": "https://pncp.gov.br/app/editais/13183513000127/2026/214",
  "scraped_at": "2026-11-18T20:00:00+00:00"
}
```

### How much does it cost?

**$2 per 1,000 notices** ($0.002 per notice) plus a tiny start fee. A daily pull of 2,000 notices costs about $4. No proxy or browser costs. Cap spend with *Max notices* or the run's maximum cost.

### Use cases

- **Bid alerts for Brazilian public contracts** by state, modality and keyword
- **Supplier and competitor intelligence** from homologated award values
- **Market sizing** of public spend by UF, sphere (federal / state / municipal) and object
- **CRM enrichment** of a buyer CNPJ with recent procurement activity

### FAQ

**Where does the data come from?** From the official PNCP consulta API (https://pncp.gov.br/api/consulta), the national publication point required by Lei 14.133/2021. No login is needed for queries.

**Why do I have to pick a modality?** The official publication endpoint requires a modality code. If you leave the list empty, the Actor walks the common commercial modalities (starting with pregão eletrônico) until it reaches *Max notices*.

**What is the minimum page size?** The official API requires 10 to 50 records per page. The Actor handles this; your *Max notices* can still be any number.

### Other public-data Actors from the same publisher

| Actor | What it gives you |
|---|---|
| [US Building Permits Scraper](https://apify.com/repeatable_stonecrop_tvc/us-building-permits) | New permits from 13 US city open-data portals, contractor company and project value |
| [US Code Violations](https://apify.com/repeatable_stonecrop_tvc/us-code-violations) | Property and building code violations from 9 US city open-data portals |
| [UK Government Tenders Scraper](https://apify.com/repeatable_stonecrop_tvc/uk-public-tenders) | Find a Tender + Contracts Finder tenders and awards in one feed |
| [EU Tenders Scraper (TED)](https://apify.com/repeatable_stonecrop_tvc/eu-ted-tenders) | Open calls, awards and winners across the EU/EEA |
| [France BOAMP Tenders](https://apify.com/repeatable_stonecrop_tvc/france-boamp-tenders) | French public tenders and awards from the official BOAMP API |
| [Brazil PNCP Tenders](https://apify.com/repeatable_stonecrop_tvc/brazil-pncp-tenders) | Brazilian public procurement notices from the official PNCP API |
| [French Company Search](https://apify.com/repeatable_stonecrop_tvc/france-company-search) | SIRENE/RNE company data with revenue, NAF codes and labels |
| [Poland KRS Company Register](https://apify.com/repeatable_stonecrop_tvc/poland-krs-companies) | Daily new Polish companies and KRS lookups |
| [Spain BORME Companies](https://apify.com/repeatable_stonecrop_tvc/spain-borme-companies) | New Spanish companies and mercantile acts from the official gazette |
| [GLEIF LEI Lookup](https://apify.com/repeatable_stonecrop_tvc/gleif-lei-lookup) | Global Legal Entity Identifier search and lookup (official GLEIF API) |

# Actor input Schema

## `publishedWithinDays` (type: `integer`):

How far back to look on the official PNCP. 1 = last 24 hours (ideal for a daily schedule).

## `publishedFrom` (type: `string`):

Optional start date. Overrides 'Published in the last N days'.

## `publishedTo` (type: `string`):

Optional end date (inclusive). Defaults to today.

## `modalities` (type: `array`):

Optional. Official PNCP modality codes. Leave empty to walk the common commercial modalities (Pregão eletrônico, Concorrência, Dispensa, Inexigibilidade, ...) until the max is reached.

## `ufs` (type: `array`):

Optional. Two-letter Brazilian state codes, e.g. SP, RJ, MG, RS, BA, DF.

## `keywords` (type: `array`):

Optional. Keep notices whose object, buyer or municipality contains ANY of these words (case-insensitive), e.g. software, limpeza, engenharia.

## `minValueBrl` (type: `integer`):

Optional. Skip notices whose estimated (or awarded) value is below this. Notices with no value are skipped when set.

## `onlyOpen` (type: `boolean`):

Keep only notices whose proposal deadline is still in the future.

## `buyerCnpj` (type: `string`):

Optional. Restrict to one contracting authority (14-digit CNPJ).

## `maxItems` (type: `integer`):

Upper limit for the run (controls your cost). Default 50.

## Actor input object example

```json
{
  "publishedWithinDays": 3,
  "modalities": [
    "6"
  ],
  "ufs": [],
  "keywords": [],
  "onlyOpen": false,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "publishedWithinDays": 3,
    "modalities": [
        "6"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("repeatable_stonecrop_tvc/brazil-pncp-tenders").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "publishedWithinDays": 3,
    "modalities": ["6"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("repeatable_stonecrop_tvc/brazil-pncp-tenders").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "publishedWithinDays": 3,
  "modalities": [
    "6"
  ],
  "maxItems": 50
}' |
apify call repeatable_stonecrop_tvc/brazil-pncp-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,repeatable_stonecrop_tvc/brazil-pncp-tenders"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/136tCt2uQX9SwFnqz/builds/orFRSZoYPPN72qT8Q/openapi.json
