Weather API: current weather and 48-hour forecast by city

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

Current weather by city name, or by latitude and longitude, for any place on Earth: temperature in Celsius, conditions (clear, cloudy, rain, snow), precipitation in mm, wind, humidity, cloud cover and air pressure, plus an hourly forecast for up to 48 hours. Data from the Norwegian Meteorological Institute; city names resolve via Wikidata. Use for travel and event planning, logistics, agriculture and any agent that needs the weather.

When to use it

Guide: Weather forecast API

Run it free (3 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 Lisbon (used when lat and lon are not given; with no place at all the answer is…

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

Inputs

NameTypeDescription
citystringCity or place name, e.g. London or Lisbon (used when lat and lon are not given; with no place at all the answer is for London)
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://glyphcall.com/weather?city=London"

Or one of your 3 free calls, no key:

curl "https://glyphcall.com/weather?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.

Live result

The real answer to the request above, read 2026-11-15 18:48 UTC and refreshed every 15 minutes.

{
  "place": "London",
  "latitude": 51.5074,
  "longitude": -0.1278,
  "elevationM": 8,
  "current": {
    "time": "2026-11-15T18:00:00Z",
    "temperatureC": 8.3,
    "conditions": "fair_night",
    "precipitationMm": 0,
    "windSpeedMs": 4.1,
    "windFromDegrees": 225.2,
    "humidityPercent": 94.5,
    "cloudCoverPercent": 34.4,
    "pressureHpa": 994.9
  },
  "forecast": [
    {
      "time": "2026-11-15T19:00:00Z",
      "temperatureC": 8,
      "conditions": "partlycloudy_night",
      "precipitationMm": 0,
      "windSpeedMs": 4,
      "windFromDegrees": 231.6,
      "humidityPercent": 94.4,
      "cloudCoverPercent": 80.5,
      "pressureHpa": 995.1
    },
    {
      "time": "2026-11-15T20:00:00Z",
      "temperatureC": 7.9,
      "conditions": "rain",
      "precipitationMm": 0.5,
      "windSpeedMs": 4,
      "windFromDegrees": 252.1,
      "humidityPercent": 95.2,
      "cloudCoverPercent": 100,
      "pressureHpa": 995.8
    },
    {
      "time": "2026-11-15T21:00:00Z",
      "temperatureC": 7.8,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 4.2,
      "windFromDegrees": 269.2,
      "humidityPercent": 96.6,
      "cloudCoverPercent": 100,
      "pressureHpa": 996.5
    },
    {
      "time": "2026-11-15T22:00:00Z",
      "temperatureC": 7.4,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 4.2,
      "windFromDegrees": 288.5,
      "humidityPercent": 96.5,
      "cloudCoverPercent": 96.9,
      "pressureHpa": 997.3
    },
    {
      "time": "2026-11-15T23:00:00Z",
      "temperatureC": 7,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 3.9,
      "windFromDegrees": 284.2,
      "humidityPercent": 96.1,
      "cloudCoverPercent": 100,
      "pressureHpa": 997.9
    },
    {
      "time": "2026-11-16T00:00:00Z",
      "temperatureC": 6.7,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 4.5,
      "windFromDegrees": 281.2,
      "humidityPercent": 94.9,
      "cloudCoverPercent": 99.2,
      "pressureHpa": 999
    },
    {
      "time": "2026-11-16T01:00:00Z",
      "temperatureC": 6.6,
      "conditions": "partlycloudy_night",
      "precipitationMm": 0,
      "windSpeedMs": 4.8,
      "windFromDegrees": 286.3,
      "humidityPercent": 93.4,
      "cloudCoverPercent": 71.9,
      "pressureHpa": 1000.1
    },
    {
      "time": "2026-11-16T02:00:00Z",
      "temperatureC": 6.2,
      "conditions": "partlycloudy_night",
      "precipitationMm": 0,
      "windSpeedMs": 4.7,
      "windFromDegrees": 284.5,
      "humidityPercent": 90.7,
      "cloudCoverPercent": 60.2,
      "pressureHpa": 1001.2
    },
    {
      "time": "2026-11-16T03:00:00Z",
      "temperatureC": 5.9,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 4.9,
      "windFromDegrees": 280.7,
      "humidityPercent": 89.9,
      "cloudCoverPercent": 100,
      "pressureHpa": 1002.3
    },
    {
      "time": "2026-11-16T04:00:00Z",
      "temperatureC": 6,
      "conditions": "cloudy",
      "precipitationMm": 0,
      "windSpeedMs": 4.9,
      "windFromDegrees": 283.9,
      "humidityPercent": 88.2,
      "cloudCoverPercent": 100,
      "pressureHpa": 1003
    },
    {
      "time": "2026-11-16T05:00:00Z",
      "temperatureC": 5.7,
      "conditions": "partlycloudy_night",
      "precipitationMm": 0,
      "windSpeedMs": 4.6,
      "windFromDegrees": 290.4,
      "humidityPercent": 86.8,
      "cloudCoverPercent": 51.6,
      "pressureHpa": 1003.9
    },
    {
      "time": "2026-11-16T06:00:00Z",
      "temperatureC": 4.8,
      "conditions": "clearsky_night",
      "precipitationMm": 0,
      "windSpeedMs": 4.4,
      "windFromDegrees": 281.5,
      "humidityPercent": 85.8,
      "cloudCoverPercent": 7,
      "pressureHpa": 1005.1
    }
  ],
  "forecastUpdatedAt": "2026-11-15T17:19:15Z",
  "source": "MET Norway (api.met.no), licensed CC BY 4.0",
  "checkedAt": "2026-11-15T18:48:07.452Z"
}

From an AI agent (MCP)

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

https://glyphcall.com/mcp

Questions

Where does the forecast come from?

The Norwegian Meteorological Institute (MET Norway); city names resolve via Wikidata.

Can I use coordinates instead of a city?

Yes, pass lat and lon instead of city.

How do I pay?

Each successful call costs $0.002; failed calls are not charged. The first 3 calls are free (25 through an MCP client). Then pay with card credits (from $1; the key goes in an Authorization header or, for clients that can only fetch a URL, as api_key= in the URL) or per call in USDC over x402 or MPP. No account is needed.

Related tools