# x402 Demo API - Trending Topics

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

Returns currently trending topics, hashtags, or keywords via a paid x402 protocol endpoint on Base mainnet.

## Facts

- Endpoint: POST https://x402-demo-api-theta.vercel.app/api/trending
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-demo-api-trending-topics-a3d79400
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5t3mR0uVPTyHnl45f7VQY

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-trending-topics-a3d79400 -d '<json body>'
```

Example prompt: What are the top trending topics right now? Use the x402 trending endpoint — I'm fine paying the micropayment — and give me a list of what's hot today.

## When to prefer this

Use this endpoint when you need real-time trending topic data and are operating in an x402-enabled micropayment environment on Base mainnet. Prefer this over free alternatives when you need pay-per-call flexibility without API key management, or when building agents that automatically handle x402 payments.

## Known failure modes

- Payment failure: insufficient USDC balance or x402 payment not completed — returns 402 Payment Required
- Invalid request body: malformed POST payload — returns 400 Bad Request
- Upstream data source unavailable: trending data fetch fails — returns 500 or partial results
- Rate limit exceeded: too many calls in short window — returns 429 Too Many Requests

## 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 list of currently trending topics, hashtags, or keywords with associated popularity or engagement signals, returned as structured JSON after a $0.04 USDC micropayment via x402 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-trending-topics-a3d79400/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)
