旅
wttr.in API
5 endpointsTravel, Maps & WeatherGlobalsocial:read4 real examples
Returns current weather, three-day forecast, astronomy times and the nearest named area for a city.
View as Markdown| GET | /wttr/current | The current weather of a city: temperature, wind, humidity and conditions. |
| GET | /wttr/forecast | The daily forecast of a city for the next three days. |
| GET | /wttr/hourly | The forecast of a city every three hours for the next one to three days: temperature, rain chance, wind and conditions. |
| GET | /wttr/astronomy | Sunrise, sunset, moonrise, moonset and moon phase of a city for the next three days. |
| GET | /wttr/area | The nearest named area wttr.in uses for a city: its coordinates, region and country. |
current
GET
/v1/wttr/currentThe current weather of a city: temperature, wind, humidity and conditions.
scope social:read1 unitcached 15 min
Parameters
citystring required | Place name, such as Jakarta or New York. e.g. Jakarta |
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
18 fields
area | Area |
country | string |
latitude | number (double) |
longitude | number (double) |
name | string |
region | string |
cloudCoverPct | integer (int64) |
description | string |
feelsLikeCelsius | integer (int64) |
humidityPct | integer (int64) |
observationTime | string |
precipitationMm | number (double) |
pressureHpa | integer (int64) |
temperatureCelsius | integer (int64) |
uvIndex | integer (int64) |
visibilityKm | number (double) |
windDirection | string |
windKmph | integer (int64) |
curl "https://api.hoshime.com/v1/wttr/current?city=Jakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wttr/current?city=Jakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wttr/current?city=Jakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "area": { "country": "Indonesia", "latitude": -6.182, "longitude": 106.822, "name": "Jakarta Pusat", "region": "Jakarta Raya" }, "cloudCoverPct": 89, "description": "Patchy rain nearby", "feelsLikeCelsius": 30, "humidityPct": 83, "observationTime": "05:09 PM", "precipitationMm": 0.2, "pressureHpa": 1011, "temperatureCelsius": 26, "uvIndex": 0, "visibilityKm": 9, "windDirection": "SE", "windKmph": 4 }, "meta": { "cached": false, "endpoint": "current", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wttr", "requestId": "req_2Xb9kQ…", "units": 1 } }
forecast
GET
/v1/wttr/forecastThe daily forecast of a city for the next three days.
scope social:read1 unitcached 2 h
Parameters
citystring required | Place name, such as Jakarta or New York. e.g. Jakarta |
daysinteger | Number of days, from 1 to 3. default 3 |
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
14 fields
area | Area |
country | string |
latitude | number (double) |
longitude | number (double) |
name | string |
region | string |
items | Day[] |
avgTempCelsius | integer (int64) |
date | string |
description | string |
maxTempCelsius | integer (int64) |
minTempCelsius | integer (int64) |
sunrise | string |
sunset | string |
curl "https://api.hoshime.com/v1/wttr/forecast?city=Jakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wttr/forecast?city=Jakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wttr/forecast?city=Jakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "area": { "country": "Indonesia", "latitude": -6.182, "longitude": 106.822, "name": "Jakarta Pusat", "region": "Jakarta Raya" }, "items": [ { "avgTempCelsius": 30, "date": "2026-11-07", "description": "Smoky haze", "maxTempCelsius": 34, "minTempCelsius": 26, "sunrise": "05:26 AM", "sunset": "05:47 PM" }, { "avgTempCelsius": 30, "date": "2026-11-08", "description": "Smoky haze", "maxTempCelsius": 34, "minTempCelsius": 26, "sunrise": "05:26 AM", "sunset": "05:48 PM" } ] }, "meta": { "cached": false, "endpoint": "forecast", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wttr", "requestId": "req_2Xb9kQ…", "units": 1 } }
hourly
GET
/v1/wttr/hourlyThe forecast of a city every three hours for the next one to three days: temperature, rain chance, wind and conditions.
scope social:read1 unitcached 2 hpaginated
Parameters
citystring required | Place name, such as Jakarta or New York. e.g. Jakarta |
daysinteger | Number of days, from 1 to 3. Each day has eight three-hour slots. default 1 |
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
chanceOfRainPct | integer (int64) |
date | string |
description | string |
feelsLikeCelsius | integer (int64) |
temperatureCelsius | integer (int64) |
time | string |
windDirection | string |
windKmph | integer (int64) |
curl "https://api.hoshime.com/v1/wttr/hourly?city=Jakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wttr/hourly?city=Jakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wttr/hourly?city=Jakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "chanceOfRainPct": 0, "date": "…", "description": "…", "feelsLikeCelsius": 0, "temperatureCelsius": 0, "time": "…", "windDirection": "…", "windKmph": 0 } ], "meta": { "cached": false, "endpoint": "hourly", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wttr", "requestId": "req_2Xb9kQ…", "units": 1 } }
astronomy
GET
/v1/wttr/astronomySunrise, sunset, moonrise, moonset and moon phase of a city for the next three days.
scope social:read1 unitcached 2 hpaginated
Parameters
citystring required | Place name, such as Jakarta or New York. e.g. Jakarta |
daysinteger | Number of days, from 1 to 3. default 3 |
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
7 fields
date | string |
moonIlluminationPct | integer (int64) |
moonPhase | string |
moonrise | string |
moonset | string |
sunrise | string |
sunset | string |
curl "https://api.hoshime.com/v1/wttr/astronomy?city=Jakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wttr/astronomy?city=Jakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wttr/astronomy?city=Jakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "date": "2026-11-07", "moonIlluminationPct": 5, "moonPhase": "Waning Crescent", "moonrise": "03:38 AM", "moonset": "04:09 PM", "sunrise": "05:26 AM", "sunset": "05:47 PM" }, { "date": "2026-11-08", "moonIlluminationPct": 2, "moonPhase": "Waning Crescent", "moonrise": "04:20 AM", "moonset": "04:58 PM", "sunrise": "05:26 AM", "sunset": "05:48 PM" } ], "meta": { "cached": false, "endpoint": "astronomy", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "wttr", "requestId": "req_2Xb9kQ…", "units": 1 } }
area
GET
/v1/wttr/areaThe nearest named area wttr.in uses for a city: its coordinates, region and country.
scope social:read1 unitcached 24 h
Parameters
citystring required | Place name, such as Jakarta or New York. e.g. Jakarta |
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
country | string |
latitude | number (double) |
longitude | number (double) |
name | string |
region | string |
curl "https://api.hoshime.com/v1/wttr/area?city=Jakarta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/wttr/area?city=Jakarta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/wttr/area?city=Jakarta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "country": "Indonesia", "latitude": -6.182, "longitude": 106.822, "name": "Jakarta Pusat", "region": "Jakarta Raya" }, "meta": { "cached": false, "endpoint": "area", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "wttr", "requestId": "req_2Xb9kQ…", "units": 1 } }