Discover/portalcompraspublicas.com.br API
live

portalcompraspublicas.com.br APIportalcompraspublicas.com.br

Access Brazilian public tender data via 8 endpoints: listings, full details, items, documents, clarifications, winners, and filter parameters.

Endpoints
8
Updated
14d ago
Try it
Page number (1-based).
Number of results per page.
Search keyword for the tender object/description.
State (UF) code to filter by, from list_ufs or get_search_parameters.
End date filter in YYYY-MM-DD format.
Start date filter in YYYY-MM-DD format.
Status code filter: 1 (Recebendo Propostas), 2 (Em Andamento), 3 (Finalizado), 4 (Iminênci
Modality code filter, from get_search_parameters.
api.parse.bot/scraper/0885dad1-c891-4d2b-8aad-4da7804545e2/<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/0885dad1-c891-4d2b-8aad-4da7804545e2/list_licitacoes?page=1&limit=5' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 8 totalclick to expand

List or search for public tenders (licitações) with optional filters and pagination. Returns paginated results ordered by most recent.

Input
ParamTypeDescription
pageintegerPage number (1-based).
limitintegerNumber of results per page.
objetostringSearch keyword for the tender object/description.
codigo_ufintegerState (UF) code to filter by, from list_ufs or get_search_parameters.
data_finalstringEnd date filter in YYYY-MM-DD format.
data_inicialstringStart date filter in YYYY-MM-DD format.
codigo_statusintegerStatus code filter: 1 (Recebendo Propostas), 2 (Em Andamento), 3 (Finalizado), 4 (Iminência de deserto), 25 (Em Republicação).
codigo_modalidadeintegerModality code filter, from get_search_parameters.
Response
{
  "type": "object",
  "fields": {
    "total": "integer total number of matching tenders",
    "result": "array of tender summary objects with codigoLicitacao, numero, resumo, razaoSocial, status, urlReferencia, etc.",
    "nextPage": "integer or null, next page number",
    "pageCount": "integer total number of pages",
    "currentPage": "integer current page number",
    "previousPage": "integer or null, previous page number"
  },
  "sample": {
    "data": {
      "total": 377021,
      "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",
          "urlReferencia": "/sp/prefeitura-municipal-da-estancia-de-atibaia-3319/cred-013-2024-2025-343584",
          "codigoLicitacao": 343584
        }
      ],
      "nextPage": 2,
      "pageCount": 37703,
      "currentPage": 1,
      "previousPage": null
    },
    "status": "success"
  }
}

About the portalcompraspublicas.com.br API

This API exposes 8 endpoints covering public procurement data from Brazil's Portal de Compras Públicas, spanning tender listings, full tender details, attached documents, clarification logs, and award results. The list_licitacoes endpoint lets you search and paginate across all active and historical tenders, filtering by state code, modality, status, and date range. Coverage spans all 27 Brazilian states and multiple procurement modalities including Pregão Eletrônico and others returned by get_search_parameters.

Tender Listings and Details

The list_licitacoes endpoint returns paginated tender summaries, each including codigoLicitacao, numero, resumo, razaoSocial, status, and urlReferencia. You can narrow results using objeto (keyword search on the tender description), codigo_uf (state code), codigo_modalidade, codigo_status, and date range filters data_inicial/data_final. Status codes cover active states like 1 (Recebendo Propostas), 2 (Em Andamento), and 3 (Finalizado), among others. To get the full record for any tender, pass its urlReferencia slug to get_licitacao_detail, which returns fields including tipoPregao, numeroProcesso, dataHoraAbertura, statusProcesso, and razaoSocialComprador.

Items, Documents, and Clarifications

list_licitacao_items takes a codigo_licitacao and returns either flat items or lot-grouped items depending on the isLote boolean in the response — when true, results are nested under lotes; when false, under itens.result. list_documents returns all attachments for a tender, including the document nome, tipo (Edital, Documento Anexo, Relatorio, Documento), and a download url — note that some entries have a null url and instead use tipoDownLoad and parametros fields to construct dynamic links. list_clarifications returns the tender's chat log as frasesChat objects with apelido, dataHoraFrase, and frase, paginated in reverse chronological order.

Winners and Reference Data

list_licitacao_winners scans a tender's items and returns those with situacao codes 7 (Homologado), 8 (Adjudicado), or 9 in the vencedores array, alongside a totalVencedores count. For tenders that are still open, this returns an empty array. Two utility endpoints support filter construction: list_ufs returns all 27 state codes and abbreviations, and get_search_parameters returns a superset including valid modalidades, status, julgamentos, and realizacoes arrays — useful for building a complete filter UI or validating inputs before querying.

Common use cases
  • Monitor new public tenders in a specific Brazilian state by filtering list_licitacoes with codigo_uf and data_inicial
  • Track award outcomes by polling list_licitacao_winners for tenders approaching their closing date
  • Download and archive all tender documents using the url and tipoDownLoad fields from list_documents
  • Build a supplier alert system that matches objeto keywords in tender descriptions to company product categories
  • Audit procurement activity for a specific buying organization using razaoSocialComprador from get_licitacao_detail
  • Analyze clarification patterns by extracting Q&A threads from list_clarifications across multiple tenders
  • Populate a tender search UI with valid filter options using get_search_parameters for modalities, statuses, and states
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 have an official developer API?+
The portal does not publish a documented public developer API. Access to structured procurement data is available through this Parse API.
How does `list_licitacao_items` handle tenders with lots versus individual items?+
The response includes an isLote boolean. When false, item records appear under itens.result. When true, they are grouped under lotes with their own paginated result array. Check isLote first before traversing the response.
Some document entries in `list_documents` have a null `url` — what does that mean?+
For those entries, the tipoDownLoad integer and parametros fields are used instead of a direct URL. The specific document link must be constructed from those fields rather than read directly from url.
Does the API expose supplier bid amounts or proposal details for active tenders?+
Not currently. The API covers awarded item data (via list_licitacao_winners) and clarification chat logs, but individual supplier bid amounts during the active bidding phase are not exposed. You can fork this API on Parse and revise it to add an endpoint covering proposal data if that becomes available.
Can I filter tenders by municipality rather than just by state?+
The current list_licitacoes endpoint filters by codigo_uf (state level) and keyword (objeto), but there is no dedicated municipality-level filter parameter. You can fork this API on Parse and revise it to add municipality filtering if the underlying data supports it.
Page content last updated . Spec covers 8 endpoints from portalcompraspublicas.com.br.
Related APIs in Government PublicSee all →
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
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.
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.
maradminbot.com API
Search and retrieve official Marine Corps MARADMIN announcements from Marines.mil, filtering by year, status, and keyword to stay updated on the latest personnel and administrative directives. Get detailed information about specific announcements by number or browse the most recent updates to ensure you never miss critical Marine Corps guidance.
13f.info API
13f.info API
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
customs.gov.mv API
Check import/export duties, tariff classifications, and exchange rates for Maldives customs compliance, plus track vessel movements, company registrations, and declaration statuses. Get real-time data directly from the official customs portal to streamline your trade and logistics operations.
bizapedia.com API
Search for detailed business profiles and contact information from Bizapedia, including company details, employee data, and communication channels. Access comprehensive business intelligence to research companies and build targeted contact lists.