Discover/pncp.gov.br API
live

pncp.gov.br APIpncp.gov.br

Access Brazilian government procurement data via the PNCP API. Search contracts, procurement processes, price registration records, and annual contracting plans.

Endpoints
6
Updated
28d ago
Try it
Page number.
End date in YYYYMMDD format (e.g. 20250110).
Start date in YYYYMMDD format (e.g. 20250101).
Results per page. Accepted values: 10, 20, 50.
api.parse.bot/scraper/50f76ddd-10ad-418f-92f3-d9de4c403747/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/50f76ddd-10ad-418f-92f3-d9de4c403747/search_contratos?pagina=1&data_final=20250110&data_inicial=20250101&tamanho_pagina=10' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 6 totalclick to expand

Search for signed contracts (contratos/empenhos) by publication date range. Returns detailed information including contractor, values, and location. Page size is restricted by the upstream API; use 10, 20, or 50.

Input
ParamTypeDescription
paginaintegerPage number.
data_finalrequiredstringEnd date in YYYYMMDD format (e.g. 20250110).
data_inicialrequiredstringStart date in YYYYMMDD format (e.g. 20250101).
tamanho_paginaintegerResults per page. Accepted values: 10, 20, 50.
Response
{
  "type": "object",
  "fields": {
    "data": "array of contract records with contractor, values, dates, and organization details",
    "totalPaginas": "total number of pages",
    "totalRegistros": "total number of matching records"
  },
  "sample": {
    "data": {
      "data": [
        {
          "valorGlobal": 7000,
          "orgaoEntidade": {
            "cnpj": "00394460005887",
            "razaoSocial": "MINISTERIO DA ECONOMIA"
          },
          "objetoContrato": "Alienação de mercadorias apreendidas pela Receita Federal",
          "dataPublicacaoPncp": "2025-01-01T00:30:03",
          "numeroControlePNCP": "00394460005887-2-007096/2024",
          "nomeRazaoSocialFornecedor": "IMPERIO TRANSPORTES TURISTICOS LTDA"
        }
      ],
      "totalPaginas": 2720,
      "totalRegistros": 27192
    },
    "status": "success"
  }
}

About the pncp.gov.br API

The PNCP API provides access to Brazil's National Public Procurement Portal across 6 endpoints, returning contracts, procurement processes (contratações), price registration records (atas), and annual contracting plans. The search_contratacoes endpoint lets you filter procurement processes by date range and modality code, while get_contratacao_detail returns full details on a single process including estimated and approved values.

Contracts and Procurement Processes

The search_contratos endpoint returns signed contracts and empenhos published within a given date range. Each record includes contractor identity, monetary values, publication dates, and the contracting organization. Pagination is controlled via pagina and tamanho_pagina, with accepted page sizes of 10, 20, or 50. The response includes totalPaginas and totalRegistros to help iterate over large result sets.

The search_contratacoes endpoint searches active procurement processes by date range and requires a modalidade code (for example, 8 for Dispensa de Licitação). Results include the procurement object, organization CNPJ, legal basis, and estimated values. Once you have a result, you can feed its sequencialCompra, organization cnpj, and ano fields directly into get_contratacao_detail to retrieve the full record — including objetoCompra, modalidadeNome, situacaoCompraNome, valorTotalEstimado, and valorTotalHomologado.

Price Registration Records and Annual Plans

The search_atas endpoint queries Atas de Registro de Preços — standing price agreements — by validity date range. Each record contains the managing organization, validity window, and procurement object description. These are commonly used to track framework agreements across Brazilian federal and state entities.

The search_pca endpoint covers Annual Contracting Plans (Plano de Contratações Anual) at the organization level. Note that date parameters influence result ordering rather than applying strict date-range filtering — results are returned ordered by most recent update. For a broader cross-document search, search_all accepts a free-text query and optional tipo_documento filter (edital, ata, contrato, or pcaorgao), returning matched items with title, description, organization, and value fields.

Common use cases
  • Monitor newly signed government contracts by querying search_contratos for a specific date range and filtering by organization CNPJ.
  • Track procurement processes of a specific modality (e.g., Dispensa) using search_contratacoes with a modalidade code.
  • Retrieve full procurement details including approved values and status from get_contratacao_detail using sequencialCompra from search results.
  • Audit price registration agreements across agencies by pulling search_atas records within a validity period.
  • Build a procurement intelligence feed by combining search_all keyword queries with tipo_documento filters for contracts or editals.
  • Compile organization-level annual spending plans via search_pca for budget transparency reporting.
  • Cross-reference contractor CNPJs across contracts and procurement processes to analyze supplier patterns.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does PNCP have an official developer API?+
Yes. PNCP exposes a public REST API documented at https://treina.pncp.gov.br/api/swagger-ui/index.html. This Parse API surfaces the most commonly used endpoints in a consistent, normalized format.
What does `get_contratacao_detail` return that the search endpoints don't?+
get_contratacao_detail returns the full procurement record for a single process, including objetoCompra (detailed description), modalidadeNome, situacaoCompraNome (current status), valorTotalEstimado, and valorTotalHomologado (the formally approved value). The search endpoints return summary-level fields and are intended for discovery, not full record retrieval.
How does date filtering work in `search_pca`?+
For search_pca, the data_inicial and data_final parameters influence the ordering of results rather than applying strict date-range filtering. Results are returned ordered by most recent update. If you need strictly date-bounded PCA results, you should filter the returned records on your side after fetching.
Does the API return procurement item-level line data (e.g., individual items within a contract)?+
Not currently. The endpoints return header-level procurement and contract records — organization details, total values, modality, and status — but not itemized line entries within a procurement. You can fork this API on Parse and revise it to add an endpoint that fetches item-level data for a given procurement.
Are procurement documents or attached files accessible through this API?+
Not currently. The API returns structured metadata fields such as objetoCompra, dates, and values, but does not return binary attachments or document URLs from the procurement dossier. You can fork this API on Parse and revise it to add an endpoint targeting document or attachment references for a given procurement process.
Page content last updated . Spec covers 6 endpoints from pncp.gov.br.
Related APIs in Government PublicSee all →
portaldecompraspublicas.com.br API
Search and retrieve Brazilian public procurement processes from Portal de Compras Públicas. Access tender listings with filters for state, municipality, modality, date range, and status, and retrieve full process details including timelines, buyer information, and official notice data.
portaltransparencia.gov.br API
Search and analyze Brazilian government spending, including public expenses, contracts, civil servant salaries, benefits, travel records, and sanctions data. Track government transparency information by department, budget programs, and public tenders all in one place.
portalcompraspublicas.com.br API
Search and access detailed information about public tenders, bids, and procurement documents from Brazilian municipalities and states. Retrieve tender items, clarification logs, winner details, and all related documentation to monitor and analyze public purchasing activity across Brazil.
alertalicitacao.com.br API
Search and browse Brazilian government procurement opportunities (licitações) by keyword or state to find relevant bidding announcements. Access detailed information about individual procurement listings and discover available opportunities across different Brazilian states.
licitaja.com.br API
Search Brazilian government procurement bids by keyword and filter by specific agencies to find tender opportunities, with access to details like estimated values, bid timelines, descriptions, and itemized lots. Get AI-generated summaries and direct links to bid documents (edital) to help you quickly evaluate procurement opportunities.
offenevergaben.at API
Search and explore Austrian public procurement contracts, including details about contracting authorities, suppliers, and product categories. Track government spending by accessing comprehensive information about individual contracts, the organizations that issue them, and the vendors that supply them.
licitacoes-e.com API
Search and analyze Brazilian public tenders from Banco do Brasil, including filtering by buyer and tender status to find procurement opportunities. Get detailed information about specific tenders to track bids, deadlines, and procurement details.
transparenciaportal.gov.br API
Track and analyze Brazilian government spending by accessing detailed records on politician amendments, public servant salaries, beneficiary payments, and government payment card transactions. Monitor how public funds are allocated across different government bodies and identify spending patterns through comprehensive financial data from Brazil's official transparency portal.