Weather forecast by city: current weather and hourly forecast for any city or coordinates

$0.002 per call · failed calls are never charged · no account or subscription: pay per call with a card key or USDC

Weather forecast by city name or coordinates: current temperature, conditions, precipitation, wind, humidity, cloud cover and pressure, plus an hourly forecast up to 48 hours ahead, for any city on Earth (MET Norway data). Give a city such as London or Tokyo, or lat and lon. Use when an agent needs today's weather or tomorrow's forecast for travel, events, logistics or a daily brief.

Run it free (25 free calls) Buy credits by card (from $1) Example result (JSON)

Try it with your own inputs

City or place name, e.g. London or Tokyo (used when lat and lon are not given)

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
citystringCity or place name, e.g. London or Tokyo (used when lat and lon are not given)
latnumberLatitude in decimal degrees, -90 to 90 (with lon, instead of city)
lonnumberLongitude in decimal degrees, -180 to 180 (with lat, instead of city)
hoursintegerHours of hourly forecast to return, 1-48 (default 12; 48 covers tomorrow)

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/weather/forecast?city=London"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/weather/forecast?city=London&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "latitude": 59.33,
  "longitude": 18.07,
  "elevationM": 23,
  "current": {
    "time": "2026-10-13T09:00:00Z",
    "temperatureC": 7.5,
    "conditions": "cloudy",
    "precipitationMm": 0,
    "windSpeedMs": 1.1,
    "windFromDegrees": 317,
    "humidityPercent": 85.9,
    "cloudCoverPercent": 94.6,
    "pressureHpa": 1024.2
  },
  "forecast": [
    {
      "time": "2026-10-13T10:00:00Z",
      "temperatureC": 8.5,
      "conditions": "partlycloudy_day",
      "precipitationMm": 0,
      "windSpeedMs": 1.2,
      "windFromDegrees": 335,
      "humidityPercent": 83.9,
      "cloudCoverPercent": 73,
      "pressureHpa": 1023.8
    }
  ],
  "forecastUpdatedAt": "2026-10-13T08:30:57Z",
  "source": "MET Norway (api.met.no), licensed CC BY 4.0",
  "checkedAt": "2026-10-13T09:12:00.000Z"
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is weather_forecast, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools