# x402 Weather API Hub – Dynamic Path Weather Endpoint

> x402 Weather API Hub – Dynamic Path Weather Endpoint 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).

Fetches weather data for a specified location via a dynamic path-based RapidAPI-powered endpoint, paid per-call using x402 USDC micropayments

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/weather138/%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-api-hub-dynamic-path-weather-endpoint-a0347e06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0OXZxCHnUgvma-ykOwf60

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-api-hub-dynamic-path-weather-endpoint-a0347e06 -d '<json body>'
```

Example prompt: What's the current weather in London right now? Use the x402 weather hub and query for 'London, UK'.

## When to prefer this

Choose this endpoint when you need pay-as-you-go weather data without a subscription, especially in agent workflows that require on-demand per-call billing in USDC via x402 micropayments. Prefer it over subscription-based weather APIs when cost predictability per query is important and you want to avoid monthly commitments.

## Known failure modes

- Invalid or unrecognized location query returns empty or error data object
- Missing required 'query' field results in a 400-level validation error
- Insufficient USDC balance or failed x402 micropayment causes a 402 Payment Required response
- Invalid path segment in the URL results in routing errors or 404
- RapidAPI upstream provider outage causes degraded or null data responses

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a JSON object with a 'data' property containing weather information sourced from the underlying RapidAPI weather provider — typically including current conditions, temperature, and location details for the queried city or coordinates.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location query string"
  },
  "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-api-hub-dynamic-path-weather-endpoint-a0347e06/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)
