# Licitações Brasil (PNCP) — Brazil Public Tenders (`mastercreator_ai/licitacoes-brasil-pncp-tenders`) Actor

Find open Brazilian government tenders on PNCP, the official national procurement portal. Search by keyword, state (UF), modality, government level, value and publish date. Clean rows with agency, CNPJ, estimated value, deadline and links. Ideal for suppliers, sales teams and AI agents.

- **URL**: https://apify.com/mastercreator_ai/licitacoes-brasil-pncp-tenders.md
- **Developed by:** [MasterCreator AI](https://apify.com/mastercreator_ai) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 70.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 tender (licitação)s

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

## Licitações Brasil (PNCP) — Brazil Public Tenders Search

Find **Brazilian government tenders that are open for bids right now**, straight from **PNCP** (Portal Nacional de Contratações Públicas), the official national procurement portal required by Law 14.133/2021. Federal, state and municipal buyers all publish there.

**Encontre licitações abertas no Brasil** direto do PNCP, com filtros por palavra-chave, UF, modalidade, esfera, valor e prazo.

### What you get

One clean row per tender:

| Field | Meaning |
|---|---|
| titulo, objeto | Tender title and what is being bought |
| orgao, orgaoCnpj, unidade | Buying agency |
| uf, municipio, esfera | Location and government level |
| modalidade, modoDisputa, criterioJulgamento | How the tender works (e.g. Pregão Eletrônico, lowest price) |
| valorEstimado | Estimated value (BRL) |
| inicioPropostas, fimPropostas, diasRestantes | Bid window and days left |
| linkPncp, linkSistemaOrigem | Links to the tender on PNCP and on the buyer's system |

### Use cases

- **Suppliers**: daily list of new tenders matching your products ("software", "uniformes", "merenda").
- **Sales teams / consultancies**: lead lists of public buyers by state and value.
- **Market intelligence**: what governments are buying, where and for how much.
- **AI agents**: callable via Apify MCP to answer "which tenders for X are open in São Paulo?".

### Input example

Open software tenders in São Paulo above R$100k, published this week:

```json
{
  "palavrasChave": [
    "software",
    "licença de software"
  ],
  "status": "recebendo_proposta",
  "ufs": [
    "SP"
  ],
  "valorMinimo": 100000,
  "publicadoNosUltimosDias": 7,
  "maxResultados": 200
}
```

Tip: schedule this Actor daily with publicadoNosUltimosDias: 1 and connect it to email, Slack, Google Sheets, Make or n8n for automatic alerts.

### Pricing

Pay per result: you are charged only for tenders saved to the dataset. Set a max spend per run and the Actor stops cleanly when it is reached.

### Related Actors

- **CNPJ & CEP Bulk Lookup** (free) — enrich buyers' CNPJs.
- **Latin America Public Tenders** — Brazil, Colombia and Chile in one feed.

### Notes

- Data comes from PNCP's public search API. Tenders that a buyer has not yet published on PNCP will not appear.
- Keyword search uses PNCP's own search engine (Portuguese terms work best).
- This Actor only reads public government data.

# Actor input Schema

## `palavrasChave` (type: `array`):

Terms to search in tender titles and objects, in Portuguese (e.g. 'software', 'limpeza', 'merenda escolar'). One search per keyword; duplicates are removed. Leave empty to list the most recent tenders.

## `tipoDocumento` (type: `string`):

edital = tender notices (licitações); ata = price registration records; contrato = signed contracts.

## `status` (type: `string`):

recebendo_proposta = open for bids now (most useful for suppliers).

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

Two-letter Brazilian state codes, e.g. SP, RJ, MG. Empty = whole country.

## `modalidades` (type: `array`):

Keep only tenders whose modality contains any of these words, e.g. 'Pregão', 'Dispensa', 'Concorrência'.

## `esferas` (type: `array`):

Keep only these levels, e.g. 'Federal', 'Estadual', 'Municipal'.

## `valorMinimo` (type: `integer`):

Skip tenders with estimated value below this amount (tenders without a value are skipped when set).

## `valorMaximo` (type: `integer`):

Skip tenders with estimated value above this amount.

## `publicadoNosUltimosDias` (type: `integer`):

Only tenders published on PNCP within this many days. Great for daily monitoring.

## `excluirCancelados` (type: `boolean`):

Drop cancelled tenders.

## `maxResultados` (type: `integer`):

Maximum number of tenders to save in total.

## Actor input object example

```json
{
  "palavrasChave": [
    "software"
  ],
  "tipoDocumento": "edital",
  "status": "recebendo_proposta",
  "excluirCancelados": true,
  "maxResultados": 100
}
```

# 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 = {
    "palavrasChave": [
        "software"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mastercreator_ai/licitacoes-brasil-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 = { "palavrasChave": ["software"] }

# Run the Actor and wait for it to finish
run = client.actor("mastercreator_ai/licitacoes-brasil-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 '{
  "palavrasChave": [
    "software"
  ]
}' |
apify call mastercreator_ai/licitacoes-brasil-pncp-tenders --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mastercreator_ai/licitacoes-brasil-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/HqPvlhzXfFFVxIEGM/builds/iVjyMRidEXIarnZkh/openapi.json
