Example inputPOST /api/v1/x402/weather-forecast
{
"latitude": 38.9072,
"longitude": -77.0369,
"periods": 2
}
Portable intent card · weather
Return normalized forecast periods for US coordinates for $0.001 through the public National Weather Service API, with coordinate-only input and explicit US coverage.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/weather-forecast -m POST -H 'x-delx-source: intent-card-us-weather-forecast-api' --max-amount 0.001 -b '{"latitude":38.9072,"longitude":-77.0369,"periods":2}'
{
"latitude": 38.9072,
"longitude": -77.0369,
"periods": 2
}
{
"intent": "get a weather forecast for a US location",
"tool_name": "get_weather_forecast_nws",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/us-weather-forecast-api.json"
}
Portable and inspectable