Skip to content

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/currentThe current weather of a city: temperature, wind, humidity and conditions.
GET/wttr/forecastThe daily forecast of a city for the next three days.
GET/wttr/hourlyThe forecast of a city every three hours for the next one to three days: temperature, rain chance, wind and conditions.
GET/wttr/astronomySunrise, sunset, moonrise, moonset and moon phase of a city for the next three days.
GET/wttr/areaThe nearest named area wttr.in uses for a city: its coordinates, region and country.

current

GET/v1/wttr/current

The current weather of a city: temperature, wind, humidity and conditions.

scope social:read1 unitcached 15 min

Parameters

city
string
required
Place name, such as Jakarta or New York.
e.g. Jakarta
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

18 fields
areaArea
countrystring
latitudenumber (double)
longitudenumber (double)
namestring
regionstring
cloudCoverPctinteger (int64)
descriptionstring
feelsLikeCelsiusinteger (int64)
humidityPctinteger (int64)
observationTimestring
precipitationMmnumber (double)
pressureHpainteger (int64)
temperatureCelsiusinteger (int64)
uvIndexinteger (int64)
visibilityKmnumber (double)
windDirectionstring
windKmphinteger (int64)
curl "https://api.hoshime.com/v1/wttr/current?city=Jakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/forecast

The daily forecast of a city for the next three days.

scope social:read1 unitcached 2 h

Parameters

city
string
required
Place name, such as Jakarta or New York.
e.g. Jakarta
days
integer
Number of days, from 1 to 3.
default 3
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

14 fields
areaArea
countrystring
latitudenumber (double)
longitudenumber (double)
namestring
regionstring
itemsDay[]
avgTempCelsiusinteger (int64)
datestring
descriptionstring
maxTempCelsiusinteger (int64)
minTempCelsiusinteger (int64)
sunrisestring
sunsetstring
curl "https://api.hoshime.com/v1/wttr/forecast?city=Jakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/hourly

The 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

city
string
required
Place name, such as Jakarta or New York.
e.g. Jakarta
days
integer
Number of days, from 1 to 3. Each day has eight three-hour slots.
default 1
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
chanceOfRainPctinteger (int64)
datestring
descriptionstring
feelsLikeCelsiusinteger (int64)
temperatureCelsiusinteger (int64)
timestring
windDirectionstring
windKmphinteger (int64)
curl "https://api.hoshime.com/v1/wttr/hourly?city=Jakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/astronomy

Sunrise, sunset, moonrise, moonset and moon phase of a city for the next three days.

scope social:read1 unitcached 2 hpaginated

Parameters

city
string
required
Place name, such as Jakarta or New York.
e.g. Jakarta
days
integer
Number of days, from 1 to 3.
default 3
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

7 fields
datestring
moonIlluminationPctinteger (int64)
moonPhasestring
moonrisestring
moonsetstring
sunrisestring
sunsetstring
curl "https://api.hoshime.com/v1/wttr/astronomy?city=Jakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/area

The nearest named area wttr.in uses for a city: its coordinates, region and country.

scope social:read1 unitcached 24 h

Parameters

city
string
required
Place name, such as Jakarta or New York.
e.g. Jakarta
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
countrystring
latitudenumber (double)
longitudenumber (double)
namestring
regionstring
curl "https://api.hoshime.com/v1/wttr/area?city=Jakarta" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open