Run US weather forecast.
API Acre verifies the exact x402 price, Base network, recipient, and request before any wallet opens. One successful call costs $0.003 USDC.
API Acre never receives your private key; signing stays inside your wallet.
1 · Run one call
- Network
- Recipient
- USDC contract
No ETH gas needed. Connecting does not sign or pay. Coinbase Wallet supports desktop QR and mobile handoff without a browser extension. This EIP-3009 payment needs only the displayed USDC on Base—not ETH for gas—because the facilitator submits settlement. Reject any later prompt that differs from the verified amount or recipient.
Copy an exact-cap x402 command
The first command checks the route without paying. Running the second command through optional third-party AgentCash may automatically spend up to $0.003 USDC; copying it does nothing. npx --yes approves package installation. Use a separate low-value wallet and review the command before running it.
Review exact command
npx --yes agentcash@latest check https://apiacre.com/v1/data/us-weather-forecast
npx --yes agentcash@latest fetch https://apiacre.com/v1/data/us-weather-forecast \
--method POST \
--header 'content-type: application/json' \
--body '{"latitude":38.8977,"longitude":-77.0365,"forecast_type":"day_night","units":"us","periods":2}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.003See the result before connecting · Curated static example
US weather forecast returns structured JSON. This example is static; the paid call returns a fresh result and settlement receipt.
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "data.us-weather-forecast",
"version": "1",
"data": {
"location": {
"latitude": 38.8977,
"longitude": -77.0365,
"city": "Washington",
"state": "DC",
"timezone": "America/New_York",
"grid": {
"office": "LWX",
"x": 97,
"y": 71
}
},
"forecastType": "day_night",
"units": "us",
"generatedAt": "2026-08-12T03:09:21+00:00",
"updatedAt": null,
"periodCount": 2,
"periodsTruncated": true,
"periods": [
{
"number": 1,
"name": "Tonight",
"startTime": "2026-08-11T23:00:00-04:00",
"endTime": "2026-08-12T06:00:00-04:00",
"isDaytime": false,
"temperature": 72,
"temperatureUnit": "F",
"temperatureTrend": null,
"probabilityOfPrecipitationPercent": 23,
"relativeHumidityPercent": 87,
"dewpoint": {
"value": 22.2,
"unitCode": "wmoUnit:degC"
},
"windSpeed": "5 mph",
"windDirection": "W",
"shortForecast": "Slight Chance Showers And Thunderstorms",
"detailedForecast": "A slight chance of showers and thunderstorms. Mostly cloudy, with a low around 72. West wind around 5 mph."
},
{
"number": 2,
"name": "Wednesday",
"startTime": "2026-08-12T06:00:00-04:00",
"endTime": "2026-08-12T18:00:00-04:00",
"isDaytime": true,
"temperature": 88,
"temperatureUnit": "F",
"temperatureTrend": null,
"probabilityOfPrecipitationPercent": 12,
"relativeHumidityPercent": 62,
"dewpoint": {
"value": 20.6,
"unitCode": "wmoUnit:degC"
},
"windSpeed": "6 mph",
"windDirection": "NW",
"shortForecast": "Partly Sunny",
"detailedForecast": "Partly sunny, with a high near 88. Northwest wind around 6 mph."
}
],
"source": {
"provider": "NOAA/National Weather Service",
"dataset": "NWS API forecast",
"pointsUrl": "https://api.weather.gov/points/38.8977,-77.0365",
"forecastUrl": "https://api.weather.gov/gridpoints/LWX/97,71/forecast?units=us",
"documentationUrl": "https://www.weather.gov/documentation/services-web-api",
"disclaimerUrl": "https://www.weather.gov/disclaimer",
"upstreamAccess": "free open data",
"attribution": "Forecast data: NOAA/National Weather Service.",
"transformation": "API Acre normalized selected NWS fields; this response is not an official government product and does not imply NOAA/NWS endorsement."
},
"retrievedAt": "2026-08-12T04:10:00+00:00",
"limitations": [
"Coverage is limited to locations supported by the United States National Weather Service, including supported U.S. territories.",
"This result contains forecast periods only; it does not include active alerts, current observations, radar, or historical weather.",
"Internet delivery and timeliness are not guaranteed. For life-safety decisions, check current official alerts and NWS dissemination channels.",
"Inspect generatedAt, retrievedAt, and local conditions before relying on the forecast."
]
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": []
}
}Review exact request JSON
2 · Authorize one call
Connected wallet:
Signing authorizes only the verified amount and recipient for this request. Reject the wallet prompt if anything differs.
Result
Settlement receipt
Change the request (optional)
The default request is verified automatically. Editing it invalidates the quote and requires this no-payment verification again.
Prefer your own client? Use the official x402 SDK examples. Browser checkout requires an EVM wallet with USDC on Base; the optional agent command uses AgentCash's separate local wallet.