80trust / 100

Data Current Weather

by API Acre in Weather & location

x402 APIPassing, checked 3 h ago

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.

POST
https://apiacre.com/v1/data/current-weather
Price
$0.002
per call in USDC
Uptime
97.0%
last 30 days
Response time
244 ms
337 ms slowest 5%
Last check
Passed
3 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

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

Each call costs $0.002 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://apiacre.com/v1/data/current-weather
content-type: application/json

{
  "city": "Washington, DC, US"
}

Parameters

ParameterTypeRequiredDescription
citystring or nullNo
latitudenumber or nullNo
longitudenumber or nullNo

Example response

The provider's example. We can't check it without paying.

Example response, 51 lines
{
  "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"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://apiacre.com/v1/data/current-weather' \
  -H 'content-type: application/json' \
  --data-raw '{"city":"Washington, DC, US"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://apiacre.com/v1/data/current-weather' \
  -H 'content-type: application/json' \
  --data-raw '{"city":"Washington, DC, US"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fdata%2Fcurrent-weather&method=POST
const res = await pay("https://apiacre.com/v1/data/current-weather", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "city": "Washington, DC, US"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://apiacre.com/v1/data/current-weather",
        json={
            "city": "Washington, DC, US",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402222 ms$0.002
13 h agoPassed402218 ms$0.002
23 h agoPassed402186 ms$0.002
34 h agoPassed402216 ms$0.002
47 h agoPassed402222 ms$0.002
Show 10 older checks
4 days agoTimed out---
5 days agoPassed402263 ms$0.002
6 days agoPassed402229 ms$0.002
6 days agoTimed out---
6 days agoTimed out---
7 days agoPassed402161 ms$0.002
7 days agoPassed402220 ms$0.002
8 days agoPassed402249 ms$0.002
8 days agoPassed402223 ms$0.002
8 days agoPassed402364 ms$0.002

History

25 Oct 2026Price on Base changed from $0.001 to $0.002; Price on Solana changed from $0.001 to $0.002