# Foresight API – Ask Endpoint

> Foresight API – Ask Endpoint is a paid API for AI agents from api.creativeforesight.io, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Answers a natural language question about economic or market signals for a specified region, returning a concise text answer with metadata

## Facts

- Endpoint: GET https://api.creativeforesight.io/v1/ask
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foresight-api-ask-endpoint-77686f80
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6g-0KWqfd-tKpxNhoPXb7

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 foresight-api-ask-endpoint-77686f80
```

Example prompt: What is the latest unemployment rate in the United States? Use Foresight to look it up for the US region.

## When to prefer this

Choose this endpoint when you need a quick, natural-language answer to an economic or market-data question anchored to a specific geographic region. It is ideal when you want a pre-interpreted, human-readable response rather than raw time-series data. Prefer alternatives if you need structured historical datasets, custom time ranges, or bulk data exports.

## Known failure modes

- Missing required 'q' or 'region' query parameters returns a 400-level error
- Invalid or unrecognized region string may return an error or empty answer
- Missing or invalid bearer API key returns 401 unauthorized; missing x402 payment returns 402 payment required
- Question outside supported data domains may return a low-confidence or empty answer
- Network timeout or upstream data unavailability returns a 5xx error

## How this service works

Foresight API /v1/ask

## Output

A JSON object containing a natural language answer to the question (e.g. 'The latest unemployment rate is 4.1%.'), a depth indicator (e.g. 'standard'), and a status field ('ok' on success).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q",
      "region"
     ],
     "properties": {
      "q": {
       "type": "string"
      },
      "region": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "depth": "standard"
  },
  "answer": "The latest unemployment rate is 4.1%.",
  "status": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foresight-api-ask-endpoint-77686f80/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.creativeforesight.io](https://www.zero.xyz/host/api.creativeforesight.io/llms.txt)
