BrasilAPI API
Returns Brazilian postal code addresses, banks, area codes, national holidays and company registry data by CNPJ.
View as Markdown| GET | /brasilapi/cep | The address of a Brazilian postal code (CEP): state, city, neighbourhood, street and position. |
| GET | /brasilapi/bank | A bank authorised in Brazil, by its code, with its full name and ISPB. |
| GET | /brasilapi/ddd | The state and cities that use a Brazilian area code (DDD). |
| GET | /brasilapi/holidays | The national holidays of Brazil in one year. |
| GET | /brasilapi/cnpj | A Brazilian company registered with the Receita Federal by its CNPJ: name, status, activity, address, capital and size. |
| GET | /brasilapi/banks | Every bank authorised in Brazil with its code, ISPB and full name. |
| GET | /brasilapi/ibgeStates | The 27 federative units of Brazil with their IBGE code, abbreviation, region and capital. |
| GET | /brasilapi/interestRates | The current Brazilian reference rates in per cent: Selic, CDI and IPCA, as the Central Bank publishes them. |
| GET | /brasilapi/fipeBrands | The vehicle brands in the FIPE price table for one vehicle type, with the FIPE code of each brand. |
| GET | /brasilapi/fipeModels | The vehicle models of one brand in the FIPE price table, with the FIPE code of each model. Each model name carries its version and engine. |
| GET | /brasilapi/ncm | One Mercosur trade code (NCM) with its description and the dates it is valid. |
| GET | /brasilapi/isbn | A book by its ISBN: title, authors, publisher and year, from the Brazilian ISBN agency and open catalogues. |
| GET | /brasilapi/domain | The registration status of a .br domain at Registro.br: whether it is taken, its name servers and expiry. |
| GET | /brasilapi/weatherCities | The Brazilian cities the CPTEC weather service knows whose name matches the text, with the id to forecast them by. |
| GET | /brasilapi/weatherForecast | The daily weather forecast of one Brazilian city from CPTEC/INPE: condition, temperatures and UV index for each day. |
cep
/v1/brasilapi/cepThe address of a Brazilian postal code (CEP): state, city, neighbourhood, street and position.
Parameters
cepstring required | CEP with eight digits, such as 01001000. e.g. 01001000 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
cep | string |
city | string |
latitude | number (double) |
longitude | number (double) |
neighborhood | string |
state | string |
street | string |
timezone | string |
curl "https://api.hoshime.com/v1/brasilapi/cep?cep=01001000" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/cep?cep=01001000", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/cep?cep=01001000", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "cep": "01001000", "city": "São Paulo", "latitude": -23.5503898, "longitude": -46.633081, "neighborhood": "Sé", "state": "SP", "street": "Praça da Sé", "timezone": "America/Sao_Paulo" }, "meta": { "cached": false, "endpoint": "cep", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
bank
/v1/brasilapi/bankA bank authorised in Brazil, by its code, with its full name and ISPB.
Parameters
codestring required | Bank code, such as 237 for Bradesco. e.g. 237 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
code | integer (int64) |
fullName | string |
ispb | string |
name | string |
curl "https://api.hoshime.com/v1/brasilapi/bank?code=237" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/bank?code=237", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/bank?code=237", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "code": 237, "fullName": "Banco Bradesco S.A.", "ispb": "60746948", "name": "BCO BRADESCO S.A." }, "meta": { "cached": false, "endpoint": "bank", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
ddd
/v1/brasilapi/dddThe state and cities that use a Brazilian area code (DDD).
Parameters
dddstring required | Two-digit area code, such as 11. e.g. 11 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
cities | string[] |
state | string |
curl "https://api.hoshime.com/v1/brasilapi/ddd?ddd=11" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/ddd?ddd=11", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/ddd?ddd=11", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "cities": [ "EMBU", "VÁRZEA PAULISTA" ], "state": "SP" }, "meta": { "cached": false, "endpoint": "ddd", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
holidays
/v1/brasilapi/holidaysThe national holidays of Brazil in one year.
Parameters
yearinteger required | Year, from 1900 to 2100. e.g. 2024 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
date | string |
name | string |
type | string |
weekday | string |
curl "https://api.hoshime.com/v1/brasilapi/holidays?year=2024" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/holidays?year=2024", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/holidays?year=2024", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2024-01-01", "name": "Confraternização mundial", "type": "national", "weekday": "segunda-feira" }, { "date": "2024-02-12", "name": "Carnaval", "type": "national", "weekday": "segunda-feira" } ], "meta": { "cached": false, "endpoint": "holidays", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
cnpj
/v1/brasilapi/cnpjA Brazilian company registered with the Receita Federal by its CNPJ: name, status, activity, address, capital and size.
Parameters
cnpjstring required | CNPJ with 14 digits, such as 00000000000191. e.g. 00000000000191 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
19 fields
capitalStock | number (double) |
city | string |
cnpj | string |
complement | string |
email | string |
legalName | string |
legalNature | string |
mainActivity | string |
neighbourhood | string |
number | string |
partnersCount | integer (int64) |
secondaryActivities | string[] |
size | string |
startDate | string |
state | string |
status | string |
street | string |
tradeName | string |
zip | string |
curl "https://api.hoshime.com/v1/brasilapi/cnpj?cnpj=00000000000191" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/cnpj?cnpj=00000000000191", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/cnpj?cnpj=00000000000191", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "capitalStock": 120000000000, "city": "BRASILIA", "cnpj": "00000000000191", "complement": "ANDAR T I SL S101 A S1602 T II SL C101 A C1602 TIII SL N101 A N1602", "email": "", "legalName": "BANCO DO BRASIL SA", "legalNature": "Sociedade de Economia Mista", "mainActivity": "6422100 Bancos múltiplos, com carteira comercial", "neighbourhood": "ASA NORTE", "number": "SN", "partnersCount": 41, "secondaryActivities": [ "6499999 Outras atividades de serviços financeiros não especificadas anteriormente" ], "size": "DEMAIS", "startDate": "1966-08-01", "state": "DF", "status": "ATIVA", "street": "SAUN QUADRA 5 BLOCO B TORRE I, II, III", "tradeName": "DIRECAO GERAL", "zip": "70040912" }, "meta": { "cached": false, "endpoint": "cnpj", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
banks
/v1/brasilapi/banksEvery bank authorised in Brazil with its code, ISPB and full name.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
code | integer (int64) |
fullName | string |
ispb | string |
name | string |
curl "https://api.hoshime.com/v1/brasilapi/banks" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/banks", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/banks", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "code": 1, "fullName": "Banco do Brasil S.A.", "ispb": "00000000", "name": "BCO DO BRASIL S.A." }, { "code": 70, "fullName": "BRB - BANCO DE BRASILIA S.A.", "ispb": "00000208", "name": "BRB - BCO DE BRASILIA S.A." } ], "meta": { "cached": false, "endpoint": "banks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
ibgeStates
/v1/brasilapi/ibgeStatesThe 27 federative units of Brazil with their IBGE code, abbreviation, region and capital.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
abbreviation | string |
capital | string |
id | string |
name | string |
region | string |
curl "https://api.hoshime.com/v1/brasilapi/ibgeStates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/ibgeStates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/ibgeStates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "abbreviation": "RO", "capital": "Porto Velho", "id": "11", "name": "Rondônia", "region": "Norte" }, { "abbreviation": "AC", "capital": "Rio Branco", "id": "12", "name": "Acre", "region": "Norte" } ], "meta": { "cached": false, "endpoint": "ibgeStates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
interestRates
/v1/brasilapi/interestRatesThe current Brazilian reference rates in per cent: Selic, CDI and IPCA, as the Central Bank publishes them.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
name | string |
value | number (double) |
curl "https://api.hoshime.com/v1/brasilapi/interestRates" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/interestRates", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/interestRates", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "Selic", "value": 13.75 }, { "name": "CDI", "value": 13.65 } ], "meta": { "cached": false, "endpoint": "interestRates", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
fipeBrands
/v1/brasilapi/fipeBrandsThe vehicle brands in the FIPE price table for one vehicle type, with the FIPE code of each brand.
Parameters
vehicleTypestring | carros (cars), motos (motorcycles) or caminhoes (trucks).carrosmotoscaminhoesdefault carrose.g. carros |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
code | string |
name | string |
curl "https://api.hoshime.com/v1/brasilapi/fipeBrands?vehicleType=carros" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/fipeBrands?vehicleType=carros", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/fipeBrands?vehicleType=carros", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "code": "1", "name": "Acura" }, { "code": "2", "name": "Agrale" } ], "meta": { "cached": false, "endpoint": "fipeBrands", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
fipeModels
/v1/brasilapi/fipeModelsThe vehicle models of one brand in the FIPE price table, with the FIPE code of each model. Each model name carries its version and engine.
Parameters
vehicleTypestring | carros (cars), motos (motorcycles) or caminhoes (trucks).carrosmotoscaminhoesdefault carrose.g. carros |
brandinteger required | FIPE brand code from fipeBrands, such as 21 for Fiat. e.g. 21 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
code | string |
name | string |
curl "https://api.hoshime.com/v1/brasilapi/fipeModels?vehicleType=carros&brand=21" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/fipeModels?vehicleType=carros&brand=21", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/fipeModels?vehicleType=carros&brand=21", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "code": "…", "name": "…" } ], "meta": { "cached": false, "endpoint": "fipeModels", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
ncm
/v1/brasilapi/ncmOne Mercosur trade code (NCM) with its description and the dates it is valid.
Parameters
codestring required | NCM code with 8 digits, such as 01012100. e.g. 01012100 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
code | string |
description | string |
validFrom | string |
validTo | string |
curl "https://api.hoshime.com/v1/brasilapi/ncm?code=01012100" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/ncm?code=01012100", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/ncm?code=01012100", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "code": "0101.21.00", "description": "-- Reprodutores de raça pura", "validFrom": "2022-04-01", "validTo": "9999-12-31" }, "meta": { "cached": false, "endpoint": "ncm", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
isbn
/v1/brasilapi/isbnA book by its ISBN: title, authors, publisher and year, from the Brazilian ISBN agency and open catalogues.
Parameters
isbnstring required | ISBN with 10 or 13 digits, such as 9788535902778. e.g. 9788535902778 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
authors | string[] |
isbn | string |
publisher | string |
subtitle | string |
title | string |
year | string |
curl "https://api.hoshime.com/v1/brasilapi/isbn?isbn=9788535902778" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/isbn?isbn=9788535902778", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/isbn?isbn=9788535902778", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "authors": [], "isbn": "8535902775", "publisher": "Companhia das Letras", "subtitle": "", "title": "AS ILUSOES ARMADAS - A DITADURA ENVERGONHADA", "year": "" }, "meta": { "cached": false, "endpoint": "isbn", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
domain
/v1/brasilapi/domainThe registration status of a .br domain at Registro.br: whether it is taken, its name servers and expiry.
Parameters
domainstring required | Domain name ending in .br, such as google.com.br. e.g. google.com.br |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
domain | string |
expiresAt | string |
hosts | string[] |
status | string |
curl "https://api.hoshime.com/v1/brasilapi/domain?domain=google.com.br" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/domain?domain=google.com.br", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/domain?domain=google.com.br", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "domain": "google.com.br", "expiresAt": "2027-05-18T00:00:00-03:00", "hosts": [ "ns1.google.com", "ns2.google.com" ], "status": "REGISTERED" }, "meta": { "cached": false, "endpoint": "domain", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
weatherCities
/v1/brasilapi/weatherCitiesThe Brazilian cities the CPTEC weather service knows whose name matches the text, with the id to forecast them by.
Parameters
querystring required | Text in the city name, such as sao paulo. e.g. sao paulo |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
id | string |
name | string |
region | string |
state | string |
curl "https://api.hoshime.com/v1/brasilapi/weatherCities?query=sao+paulo" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/weatherCities?query=sao+paulo", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/weatherCities?query=sao+paulo", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "244", "name": "São Paulo", "region": "Sudeste", "state": "SP" }, { "id": "5019", "name": "São Paulo das Missões", "region": "Sul", "state": "RS" } ], "meta": { "cached": false, "endpoint": "weatherCities", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }
weatherForecast
/v1/brasilapi/weatherForecastThe daily weather forecast of one Brazilian city from CPTEC/INPE: condition, temperatures and UV index for each day.
Parameters
cityIdinteger required | CPTEC city id, such as 244 for São Paulo (see weatherCities). e.g. 244 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
city | string |
days | ForecastDay[] |
condition | string |
conditionText | string |
date | string |
maxCelsius | integer (int64) |
minCelsius | integer (int64) |
uvIndex | number (double) |
issuedDate | string |
state | string |
curl "https://api.hoshime.com/v1/brasilapi/weatherForecast?cityId=244" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/brasilapi/weatherForecast?cityId=244", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/brasilapi/weatherForecast?cityId=244", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "city": "São Paulo", "days": [ { "condition": "c", "conditionText": "Chuva", "date": "2026-11-06", "maxCelsius": 25, "minCelsius": 20, "uvIndex": 0 } ], "issuedDate": "2026-11-06", "state": "SP" }, "meta": { "cached": false, "endpoint": "weatherForecast", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "brasilapi", "requestId": "req_2Xb9kQ…", "units": 1 } }