# x402 Weather DB Lookup

> x402 Weather DB Lookup is a paid API for AI agents from x402-weather.vercel.app, paid per call via x402, $0.075/call, status unknown (last checked 2026-10-21).

Looks up weather database information for a given location query, powered by x402 micropayments at $0.075 USDC per call

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/weather-db/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-weather-db-lookup-ceabd201
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_76JO_FYwmNTvpjB-f6iw2

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 x402-weather-db-lookup-ceabd201 -d '<json body>'
```

Example prompt: Look up the weather database entry for New York City — I need the current weather data from the x402 weather hub.

## When to prefer this

Choose this endpoint when you need weather data gated behind x402 micropayments and want to pay per-query at $0.075 USDC without a subscription. Best suited for agents with on-chain payment capability (x402 protocol) needing ad-hoc weather database lookups. Prefer over subscription APIs when query volume is low or payment should be automated per-call.

## Known failure modes

- Payment failure if insufficient USDC balance — returns 402 Payment Required
- Invalid or unrecognized location query — may return empty or null data object
- Missing required 'query' field — returns validation error
- RapidAPI upstream outage — returns error from underlying provider
- Ambiguous location name with multiple matches — may return unexpected city data

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a data object containing weather information sourced from the underlying RapidAPI provider for the queried location, including whatever weather fields the database record contains for that city or coordinate pair.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query for weather database lookup"
  },
  "location": {
   "type": "string",
   "description": "City name or coordinates"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from the underlying RapidAPI provider"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-weather-db-lookup-ceabd201/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-weather.vercel.app](https://www.zero.xyz/host/x402-weather.vercel.app/llms.txt)
