Discover/transparenciaportal.gov.br API
live

transparenciaportal.gov.br APItransparenciaportal.gov.br

Access Brazilian federal transparency data: parliamentary amendments, public servant records, payment card transactions, and beneficiary expenditures via 5 structured endpoints.

Endpoints
5
Updated
3mo ago
Try it
Year to query amendments for in YYYY format.
Maximum number of results per page.
Pagination offset (number of records to skip).
api.parse.bot/scraper/62c5c8b9-c58a-4896-8b8d-66c2b87eb1b7/<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/62c5c8b9-c58a-4896-8b8d-66c2b87eb1b7/get_emendas?year=2024&limit=5&offset=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Get parliamentary amendments (spending by politicians) for a specific year. Returns paginated results ordered by author.

Input
ParamTypeDescription
yearstringYear to query amendments for in YYYY format.
limitintegerMaximum number of results per page.
offsetintegerPagination offset (number of records to skip).
Response
{
  "type": "object",
  "fields": {
    "data": "array of amendment objects with fields like autor, tipoEmenda, valorEmpenhado, valorPago, funcao, programa, acao",
    "draw": "integer draw counter",
    "recordsTotal": "integer total number of records available",
    "recordsFiltered": "integer total filtered records"
  },
  "sample": {
    "data": {
      "data": [
        {
          "ano": 2024,
          "acao": "8581 - ESTRUTURACAO DA REDE DE SERVICOS DE ATENCAO PRIMARIA A SAUDE",
          "autor": "4290 - ABILIO BRUNINI",
          "funcao": "Saúde",
          "programa": "5119 - ATENCAO PRIMARIA A SAUDE",
          "subfuncao": "Atenção básica",
          "valorPago": "1.748.960,00",
          "tipoEmenda": "Emenda Individual - Transferências com Finalidade Definida",
          "codigoEmenda": "202442900001",
          "numeroEmenda": "0001",
          "valorEmpenhado": "2.359.960,00",
          "valorLiquidado": "1.748.960,00",
          "valorRestoPago": "611.000,00",
          "localidadeDoGasto": "MÚLTIPLO",
          "valorRestoInscrito": "611.000,00",
          "valorRestoCancelado": "0,00"
        }
      ],
      "draw": 0,
      "error": null,
      "recordsTotal": 9223372036854776000,
      "recordsFiltered": 9223372036854776000
    },
    "status": "success"
  }
}

About the transparenciaportal.gov.br API

This API exposes 5 endpoints covering Brazilian federal government financial records from transparenciaportal.gov.br, including parliamentary amendments, public servant rosters, and payment card transactions. The get_emendas endpoint returns amendment spending broken down by author, program, and budget action, while get_servidores delivers paginated federal employee records with CPF, name, agency, and employment status.

What the API Covers

Five endpoints map directly to major datasets published by Brazil's Portal da Transparência. get_emendas queries parliamentary amendments by year (year in YYYY format) and returns per-amendment fields including autor, tipoEmenda, valorEmpenhado (committed value), valorPago (paid value), funcao, programa, and acao. get_despesas_favorecido drills into expenditures by beneficiary across three budget phases — Empenho (1), Liquidação (2), and Pagamento (3) — selectable via the fase parameter, with results sorted by value descending.

Payment Cards and Beneficiary Transfers

get_cartoes returns government payment card transactions filtered by date range (date_from / date_to in DD/MM/YYYY format). Each record includes tipoCartao, orgaoSuperior, portador, valorTotal, and dataTransacao. get_despesas_recursos_recebidos covers resources received by beneficiaries over a given period, returning mesAno, favorecido, tipoFavorecido, ufFavorecido, municipioFavorecido, and valorRecebido — useful for mapping transfers by state or municipality.

Public Servants

get_servidores provides federal public servant data paginated by name. Each record includes tipo, cpf, nome, orgaoServidorLotacao (agency of assignment), matricula, situacao (employment status), cargo, and funcao. All five endpoints share a consistent pagination model using limit and offset parameters, and every response includes recordsTotal and recordsFiltered counts alongside the data array.

Common use cases
  • Track how individual parliamentarians allocate amendment budgets (valorEmpenhado, valorPago) across programs and budget actions.
  • Audit government payment card usage by cardholder (portador) and issuing agency (orgaoSuperior) over custom date ranges.
  • Build a directory of federal public servants filtered by agency (orgaoServidorLotacao) and employment status (situacao).
  • Map federal transfers to municipalities using municipioFavorecido and ufFavorecido from the resources-received endpoint.
  • Compare expenditure commitment versus payment phases for the same beneficiary using fase values 1, 2, and 3 in get_despesas_favorecido.
  • Monitor year-over-year shifts in parliamentary amendment spending by querying get_emendas across multiple year values.
  • Identify top beneficiaries of federal spending by sorting get_despesas_favorecido results, which are pre-ordered by value descending.
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 transparenciaportal.gov.br have an official developer API?+
Yes. The Portal da Transparência offers an official open data API documented at https://api.portaldatransparencia.gov.br/. It requires registration for an API key. This Parse API provides a structured alternative with consistent pagination and no key registration needed on your end.
What does `get_emendas` return and how do I scope it to a specific year?+
It returns an array of amendment objects with fields including autor, tipoEmenda, valorEmpenhado, valorPago, funcao, programa, and acao. Pass the year parameter in YYYY format to filter results to a specific budget year. Results are ordered by author name and support limit/offset pagination.
Can I filter public servant records by agency or employment status?+
get_servidores currently returns all federal public servants paginated by name. The response includes orgaoServidorLotacao and situacao fields per record, so you can filter client-side, but the endpoint does not accept agency or status as query parameters. You can fork this API on Parse and revise it to add server-side filtering by those fields.
Are state or municipal government expenditures covered?+
Not currently. All five endpoints cover federal-level data from the Portal da Transparência. State and municipal transparency portals are separate systems. You can fork this API on Parse and revise it to add endpoints pointing at state-level portals that expose comparable data.
How fresh is the data returned by `get_cartoes` and `get_despesas_recursos_recebidos`?+
Both endpoints reflect whatever the Portal da Transparência has published at query time. The portal typically updates payment and transfer data with a lag of a few weeks to one month relative to the transaction date. Use the date_to and date_from parameters to bound your queries and avoid pulling ranges where data may be incomplete.
Page content last updated . Spec covers 5 endpoints from transparenciaportal.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.
Transparência Portal API – Brazilian Gov Data · Parse