Discover/openweathermap.org API
live

openweathermap.org APIopenweathermap.org

Get current weather, minutely precipitation, 48-hour hourly forecasts, and 8-day daily forecasts for any global location via the OpenWeatherMap API.

Endpoints
3
Updated
14d ago
Try it
Maximum number of results to return
City name or search query (e.g., 'London', 'Paris, FR')
api.parse.bot/scraper/98c25339-1e3f-49c0-8192-b1448748f87d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/98c25339-1e3f-49c0-8192-b1448748f87d/search_city?limit=3&query=London' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for cities by name and return their coordinates and country details. Returns an array of matching city objects with name, latitude, longitude, country code, state, and local name translations.

Input
ParamTypeDescription
limitintegerMaximum number of results to return
queryrequiredstringCity name or search query (e.g., 'London', 'Paris, FR')
Response
{
  "type": "object",
  "fields": {
    "data": "array of city objects each containing name, lat, lon, country, state, and local_names",
    "status": "string indicating success"
  },
  "sample": {
    "data": [
      {
        "lat": 51.5073219,
        "lon": -0.1276474,
        "name": "London",
        "state": "England",
        "country": "GB",
        "local_names": {
          "en": "London",
          "fr": "Londres"
        }
      }
    ],
    "status": "success"
  }
}

About the openweathermap.org API

The OpenWeatherMap API exposes 3 endpoints covering city search, coordinate-based weather retrieval, and single-call city-to-weather lookups. The get_weather endpoint returns a full weather object with current conditions, minutely precipitation (60 minutes), 48-hour hourly forecasts, and an 8-day daily forecast — all indexed by latitude and longitude. An optional extended hourly mode stretches hourly coverage out to 16 days.

City Search and Geocoding

The search_city endpoint accepts a query string — a city name or a formatted query like 'Paris, FR' — and returns an array of matching city objects. Each object includes name, lat, lon, country, state, and a local_names map with translated city names. The optional limit parameter controls how many results come back. This is the standard way to resolve a human-readable city name into coordinates before calling the weather endpoints.

Coordinate-Based Weather Data

The get_weather endpoint takes lat and lon as required inputs and returns a structured data object keyed with current, minutely, hourly, and daily arrays, plus timezone and timezone_offset. The current block includes real-time conditions. The minutely array provides 60 minutes of precipitation volume. hourly covers 48 hours, and daily covers 8 days. Setting extended_hourly to true adds an extended_hourly field with coverage up to 16 days. The units parameter accepts metric or imperial to control temperature and speed formatting.

City-Name Weather in One Call

The get_weather_by_city endpoint combines city search and weather retrieval into a single request. Pass a query string, and the response returns the full weather data object plus a location field containing the matched city's name, coordinates, and country. It always uses the first match from the search, so ambiguous city names should be qualified (e.g., 'Springfield, US') when precision matters.

Common use cases
  • Display current temperature and conditions for any city using get_weather_by_city with the units parameter set to match user locale.
  • Build a precipitation alert system using the minutely array from get_weather to track rain volume over the next 60 minutes.
  • Render a multi-day forecast UI using the daily array (8 days) returned by get_weather.
  • Power a city autocomplete search field using search_city with the limit parameter to cap suggestions.
  • Populate route weather overlays by calling get_weather with multiple coordinate pairs along a travel path.
  • Generate a 16-day extended hourly outlook for agriculture or event planning using the extended_hourly option on get_weather.
  • Resolve ambiguous city names to verified coordinates via search_city before storing them for repeated weather lookups.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does OpenWeatherMap have an official developer API?+
Yes. OpenWeatherMap publishes an official API at https://openweathermap.org/api. It requires registration and a personal API key, and access to some forecast tiers depends on subscription level.
What does the `get_weather` endpoint include in the `current` block versus the `daily` array?+
The current block reflects real-time conditions at the queried coordinates. The daily array contains 8 day-level forecast objects. Both are returned in the same response, alongside the minutely precipitation array (60 data points) and the hourly array (48 hours).
How does city matching work in `get_weather_by_city` when multiple cities share the same name?+
The endpoint uses the first result returned by the city search. For common names like 'Springfield' or 'Richmond', that may not be the intended city. Qualifying the query with a country code — for example, 'Birmingham, GB' — improves match accuracy.
Does the API return historical weather data or air quality information?+
Not currently. The API covers current conditions, minutely precipitation, 48-hour hourly forecasts, and 8-day daily forecasts. Historical data and air quality indices are not part of any of the three endpoints. You can fork this API on Parse and revise it to add endpoints that cover those data types.
Are weather alerts or severe weather warnings included in the response?+
Not currently. The get_weather and get_weather_by_city responses include current, minutely, hourly, and daily fields but do not include a weather alerts array. You can fork this API on Parse and revise it to surface alert data if the source exposes it for your target region.
Page content last updated . Spec covers 3 endpoints from openweathermap.org.
Related APIs in WeatherSee all →
sentinel-hub.com API
Access satellite imagery from around the world and retrieve spectral band data, timestamps, and geographic coverage information to analyze Earth observation data. Process and generate statistics from satellite images for your specific areas of interest using powerful image processing tools.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
weatherspark.com API
Get historical weather data, current METAR reports, and monthly climate summaries for any location by searching WeatherSpark's comprehensive weather database. Access detailed weather insights including temperature trends, precipitation patterns, and atmospheric conditions to power weather-dependent applications and analysis.
breckenridge.com API
Check real-time snow conditions, weather forecasts, lift operations, and trail status at Breckenridge Ski Resort to plan your day on the mountain. View live mountain cameras and get up-to-the-minute updates on slopes, lifts, and weather before you head out.
surfline.com API
Check real-time surf conditions, forecasts for waves and wind, tide predictions, and live camera feeds from thousands of surf spots around the world. Browse spots by geographic region and access detailed weather data to plan your perfect surfing session.
ingres.iith.ac.in API
Access groundwater resource estimation data across India at multiple geographic levels—from national summaries down to block-level details—and search specific locations to track groundwater availability and assessment trends. View historical assessment years and generate reports to analyze groundwater resources by state, district, or region.
zoom.earth API
Search Zoom Earth for places and get live environmental data including weather forecasts by coordinates, satellite imagery timestamps, active tropical storm tracks, active fires, and current platform status.
energy-charts.de API
Monitor real-time electricity prices, production data, and market forecasts across Germany and Europe to track energy costs and grid conditions. Access day-ahead and intraday pricing, power generation forecasts, cross-border trading flows, and traffic signal alerts for comprehensive energy market insights.