# x402 Weather API Hub – Foreca Endpoint

> x402 Weather API Hub – Foreca Endpoint is a paid API for AI agents from x402-weather.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-21).

Proxies Foreca weather data requests through x402 micropayment-gated API, returning weather information for a queried location

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/foreca/%7Bpath%7D?utm_source=zero.xyz
- Price: $0.1/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-foreca-endpoint-3d4c7510
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AjcxibBZAx3ADYUDy2xwC

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-foreca-endpoint-3d4c7510 -d '<json body>'
```

Example prompt: What's the current weather in Berlin according to Foreca? Query it for 'Berlin, Germany'.

## When to prefer this

Choose this endpoint when you need Foreca-sourced weather data specifically, want to pay per-call via USDC micropayments without a subscription, or are building an agent that requires programmatic weather lookups gated by x402 payment protocol. Prefer over subscription-based weather APIs when cost-per-call flexibility matters.

## Known failure modes

- Payment failure if USDC balance is insufficient or x402 payment header is malformed
- Invalid or unrecognized location query returning empty or error data
- RapidAPI/Foreca upstream outage returning no data
- Missing required 'query' field returning a validation error
- Rate limiting or quota exhaustion on the underlying Foreca RapidAPI subscription

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a JSON object with a 'data' field containing the Foreca weather API response, including weather conditions and forecast details for the queried location as provided by the underlying RapidAPI Foreca provider.

## 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-foreca-endpoint-3d4c7510/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)
