OpenWeatherMap · Example Payload

Road Risk Example

WeatherForecastClimateAir PollutionAir QualitySolarGeocodingHistoryMapsRoad RiskPublic APIs

Road Risk 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": "postRoadRisk",
  "request": {
    "method": "POST",
    "url": "https://api.openweathermap.org/data/2.5/roadrisk?appid={API_KEY}",
    "headers": { "Content-Type": "application/json" },
    "body": {
      "track": [
        { "lat": 51.5074, "lon": -0.1278, "dt": 1748505600 },
        { "lat": 51.4543, "lon": -2.5879, "dt": 1748509200 }
      ]
    }
  },
  "response": [
    {
      "dt": 1748505600,
      "coord": [51.5074, -0.1278],
      "weather": {
        "temp": 287.5,
        "wind_speed": 4.2,
        "wind_deg": 215,
        "precipitation_intensity": 0.0,
        "dew_point": 281.9
      },
      "road": { "state": 0, "surface_temp": 289.1 },
      "alerts": []
    },
    {
      "dt": 1748509200,
      "coord": [51.4543, -2.5879],
      "weather": {
        "temp": 286.1,
        "wind_speed": 5.1,
        "wind_deg": 220,
        "precipitation_intensity": 0.4,
        "dew_point": 282.4
      },
      "road": { "state": 0, "surface_temp": 286.7 },
      "alerts": []
    }
  ]
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/road-risk-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.