Weather API logo
DataMAINTAINED10 tokens / call

Weather API

Current conditions, 48-hour hourly and 9-day daily forecasts for any coordinates, metric or imperial

Current conditions, hourly forecasts up to 48 hours and daily summaries up to 9 days for any coordinates worldwide — temperature, humidity, wind, pressure, cloud cover, precipitation and condition codes with plain-English text and day/night flags. Choose metric or imperial units and a UTC offset so daily summaries follow the local calendar day. Powered by MET Norway's global forecast model (CC BY 4.0), cached per location until the forecast expires.

Every call needs an X-Api-Key header. A free key includes 500 tokens a month, no card required. 10 tokens per call, so the free plan covers about 50 calls a month.

No credit card requiredAccess to 125+ APIsCancel anytime
response.json
{
  "query": "GET /v1/weather?lat=40.71&lon=-74.0",
  "current": {
    "temperature_c": 22.5,
    "wind_speed_ms": 2.3,
    "condition_text": "Clear sky"
  },
  "daily": [
    {
      "date": "2026-09-12",
      "temp_min_c": 17.1,
      "temp_max_c": 26,
      "condition_text": "Cloudy"
    },
    {
      "date": "2026-09-13",
      "temp_min_c": 21.9,
      "temp_max_c": 27,
      "condition_text": "Rain showers"
    }
  ],
  "coverage": "worldwide, 48h hourly + 9-day daily, metric/imperial"
}
Production Ready
Battle-tested infrastructure with a 99.9% uptime SLA. Rate limits are generous, responses are consistent.
Simple Integration
Standard REST + JSON. Works with any HTTP client. Copy-ready code snippets in 4 languages.
One Key, 125+ APIs
Your DataAndAPIs subscription unlocks every API on the platform — anime, finance, sports, and more.

Use cases for Weather API

  • Show today's conditions and a week ahead on a travel, events or outdoor-activity page for any location.

  • Schedule deliveries, field work or crop operations around hourly precipitation and wind forecasts.

  • Add a weather widget to a dashboard with plain-English condition text and day-or-night icons.

  • Group forecasts by the user's local calendar day using the UTC offset parameter, so 'tomorrow' means tomorrow.

Weather API endpoints

Every endpoint with its parameters and a real example response.

GETData Sources

https://api-weather.dataandapis.com/v1/sources

This endpoint takes no parameters.

Example request

curl "https://api-weather.dataandapis.com/v1/sources" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "sources": [
    {
      "slug": "met-norway-locationforecast",
      "name": "MET Norway (api.met.no)",
      "url": "https://api.met.no/weatherapi/locationforecast/2.0/compact",
      "license": "CC BY 4.0",
      "license_url": "https://creativecommons.org/licenses/by/4.0/",
      "cadence": "model runs every ~1-6h; edge-cached per location until MET's Expires header"
    }
  ]
}

GETGet Forecast

https://api-weather.dataandapis.com/v1/weather

Query parameters

ParameterExample
days3Optional
hours2Optional
lat40.71Required
lon-74.0Required
unitsmetricOptional
utc_offset-4Optional

Example request

curl "https://api-weather.dataandapis.com/v1/weather?days=3&hours=2&lat=40.71&lon=-74.0&units=metric&utc_offset=-4" \
  -H "X-Api-Key: YOUR_API_KEY"
Example response
{
  "ok": true,
  "latitude": 40.71,
  "longitude": -74,
  "units": "metric",
  "utc_offset_hours": -4,
  "updated_at": "2026-09-12T01:23:45Z",
  "expires_at": "2026-09-12T02:18:32.000Z",
  "current": {
    "time": "2026-09-12T01:00:00Z",
    "temperature_c": 22.5,
    "humidity_pct": 49.9,
    "wind_speed_ms": 2.3,
    "wind_direction_deg": 314.9,
    "pressure_hpa": 1015.9,
    "cloud_cover_pct": 0,
    "precipitation_mm": 0,
    "condition": "clearsky_night",
    "condition_text": "Clear sky",
    "is_day": false
  },
  "source": "MET Norway (api.met.no)",
  "license": "CC BY 4.0",
  "license_url": "https://creativecommons.org/licenses/by/4.0/",
  "hourly": [
    {
      "time": "2026-09-12T01:00:00Z",
      "temperature_c": 22.5,
…
Show full response
{
  "ok": true,
  "latitude": 40.71,
  "longitude": -74,
  "units": "metric",
  "utc_offset_hours": -4,
  "updated_at": "2026-09-12T01:23:45Z",
  "expires_at": "2026-09-12T02:18:32.000Z",
  "current": {
    "time": "2026-09-12T01:00:00Z",
    "temperature_c": 22.5,
    "humidity_pct": 49.9,
    "wind_speed_ms": 2.3,
    "wind_direction_deg": 314.9,
    "pressure_hpa": 1015.9,
    "cloud_cover_pct": 0,
    "precipitation_mm": 0,
    "condition": "clearsky_night",
    "condition_text": "Clear sky",
    "is_day": false
  },
  "source": "MET Norway (api.met.no)",
  "license": "CC BY 4.0",
  "license_url": "https://creativecommons.org/licenses/by/4.0/",
  "hourly": [
    {
      "time": "2026-09-12T01:00:00Z",
      "temperature_c": 22.5,
      "humidity_pct": 49.9,
      "wind_speed_ms": 2.3,
      "wind_direction_deg": 314.9,
      "pressure_hpa": 1015.9,
      "cloud_cover_pct": 0,
      "precipitation_mm": 0,
      "condition": "clearsky_night",
      "condition_text": "Clear sky",
      "is_day": false
    }
  ],
  "daily": [
    {
      "date": "2026-09-11",
      "temp_min_c": 20.9,
      "temp_max_c": 22.5,
      "precipitation_mm": 0,
      "condition": "clearsky_night",
      "condition_text": "Clear sky",
      "is_day": false,
      "samples": 3,
      "partial": true
    },
    {
      "date": "2026-09-12",
      "temp_min_c": 17.1,
      "temp_max_c": 26,
      "precipitation_mm": 0,
      "condition": "cloudy",
      "condition_text": "Cloudy",
      "is_day": null,
      "samples": 24,
      "partial": false
    }
  ]
}

Where the data comes from

Source
MET Norway global location forecast (CC BY 4.0), with source and licence returned in every response.
Freshness
Cached per location until the forecast's own expiry, typically 5 to 60 minutes.

One install. Every endpoint.

No proprietary SDKs needed. Any HTTP client works. Pick your language and paste.

3languages
2endpoints
RESTarchitecture
1key for all APIs
  • Fully typed responses — auto-completion in your IDE
  • Tracks the API in lockstep — new endpoints land same day
  • One key works across 125+ APIs on the platform
import axios from 'axios';

const { data } = await axios.get(
  'https://api-weather.dataandapis.com/v1/sources',
  { headers: { 'X-Api-Key': process.env.API_KEY } }
);

Weather API · X-Api-Key

Explore the endpoints

Browse request parameters and inspect live example responses.

Available Endpoints

Request Parameters

API URL

Headers

X-Api-Key
import axios from 'axios';

const url = 'https://api-weather.dataandapis.com/v1/sources';
const { data } = await axios.get(url, {
  headers: { 'X-Api-Key': 'YOUR_API_KEY' }
});

One subscription. Every API.

Tokens unlock this API and 125+ others on DataAndAPIs. Switch APIs any time — we promote.

FREE

$0/mo

500 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Community support
Start free
Most Popular

STARTER

$6.99/mo

25,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Email support
Subscribe

PRO

$24.99/mo

100,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority email support
Subscribe

ULTRA

$99.99/mo

1,000,000 tokens / month

  • Access to all APIs
  • Tokens reset monthly
  • Priority support
Subscribe

Need higher volume, dedicated infra, or a custom contract? Talk to sales →

Questions about Weather API

Ship Weather API this afternoon.

500 free tokens. No card. Plus 125+ other APIs on the same key.