Discover/portaldecompraspublicas.com.br API
live

portaldecompraspublicas.com.br APIportaldecompraspublicas.com.br

Access Brazilian public procurement data via 5 endpoints. Search tenders by state, status, modality, date range, and retrieve full process details and timelines.

Endpoints
5
Updated
10d ago
Try it
State (UF) code from get_search_parameters ufs array (e.g. '100143' for RS, '100135' for S
Page number for pagination.
Government entity name to filter by.
Keyword/object search term (e.g. 'computadores', 'equipamento').
Status code from get_search_parameters status array (e.g. '1' for Recebendo Propostas, '2'
Process number to search for.
Date type filter: '0' for Publication date, '1' for Opening date.
End date in YYYY-MM-DD format for date range filter.
Municipality code. Defaults to '0' (all municipalities).
Judgment type code from get_search_parameters julgamentos array.
Modality code from get_search_parameters modalidades array (e.g. '1' for Pregão, '3' for D
Realization type code from get_search_parameters realizacoes array (e.g. '1' for Eletrônic
Start date in YYYY-MM-DD format for date range filter.
api.parse.bot/scraper/94fb6edf-2207-48b6-9256-33b865eb528c/<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/94fb6edf-2207-48b6-9256-33b865eb528c/search_processes?uf=100143&page=1&modalidade=1' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Search for procurement processes with various filters. Returns paginated results sorted by most recent publication date.

Input
ParamTypeDescription
ufstringState (UF) code from get_search_parameters ufs array (e.g. '100143' for RS, '100135' for SP).
pagestringPage number for pagination.
orgaostringGovernment entity name to filter by.
objetostringKeyword/object search term (e.g. 'computadores', 'equipamento').
statusstringStatus code from get_search_parameters status array (e.g. '1' for Recebendo Propostas, '2' for Em Andamento, '3' for Finalizado).
processostringProcess number to search for.
tipoDatastringDate type filter: '0' for Publication date, '1' for Opening date.
dataFinalstringEnd date in YYYY-MM-DD format for date range filter.
municipiostringMunicipality code. Defaults to '0' (all municipalities).
julgamentostringJudgment type code from get_search_parameters julgamentos array.
modalidadestringModality code from get_search_parameters modalidades array (e.g. '1' for Pregão, '3' for Dispensa).
realizacaostringRealization type code from get_search_parameters realizacoes array (e.g. '1' for Eletrônico, '2' for Presencial).
dataInicialstringStart date in YYYY-MM-DD format for date range filter.
Response
{
  "type": "object",
  "fields": {
    "result": "array of procurement process summaries including codigoLicitacao, identificacao, numero, resumo, razaoSocial, status, tipoLicitacao, urlReferencia",
    "quantidadePaginas": "integer total number of pages",
    "quantidadeRegistros": "integer total number of matching records"
  },
  "sample": {
    "data": {
      "result": [
        {
          "numero": "013/2024",
          "resumo": "CHAMAMENTO PÚBLICO PARA CREDENCIAMENTO DE PARECERISTAS PARA O SETOR CULTURAL DE ATIBAIA.",
          "status": {
            "codigo": 1,
            "descricao": "Recebendo Propostas"
          },
          "razaoSocial": "Prefeitura Municipal da Estância de Atibaia",
          "identificacao": "54.756/2024",
          "isExclusivoME": false,
          "tipoLicitacao": {
            "tipoLicitacao": "Credenciamento",
            "modalidadeLicitacao": "Credenciamento"
          },
          "urlReferencia": "/sp/prefeitura-municipal-da-estancia-de-atibaia-3319/cred-013-2024-2025-343584",
          "codigoLicitacao": 343584
        }
      ],
      "quantidadePaginas": 5,
      "quantidadeRegistros": 50
    },
    "status": "success"
  }
}

About the portaldecompraspublicas.com.br API

This API exposes 5 endpoints covering public procurement processes listed on Portal de Compras Públicas, a Brazilian government tender platform. The search_processes endpoint returns paginated tender summaries filterable by state (UF), status, keyword, date range, and government entity. Companion endpoints deliver full process details, chronological event timelines, and the complete set of valid filter codes needed to query the system.

What the API Covers

Portal de Compras Públicas aggregates public procurement notices from Brazilian government entities at the municipal and state level. The API provides structured access to this data across five endpoints. search_processes is the primary search surface, accepting filters for uf (state code), orgao (entity name), objeto (keyword), status, processo (process number), and a date range via tipoData, dataFinal. Results include codigoLicitacao, identificacao, numero, resumo, razaoSocial, status, tipoLicitacao, and urlReferencia fields per record, plus quantidadePaginas and quantidadeRegistros for pagination.

Process Detail and Timeline

get_process_detail accepts a slug taken from the urlReferencia field in search results and returns the complete record: resumo, tipoLicitacao, numeroProcesso, statusProcesso (with codigo and descricao), codigoLicitacao, and razaoSocialComprador. get_process_timeline takes the codigoLicitacao integer and returns frasesChat, an ordered array of event objects each containing apelido, dataHoraFrase, and frase. Newly published processes may return an empty frasesChat array with codigoUltimaFrase set to 0.

Filter Codes and Benefit Card Search

Before querying search_processes, call get_search_parameters to retrieve the valid code lists: ufs, status, julgamentos, modalidades, and realizacoes. Each entry carries a codigo and descricao. A separate endpoint, search_benefit_card_processes, runs a preset set of benefit-related keyword queries (vale refeição, vale alimentação, vale transporte, cartão benefício) and returns deduplicated results with a total_found count — useful for vendors specifically tracking benefit card tenders without constructing individual searches.

Common use cases
  • Monitor new procurement notices in a specific Brazilian state by polling search_processes with the relevant uf code and a status of 'Recebendo Propostas'.
  • Build a tender alert service that surfaces benefit card contracts using search_benefit_card_processes and notifies sales teams of matching opportunities.
  • Aggregate buyer entity activity by filtering search_processes by orgao and collecting razaoSocial and tipoLicitacao across results.
  • Audit process history by pulling the full event log from get_process_timeline for a given codigoLicitacao and tracking document uploads and status changes.
  • Populate a procurement dashboard with live tender counts and pagination metadata (quantidadePaginas, quantidadeRegistros) from search_processes.
  • Validate and translate UF and status codes for a localized UI by querying get_search_parameters once and caching the ufs and status arrays.
  • Track a specific tender end-to-end by resolving its urlReferencia through get_process_detail and then fetching its frasesChat timeline.
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 Portal de Compras Públicas offer an official developer API?+
Portal de Compras Públicas does not publish a documented public developer API. Access to structured procurement data is not offered through an official developer program.
What does `get_search_parameters` return and why should I call it first?+
get_search_parameters returns five arrays: ufs (state codes), status, julgamentos (judgment types), modalidades (procurement modalities), and realizacoes (realization types). Each entry has a codigo and descricao. The search_processes endpoint requires numeric codes — not plain text — for fields like uf and status, so calling get_search_parameters first ensures you pass valid values.
Are process documents or official notice attachments accessible through the API?+
Not currently. The API covers process metadata, buyer information, status, and timeline events, but does not return file attachments or links to edital (notice) documents. You can fork the API on Parse and revise it to add an endpoint that retrieves document attachments for a given process.
How does pagination work in `search_processes`?+
Results are sorted by most recent publication date. The response includes quantidadePaginas (total pages) and quantidadeRegistros (total matching records). Pass the page parameter as a string to step through pages. There is no cursor mechanism — page-number pagination only.
Does `get_process_timeline` always return events for a process?+
No. Newly opened processes may return an empty frasesChat array. In that case codigoUltimaFrase is 0. Events are system-generated and appear as the process progresses through document uploads, republications, and status changes, so timeline data grows over a process's lifecycle.
Page content last updated . Spec covers 5 endpoints from portaldecompraspublicas.com.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.
Portal de Compras Públicas API · Parse