Skip to content

Free APIs for Brazilian data

10 of 10 APIs in this set passed their last check, all without a key. Brazil has unusually good open data, and most of it is poorly covered by English-language API lists. BrasilAPI alone wraps postal codes, the company registry, holidays, banks and vehicle prices behind one host.

Ver esta coleção em português →

  1. BrasilAPI — CEP

    Postal code to address, with several providers behind one endpoint.

    brasilapi.com.br

    Runs in the browserWorking

  2. ViaCEP

    The classic CEP lookup; also searches by street name.

    viacep.com.br

    Runs in the browserWorking

  3. BrasilAPI — CNPJ

    Company name, status and address from the federal registry.

    brasilapi.com.br

    Runs in the browserWorking

  4. BrasilAPI — Feriados

    National holidays for a year, including movable ones.

    brasilapi.com.br

    Runs in the browserWorking

  5. Banco Central do Brasil — PTAX

    The official PTAX dollar rate from the central bank.

    olinda.bcb.gov.br

    Runs in the browserWorking

  6. AwesomeAPI — Câmbio

    Intraday quotes against the real from an aggregator.

    economia.awesomeapi.com.br

    Runs in the browserWorking

  7. IBGE — Localidades

    States and municipalities with official IBGE codes.

    servicodados.ibge.gov.br

    Runs in the browserWorking

  8. BrasilAPI — Bancos

    Bank codes for payment forms.

    brasilapi.com.br

    Runs in the browserWorking

  9. FIPE API (Parallelum)

    Vehicle reference prices from the FIPE table.

    parallelum.com.br

    Runs in the browserWorking

  10. Câmara dos Deputados — Dados Abertos

    Deputies, bills and votes of the lower house.

    dadosabertos.camara.leg.br

    Runs in the browserWorking

Build snapshot, not live. One verifier run on , from the machine that built this site. How we check

How the pieces fit

A Portuguese version of this collection, with a page for each use case, is at /brasil.

  1. For an address form: call a CEP API when the eighth digit is typed and fill street, district, city and state.
  2. For company sign-up: validate the CNPJ check digits locally first, then query the registry once.
  3. For amounts in reais: use PTAX for accounting and contracts, and say which day’s rate it is.

Questions

Which free API should I use for CEP lookup?

BrasilAPI CEP v2 or ViaCEP. Both need no key and allow browser calls. BrasilAPI queries several providers and returns the first that answers, which helps when one of them is down.

Is there a free CNPJ API?

Yes: BrasilAPI, CNPJ.ws public and ReceitaWS return registry data without a key. All of them limit how many lookups you can make per minute.

What is PTAX?

PTAX is the reference exchange rate calculated by the Banco Central do Brasil for each business day. It is the rate used in contracts and accounting, and it is not available for weekends or holidays.

Other collections

Keep exploring