OpenWeatherMap · Example Payload

Geocoding Direct Example

WeatherForecastClimateAir PollutionAir QualitySolarGeocodingHistoryMapsRoad RiskPublic APIs

Geocoding Direct Example is an example object payload from OpenWeatherMap, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationrequestresponse

Example Payload

Raw ↑
{
  "operation": "getDirectGeocoding",
  "request": {
    "method": "GET",
    "url": "https://api.openweathermap.org/geo/1.0/direct?q=London,UK&limit=1&appid={API_KEY}"
  },
  "response": [
    {
      "name": "London",
      "local_names": {
        "en": "London",
        "fr": "Londres",
        "es": "Londres",
        "de": "London"
      },
      "lat": 51.5073219,
      "lon": -0.1276474,
      "country": "GB",
      "state": "England"
    }
  ]
}