x402hub
← AI & Inference

2s-jwnd2jdga-alleyford.vercel.app · station-history

2s-jwnd2jdga-alleyford.vercel.app · https://2s-jwnd2jdga-alleyford.vercel.app/api/climate/station-history
💵 $0.0012 USDC per call 🌐 Base Sepolia, Solana 📈 2 calls / 30d · 1 unique payers

Historical daily weather observations from NOAA GHCN-Daily for one station and date range (up to 366 days per call): max/min/avg temperature (°C), precipitation (mm), snowfall and snow depth (mm), wind (m/s). Coverage reaches back to the 1800s for long-running stations — actual measured values for "what was the weather on this date", not model recall. Pass a GHCN station id (e.g. USW00094728 = NYC Central Park); find the nearest station for any coordinate with /api/climate/station-near first. dataTypes selects elements (default TMAX,TMIN,PRCP). NOAA public-domain data.

This endpoint speaks x402: an unpaid request returns HTTP 402 with machine-readable payment terms, your agent pays the $0.0012 USDC in USDC on-chain, and retries automatically. Pays to TW6ntaGzvj63ZgPjszd4FCGmVTGfzv1MAYZbjYcyWhn.

Call it in 30 seconds

JavaScriptPythoncurl
// This service settles on Base Sepolia.
// Use an x402 client with a matching signer (e.g. an @x402 Solana client).
// First, inspect the payment terms for free:
const r = await fetch("https://2s-jwnd2jdga-alleyford.vercel.app/api/climate/station-history"); // returns HTTP 402 + machine-readable terms
console.log(r.status, await r.json());
# This service settles on Base Sepolia.
# Use an x402 client with a matching signer. To see the terms first, for free:
import httpx
r = httpx.get("https://2s-jwnd2jdga-alleyford.vercel.app/api/climate/station-history")  # HTTP 402 + machine-readable payment terms
print(r.status_code, r.json())
# 1) An unpaid request returns HTTP 402 with the exact payment terms:
curl -i "https://2s-jwnd2jdga-alleyford.vercel.app/api/climate/station-history?dataTypes=TMAX,TMIN,PRCP&endDate=2024-01-31&startDate=2024-01-01&station=USW00094728"

# 2) Paying + retrying requires an x402 client that can sign the USDC
#    authorization (curl alone cannot). See the JS / Python tabs below.

New to x402? Read the 5-minute quickstart →

ad slot · a crypto-native, no-tracking ad loads here in production
Query this registry programmatically. Every service here is searchable through the x402hub API, an x402-payable endpoint your agents call and pay per request in USDC.
https://api-service-sandy.vercel.app · GET /api/search?q=... · $0.002 / call
Prefer to just support the project? Tip USDC on Base to 0x40BbeB1BEd1D4ba6f1d4C0eE0C9D93e2dA3347C6. This hub is free and ad-light.