# x402 Demo API - Aggregator

> x402 Demo API - Aggregator is a paid API for AI agents from x402-demo-api-theta.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-13).

Aggregates multiple data sources (AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis) into a single paid API response using the x402 protocol on Base mainnet.

## Facts

- Endpoint: POST https://x402-demo-api-theta.vercel.app/api/aggregator
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-demo-api-aggregator-28e41259
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZIFiTvXqr0fkqgWU6Hpma

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-demo-api-aggregator-28e41259 -d '<json body>'
```

Example prompt: Pull together an aggregated report on Bitcoin right now — include current crypto price, web search results, trending topics, and sentiment analysis, all in one response.

## When to prefer this

Choose this endpoint when you need data from multiple domains (crypto, AI, search, sentiment, trends, translation) in a single call and want to avoid making separate requests to individual endpoints. Ideal for agents that need a comprehensive, multi-faceted data snapshot and are already operating within the x402 micropayment ecosystem on Base mainnet.

## Known failure modes

- Payment not provided or insufficient USDC — 402 Payment Required error
- Invalid or missing query parameters — 400 Bad Request
- One or more upstream data sources unavailable — partial or degraded response
- Base mainnet payment transaction failure — payment not confirmed
- Rate limiting or server overload on Vercel — 503 Service Unavailable

## How this service works

Paid API with real data: AI/LLM, crypto prices, web search, translation, trending topics, sentiment analysis, aggregator, and more. All endpoints use x402 protocol on Base mainnet.

## Output

A combined JSON response aggregating data from multiple sources: AI/LLM output, current crypto prices, web search results, translation, trending topics, and sentiment analysis — all returned in a single response after a $0.08 USDC x402 payment on Base mainnet.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-demo-api-aggregator-28e41259/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-demo-api-theta.vercel.app](https://www.zero.xyz/host/x402-demo-api-theta.vercel.app/llms.txt)
