Overview

Weatherbit is a professional-grade weather API offering current observations, hourly and daily forecasts, historical weather, and severe weather alerts sourced from global meteorological stations. It provides data for any location worldwide and supports both coordinates and city name lookups. Beginners can access the free tier which allows up to 500 calls per day and covers current weather and 16-day daily forecasts.

Beginner Tip

Sign up at weatherbit.io for a free API key. Use the units=M parameter for metric (Celsius, m/s) or units=I for imperial (Fahrenheit, mph) output to avoid manual unit conversion.

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

temperature
weather conditions
humidity
wind speed
forecast data
Use case: Integrate weather data into web and mobile applications

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "location": "Tokyo",
  "temperature": {
    "current": 22,
    "feels_like": 24,
    "min": 18,
    "max": 26
  },
  "condition": "Partly Cloudy",
  "humidity": 65,
  "wind": {
    "speed": 12,
    "direction": "NE"
  },
  "forecast": [
    {
      "date": "2025-01-16",
      "high": 25,
      "low": 17,
      "condition": "Sunny"
    }
  ]
}

Field Reference

data[0].temp Current air temperature in the unit specified (Celsius for M, Fahrenheit for I)
data[0].rh Relative humidity as a percentage
data[0].weather.description Textual description of the current weather condition
data[0].wind_spd Wind speed in meters per second (or mph for imperial units)
data[0].aqi Air Quality Index value for the location
data[0].ob_time Observation time in YYYY-MM-DD HH:MM format UTC

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.weatherbit.io/v2.0/current?city=Raleigh,NC&country=US&key=YOUR_API_KEY&units=M";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

403 Forbidden API key is invalid or not included in the request
Verify your key at weatherbit.io and pass it as key=YOUR_API_KEY in the query string
No data returned for city City name is ambiguous or not found in the database
Pair city with a country code like city=London&country=GB or use lat/lon coordinates for precision
Forecast endpoint returns 403 Historical or forecast endpoints require a paid plan
The free tier only covers current weather; upgrade for hourly forecasts and historical data access

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Weather
Difficulty Intermediate
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →