API Acre · Data Current Weather

by API Acre

POSTBaseSolana

$0.001

per call · USD Coin on Base

Get one current weather snapshot for a city/locality name or exact coordinates. Returns the nearest NOAA/NWS station observation where available; otherwise returns the latest MET Norway model point, always labeled explicitly as observation or model with bounded SI fields and source provenance.

Endpoint

POST https://apiacre.com/v1/data/current-weather

5

Calls / 30d

3

Unique payers / 30d

Sep 9

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/current-weather", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "city": "Washington, DC, US"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://apiacre.com/v1/data/current-weather" \
  -H "Content-Type: application/json" \
  -d '{"city":"Washington, DC, US"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "data": {
    "cacheTtlSeconds": 900,
    "current": {
      "condition": "Mostly Cloudy",
      "conditionCode": null,
      "dataKind": "observation",
      "effectiveAt": "2026-08-20T09:52:00+00:00",
      "temperatureC": 24.4
    },
    "limitations": [
      "Place-name resolution uses the bundled GeoNames cities500 index, ranked by ex...",
      "The nearest reporting station may be some distance from the requested point, ...",
      "Null fields mean the station omitted a supported measurement; API Acre does n...",
      "This snapshot excludes forecasts and alerts and must not be used alone for li..."
    ],
    "location": {
      "city": "Washington",
      "latitude": 38.8951,
      "longitude": -77.0364,
      "state": "DC",
      "timezone": "America/New_York"
    },
    "retrievedAt": "2026-08-20T10:00:00+00:00",
    "source": {
      "dataKind": "observation",
      "dataset": "NWS nearest-station latest observation",
      "provider": "NOAA/National Weather Service",
      "stationId": "KDCA",
      "stationName": "Washington/Reagan National Airport, DC"
    }
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [
      {
        "method": "POST",
        "path": "/v1/data/us-weather-forecast",
        "reason": "Extend the point-in-time snapshot with a separately authorized global hourly ...",
        "service": "data.us-weather-forecast",
        "title": "Global weather forecast"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.current-weather",
  "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