# APJoy Forecast API (via X402 Hub)

> APJoy Forecast API (via X402 Hub) is a paid API for AI agents from x402-hub.vercel.app, paid per call via x402, $0.075/call, status unknown (last checked 2026-10-22).

Returns forecast data for a given query, accessed via x402 micropayment on Base blockchain

## Facts

- Endpoint: POST https://x402-hub.vercel.app/api/apjoy-forecast?utm_source=zero.xyz
- Price: $0.075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apjoy-forecast-api-via-x402-hub-9178c516
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ADUwFgDEQ2NXMWBZTHfGf

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 apjoy-forecast-api-via-x402-hub-9178c516 -d '<json body>'
```

Example prompt: Can you get me the APJoy forecast for 'renewable energy adoption in Southeast Asia' — I need the latest predictive data on that topic?

## When to prefer this

Choose this endpoint when you need forecast or predictive data from the APJoy service and are operating in an x402-enabled environment with a Base wallet funded with USDC. Prefer this over direct API access when you want pay-per-call micropayment billing at $0.075 per query with no subscription required.

## Known failure modes

- Payment failure: x402 micropayment on Base not completed or insufficient USDC balance, resulting in 402 Payment Required
- Invalid or empty query string: API may return an error or empty data object
- Upstream APJoy service unavailable: proxy returns an error nested in the data field
- Malformed request: missing required 'query' field results in validation error
- Rate limiting or quota exceeded on the upstream APJoy service

## How this service works

63 paid API endpoints protected by x402 micropayments on Base

## Output

A JSON object containing a 'data' field with forecast or prediction results from the upstream APJoy API, structured as a nested object whose schema depends on the query topic.

## 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/apjoy-forecast-api-via-x402-hub-9178c516/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)
