Skip to content

BrasilAPI API

15 endpointsGovernment & Open DataBRsocial:read14 real examples

Returns Brazilian postal code addresses, banks, area codes, national holidays and company registry data by CNPJ.

View as Markdown
GET/brasilapi/cepThe address of a Brazilian postal code (CEP): state, city, neighbourhood, street and position.
GET/brasilapi/bankA bank authorised in Brazil, by its code, with its full name and ISPB.
GET/brasilapi/dddThe state and cities that use a Brazilian area code (DDD).
GET/brasilapi/holidaysThe national holidays of Brazil in one year.
GET/brasilapi/cnpjA Brazilian company registered with the Receita Federal by its CNPJ: name, status, activity, address, capital and size.
GET/brasilapi/banksEvery bank authorised in Brazil with its code, ISPB and full name.
GET/brasilapi/ibgeStatesThe 27 federative units of Brazil with their IBGE code, abbreviation, region and capital.
GET/brasilapi/interestRatesThe current Brazilian reference rates in per cent: Selic, CDI and IPCA, as the Central Bank publishes them.
GET/brasilapi/fipeBrandsThe vehicle brands in the FIPE price table for one vehicle type, with the FIPE code of each brand.
GET/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.
GET/brasilapi/ncmOne Mercosur trade code (NCM) with its description and the dates it is valid.
GET/brasilapi/isbnA book by its ISBN: title, authors, publisher and year, from the Brazilian ISBN agency and open catalogues.
GET/brasilapi/domainThe registration status of a .br domain at Registro.br: whether it is taken, its name servers and expiry.
GET/brasilapi/weatherCitiesThe Brazilian cities the CPTEC weather service knows whose name matches the text, with the id to forecast them by.
GET/brasilapi/weatherForecastThe daily weather forecast of one Brazilian city from CPTEC/INPE: condition, temperatures and UV index for each day.

cep

GET/v1/brasilapi/cep

The address of a Brazilian postal code (CEP): state, city, neighbourhood, street and position.

scope social:read1 unitcached 24 h

Parameters

cep
string
required
CEP with eight digits, such as 01001000.
e.g. 01001000
tunnel
string
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.
proxy
string
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.
profileId
string
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
cepstring
citystring
latitudenumber (double)
longitudenumber (double)
neighborhoodstring
statestring
streetstring
timezonestring
curl "https://api.hoshime.com/v1/brasilapi/cep?cep=01001000" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/bank

A bank authorised in Brazil, by its code, with its full name and ISPB.

scope social:read1 unitcached 24 h

Parameters

code
string
required
Bank code, such as 237 for Bradesco.
e.g. 237
tunnel
string
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.
proxy
string
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.
profileId
string
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
codeinteger (int64)
fullNamestring
ispbstring
namestring
curl "https://api.hoshime.com/v1/brasilapi/bank?code=237" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/ddd

The state and cities that use a Brazilian area code (DDD).

scope social:read1 unitcached 24 h

Parameters

ddd
string
required
Two-digit area code, such as 11.
e.g. 11
tunnel
string
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.
proxy
string
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.
profileId
string
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
citiesstring[]
statestring
curl "https://api.hoshime.com/v1/brasilapi/ddd?ddd=11" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/holidays

The national holidays of Brazil in one year.

scope social:read1 unitcached 24 hpaginated

Parameters

year
integer
required
Year, from 1900 to 2100.
e.g. 2024
tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
namestring
typestring
weekdaystring
curl "https://api.hoshime.com/v1/brasilapi/holidays?year=2024" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/cnpj

A Brazilian company registered with the Receita Federal by its CNPJ: name, status, activity, address, capital and size.

scope social:read1 unitcached 24 h

Parameters

cnpj
string
required
CNPJ with 14 digits, such as 00000000000191.
e.g. 00000000000191
tunnel
string
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.
proxy
string
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.
profileId
string
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
capitalStocknumber (double)
citystring
cnpjstring
complementstring
emailstring
legalNamestring
legalNaturestring
mainActivitystring
neighbourhoodstring
numberstring
partnersCountinteger (int64)
secondaryActivitiesstring[]
sizestring
startDatestring
statestring
statusstring
streetstring
tradeNamestring
zipstring
curl "https://api.hoshime.com/v1/brasilapi/cnpj?cnpj=00000000000191" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/banks

Every bank authorised in Brazil with its code, ISPB and full name.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
codeinteger (int64)
fullNamestring
ispbstring
namestring
curl "https://api.hoshime.com/v1/brasilapi/banks" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/ibgeStates

The 27 federative units of Brazil with their IBGE code, abbreviation, region and capital.

scope social:read1 unitcached 24 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
abbreviationstring
capitalstring
idstring
namestring
regionstring
curl "https://api.hoshime.com/v1/brasilapi/ibgeStates" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/interestRates

The current Brazilian reference rates in per cent: Selic, CDI and IPCA, as the Central Bank publishes them.

scope social:read1 unitcached 1 hpaginated

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
namestring
valuenumber (double)
curl "https://api.hoshime.com/v1/brasilapi/interestRates" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/fipeBrands

The vehicle brands in the FIPE price table for one vehicle type, with the FIPE code of each brand.

scope social:read1 unitcached 24 hpaginated

Parameters

vehicleType
string
carros (cars), motos (motorcycles) or caminhoes (trucks).
carrosmotoscaminhoes
default carrose.g. carros
tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
namestring
curl "https://api.hoshime.com/v1/brasilapi/fipeBrands?vehicleType=carros" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/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.

scope social:read1 unitcached 24 hpaginated

Parameters

vehicleType
string
carros (cars), motos (motorcycles) or caminhoes (trucks).
carrosmotoscaminhoes
default carrose.g. carros
brand
integer
required
FIPE brand code from fipeBrands, such as 21 for Fiat.
e.g. 21
tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
namestring
curl "https://api.hoshime.com/v1/brasilapi/fipeModels?vehicleType=carros&brand=21" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/brasilapi/ncm

One Mercosur trade code (NCM) with its description and the dates it is valid.

scope social:read1 unitcached 24 h

Parameters

code
string
required
NCM code with 8 digits, such as 01012100.
e.g. 01012100
tunnel
string
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.
proxy
string
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.
profileId
string
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
codestring
descriptionstring
validFromstring
validTostring
curl "https://api.hoshime.com/v1/brasilapi/ncm?code=01012100" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/isbn

A book by its ISBN: title, authors, publisher and year, from the Brazilian ISBN agency and open catalogues.

scope social:read1 unitcached 168 h

Parameters

isbn
string
required
ISBN with 10 or 13 digits, such as 9788535902778.
e.g. 9788535902778
tunnel
string
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.
proxy
string
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.
profileId
string
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
authorsstring[]
isbnstring
publisherstring
subtitlestring
titlestring
yearstring
curl "https://api.hoshime.com/v1/brasilapi/isbn?isbn=9788535902778" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/domain

The registration status of a .br domain at Registro.br: whether it is taken, its name servers and expiry.

scope social:read1 unitcached 1 h

Parameters

domain
string
required
Domain name ending in .br, such as google.com.br.
e.g. google.com.br
tunnel
string
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.
proxy
string
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.
profileId
string
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
domainstring
expiresAtstring
hostsstring[]
statusstring
curl "https://api.hoshime.com/v1/brasilapi/domain?domain=google.com.br" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/weatherCities

The Brazilian cities the CPTEC weather service knows whose name matches the text, with the id to forecast them by.

scope social:read1 unitcached 24 hpaginated

Parameters

query
string
required
Text in the city name, such as sao paulo.
e.g. sao paulo
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
namestring
regionstring
statestring
curl "https://api.hoshime.com/v1/brasilapi/weatherCities?query=sao+paulo" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/brasilapi/weatherForecast

The daily weather forecast of one Brazilian city from CPTEC/INPE: condition, temperatures and UV index for each day.

scope social:read1 unitcached 1 h

Parameters

cityId
integer
required
CPTEC city id, such as 244 for São Paulo (see weatherCities).
e.g. 244
tunnel
string
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.
proxy
string
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.
profileId
string
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
citystring
daysForecastDay[]
conditionstring
conditionTextstring
datestring
maxCelsiusinteger (int64)
minCelsiusinteger (int64)
uvIndexnumber (double)
issuedDatestring
statestring
curl "https://api.hoshime.com/v1/brasilapi/weatherForecast?cityId=244" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open