# Gateway1 x402 Weather API

> Gateway1 x402 Weather API is a paid API for AI agents from x402-simple-data-api.parviz-gateway1.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns current weather data for a given location via a pay-per-request x402 micropayment on Base (USDC).

## Facts

- Endpoint: GET https://x402-simple-data-api.parviz-gateway1.workers.dev/api/weather
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway1-x402-weather-api-29600b57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6abivPh1vONQ8thGFqraB

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability gateway1-x402-weather-api-29600b57
```

Example prompt: What's the current weather in San Francisco? Pay the $0.01 USDC fee automatically using x402 on Base — no API key needed.

## When to prefer this

Choose this endpoint when you need weather data without setting up a traditional API key, are comfortable with x402 USDC micropayments on Base, or need a quick pay-per-use weather lookup for an agent that handles crypto payments natively. Avoid if you need bulk/high-frequency weather data (cost adds up at $0.01/call) or if you cannot execute on-chain micropayments.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 handshake failure returns 402 Payment Required
- Invalid location: unrecognized city or coordinates may return an error or empty result
- Rate/network issues: Cloudflare Worker timeouts or upstream weather provider failures
- Malformed request: missing or incorrectly formatted location parameter returns 400

## How this service works

Paid APIs via x402 on Base. $0.01 USDC per request. No API key required.

## Output

A JSON object containing current weather data for the requested location, likely including temperature, weather conditions, humidity, wind, and other meteorological fields. Delivered after a $0.01 USDC x402 micropayment is processed on Base.

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway1-x402-weather-api-29600b57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-simple-data-api.parviz-gateway1.workers.dev](https://www.zero.xyz/host/x402-simple-data-api.parviz-gateway1.workers.dev/llms.txt)
