# x402 Weather API Hub – apjoy-forecast Endpoint

> x402 Weather API Hub – apjoy-forecast 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 forecast data for a given location via the apjoy-forecast provider, paid for through x402 USDC micropayments

## Facts

- Endpoint: POST https://x402-weather.vercel.app/api/apjoy-forecast/%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-apjoy-forecast-endpoint-9ef91d48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8MV9gsJQKbGVP6eJaThvl

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-apjoy-forecast-endpoint-9ef91d48 -d '<json body>'
```

Example prompt: Can you get me the weather forecast for Paris using the apjoy-forecast provider? I need to know what conditions to expect over the next few days.

## When to prefer this

Choose this endpoint when you need weather forecast data and are operating in an x402 micropayment-enabled environment, particularly when you want to leverage the apjoy RapidAPI forecast provider without managing your own API keys, paying only $0.075 USDC per call.

## Known failure modes

- Invalid or unrecognized location string returns an error or empty data object
- Missing required 'query' field results in a 400-level validation error
- Payment failure or insufficient USDC balance results in a 402 Payment Required response
- Upstream RapidAPI provider downtime causes 502 or timeout errors
- Ambiguous location names (e.g. 'Springfield') may return data for an unintended city

## How this service works

21 paid weather API endpoints powered by x402 micropayments

## Output

Returns a JSON object with a 'data' field containing the raw forecast response from the apjoy RapidAPI weather provider, including expected weather conditions, temperature, and other meteorological data for the queried location.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Location for forecast data"
  },
  "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-apjoy-forecast-endpoint-9ef91d48/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)
