API Acre · Data US Weather Forecast

by API Acre

POSTBaseSolana

$0.003

per call · USD Coin on Base

Get a global weather forecast for a city/locality name or exact coordinates. Returns normalized day/night or hourly periods worldwide: NOAA/NWS is preferred within supported U.S. coverage for optional station conditions and active alerts, while MET Norway provides an attributed open-data fallback globally.

Endpoint

POST https://apiacre.com/v1/data/us-weather-forecast

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://apiacre.com/v1/data/us-weather-forecast", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "include_active_alerts": true,
    "include_current_conditions": true,
    "periods": 2,
    "place": "Washington, DC, US"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/data/us-weather-forecast" \
  -H "Content-Type: application/json" \
  -d '{"include_active_alerts":true,"include_current_conditions":true,"periods":2,"place":"Washington, DC, US"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "activeAlerts": {
      "alertCount": 0,
      "available": true,
      "requested": true,
      "updatedAt": "2026-08-12T04:09:00+00:00"
    },
    "currentConditions": {
      "available": true,
      "requested": true,
      "stationId": "KDCA",
      "stationName": "Washington/Reagan National Airport, DC"
    },
    "forecastType": "day_night",
    "generatedAt": "2026-08-12T03:09:21+00:00",
    "limitations": [
      "Place-name resolution uses the bundled GeoNames cities500...",
      "Current conditions, when requested, come from the nearest...",
      "Internet delivery and timeliness are not guaranteed. For ...",
      "Active alerts are a bounded point-in-time subset; radar a..."
    ],
    "location": {
      "city": "Washington",
      "latitude": 38.8951,
      "longitude": -77.0364,
      "state": "DC"
    },
    "periodCount": 2,
    "periods": [
      {
        "endTime": "2026-08-12T06:00:00-04:00",
        "name": "Tonight",
        "number": 1,
        "startTime": "2026-08-11T23:00:00-04:00"
      }
    ],
    "periodsTruncated": true,
    "retrievedAt": "2026-08-12T04:10:00+00:00",
    "source": {
      "dataset": "NWS API forecast with optional observations and active al...",
      "forecastUrl": "https://api.weather.gov/gridpoints/LWX/97,71/forecast?uni...",
      "pointsUrl": "https://api.weather.gov/points/38.8951,-77.0364",
      "provider": "NOAA/National Weather Service"
    },
    "units": "us",
    "updatedAt": null
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.us-weather-forecast",
  "version": "1"
}

Payment details

Pay to0xa0bfa4f07281c9b248dc3aed2217836bca24869b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Data & Enrichment and the homepage with a featured placement.

Get featured →

More from API Acre & similar services