# Licitações do Brasil (PNCP): editais por UF e segmento (`italosilveira/pncp-licitacoes-brasil`) Actor

Editais e contratações públicas do Portal Nacional de Contratações Públicas (PNCP) filtrados por UF, segmento e palavra-chave, com valor estimado, prazo e link oficial.

- **URL**: https://apify.com/italosilveira/pncp-licitacoes-brasil.md
- **Developed by:** [Ítalo Silveira](https://apify.com/italosilveira) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 editals

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 do Brasil (PNCP) — editais por estado, segmento e palavra-chave

Brazilian public tenders from the official **PNCP** (Portal Nacional de Contratações Públicas), filtered by state, segment and keyword. Each result has the buyer, city/state, modality, description, estimated value, bid deadline and the official link.

Extrai editais e contratações públicas **abertas** do PNCP, a fonte oficial do governo, e entrega só o que interessa ao seu negócio.

### Para quem é

- Fornecedores que vendem para prefeituras, estados e órgãos federais (saúde, obras, alimentação, TI, limpeza, veículos, eventos e outros).
- Consultores e empresas de monitoramento que precisam de dados prontos para planilhas, CRMs e alertas.
- Quem quer automatizar alertas diários de licitações por WhatsApp, e-mail ou Telegram (use com Schedules e Integrations da Apify).

### Como usar

1. Escolha os **estados** (ex.: SC, PR, RS) e os **segmentos** ou **palavras-chave** (ex.: ambulância, pavimentação).
2. Defina quantos **dias** olhar para trás (1 a 15) e o **máximo de resultados**.
3. Rode. Para receber todo dia, crie um **Schedule** e conecte a uma integração.

### Exemplo de entrada

```json
{
  "dias": 3,
  "ufs": ["SC", "PR", "RS"],
  "segmentos": ["saude"],
  "palavrasChave": ["ambulância", "material médico"],
  "apenasAbertas": true,
  "maxResultados": 100
}
```

### Exemplo de saída

```json
{
  "municipio": "Joinville",
  "uf": "SC",
  "modalidade": "Pregão - Eletrônico",
  "objeto": "Aquisição de Móveis Hospitalares.",
  "valorEstimado": 1820008.85,
  "segmento": "saude",
  "propostasAte": "2026-11-06T08:30:00",
  "link": "https://pncp.gov.br/app/editais/83169623000110/2026/573"
}
```

### Segmentos disponíveis

Saúde, Alimentação, Construção e obras, TI e software, Veículos e combustível, Limpeza e escritório, Educação, Serviços gerais, Eventos e comunicação. Editais que não se encaixam em nenhum aparecem como `outros`.

### Notas

- Os dados vêm da API pública e oficial do PNCP. Alguns editais têm valor sigiloso (`valorEstimado` zero ou vazio).
- A classificação por segmento usa palavras do objeto do edital e pode errar; use **palavras-chave** para filtros mais precisos.
- Sempre confira o edital no link oficial antes de participar de uma licitação.
- Este Actor não é afiliado ao governo federal.

# Actor input Schema

## `dias` (type: `integer`):

Quantos dias de publicações buscar, contando hoje (1 a 15).

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

Siglas dos estados, por exemplo SC, PR, RS. Vazio = todos.

## `segmentos` (type: `array`):

Filtrar por segmento. Vazio = todos.

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

Basta uma aparecer no texto do edital. Vazio = todas.

## `apenasAbertas` (type: `boolean`):

Ligado: devolve só editais cujo prazo de propostas ainda não encerrou.

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

Para a busca ao atingir esta quantidade de editais (você paga só pelos que receber).

## Actor input object example

```json
{
  "dias": 1,
  "ufs": [],
  "segmentos": [],
  "palavrasChave": [],
  "apenasAbertas": true,
  "maxResultados": 100
}
```

# Actor output Schema

## `editais` (type: `string`):

Tabela com os editais encontrados (município, UF, modalidade, objeto, valor, segmento, prazo e link oficial).

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("italosilveira/pncp-licitacoes-brasil").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 = {}

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

```

## MCP server setup

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

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/WRUkStXZbgfP0ehPd/builds/MhrAC0jBWUiLkXfT7/openapi.json
