# X402 Hub – Foreca Weather API

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

Proxies weather forecast queries to the Foreca weather data API, protected by x402 micropayments on Base

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/foreca
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hub-foreca-weather-api-22085980
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TYnWxzjkD_9TjJ_MBLfKY

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-hub-foreca-weather-api-22085980 -d '<json body>'
```

Example prompt: Can you get me the weather forecast for London this week using the Foreca data feed?

## When to prefer this

Choose this endpoint when you need Foreca-sourced weather data and want to pay per-call with USDC micropayments via the x402 protocol on Base, without requiring a traditional API subscription or key management. Ideal for agents that need occasional weather lookups without long-term API contracts.

## Known failure modes

- Invalid or unrecognized location query returns error or empty data
- Payment failure via x402 micropayment protocol blocks the request
- Upstream Foreca API unavailability causes 502 or timeout
- Malformed query string returns 400 bad request
- Rate limiting if payment not properly processed

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

Returns a JSON object with a 'data' field containing weather forecast and/or current conditions data sourced from the Foreca upstream API, including temperature, weather conditions, and location-specific meteorological information.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the API"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "description": "Response data from upstream API"
  }
 }
}
```

## More

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