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
10d 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 →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.