# Changelog of Licitações Brasil — PNCP Public Tenders Monitor (`thxtype/licitacoes-brasil`) Actor

- **URL**: https://apify.com/thxtype/licitacoes-brasil/changelog.md
- **Full Actor documentation**: https://apify.com/thxtype/licitacoes-brasil.md

## Changelog

### 1.0.3 (2026-11-12)

- New input `maxRuntimeSeconds`: the scan stops at this limit (or before the run timeout) and saves the tenders found so far, instead of timing out with nothing saved. Keyword searches over the whole country read up to ~700 PNCP pages.
- Progress log and status message every 30 seconds.
- The run summary reports `timeBudgetReached`.

### 1.0.0 (2026-11-11)

- First release.
- Source: the official PNCP consulta API. `GET /api/consulta/v1/contratacoes/proposta` for tenders open for proposals, `GET /api/consulta/v1/contratacoes/publicacao` for everything published in a date range. Items come from `GET /api/pncp/v1/orgaos/{cnpj}/compras/{ano}/{sequencial}/itens`.
- Filters: keywords and exclude keywords (accent-insensitive, whole word, plural and `*` prefix), states (UF), municipalities (IBGE code or name, resolved through the IBGE API), modalities, government sphere, agency CNPJ, min/max estimated value, publication date range or last N days, proposals closing within N days.
- Newest tenders first. Pages are walked from the end, so a run with empty input returns the 100 newest open tenders in a few seconds.
- Normalized output with `linkPNCP`, legal basis, SRP flag and ISO dates with the Brasília offset. Duplicates are removed by `numeroControlePNCP`.
- Requests paced to the PNCP rate limit (about 30 per minute per IP), with a shared pause after HTTP 429.
- Optional item lists (`includeItens`).
- Monitor mode: remembers returned tenders in the named key-value store `licitacoes-brasil-monitor` and outputs only new ones on scheduled runs.
- Pay-per-event charging: `tender-result` per tender and `item-result` per item. Stops when the maximum cost per run is reached.
- Dataset table views: "Tenders" (overview) and "Full details".
