# GET /report/topic: $0.15 per call

Brief me on a topic in one call: gathers the last N days of coverage from Hacker News, Reddit and world news, reads the top articles in full, and writes an analyst-style research brief (summary, key developments, different viewpoints, open questions, what to watch) with numbered citations. Deeper than /news/brief. Pass ?q=topic&days=7.

- **Price:** $0.15 in USDC, the same on Base, Solana, Polygon, Arbitrum. Failed calls are never charged.
- **Free trial:** no, paid only (it uses a paid AI model or data source, or costs more than the trial covers). Other ways to pay: x402 or [prepaid credits](/credits).
- **Tier:** deep
- **Answers cached for:** 1 hour(s)
- **Data sources:** HN/Reddit/GDELT news (free); the web; Workers AI (metered)
- **Lane:** Premium reports ([OpenAPI](/openapi/reports.json))
- **Live health:** [status page](/status)

## Free sample

See an answer for the demo input first, free (no payment, 10 a minute): [https://aayatai.com/sample/report-topic](/sample/report-topic). It is a stored real answer when we have one, otherwise an example marked `"kind": "illustrative"`.

```bash
curl "https://aayatai.com/sample/report-topic"
```

## 1. See the price (free)

Call it without paying: you get `402 Payment Required` and a `PAYMENT-REQUIRED` header with the exact price and where to pay.

```bash
curl -i "https://aayatai.com/report/topic?q=x402+payments&days=7"
```

## 2. Pay and call (TypeScript)

```bash
npm install @x402/fetch @x402/evm viem
```

```ts
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

// A wallet used only by your agent, holding a little USDC on Base.
const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${string}`);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const res = await pay("https://aayatai.com/report/topic?q=x402+payments&days=7");
console.log(await res.json());
```

## 3. Or as an MCP tool

```ts
// MCP server: https://aayatai.com/mcp (Streamable HTTP). With the x402 MCP client (see /start):
const result = await client.callTool("report-topic", {"q":"x402 payments","days":7});
```

## Inputs

- `q` **(required)** (string): Topic, e.g. 'stablecoin regulation UK'.
- `days` (integer; default `7`): How far back to look (1-30 days).
- `articles` (integer; default `3`): How many top articles to read in full.

Bad inputs are rejected with HTTP 400 before any payment is asked for.

## Example answer

```json
{
  "query": "x402 payments",
  "days": 7,
  "brief": "## Summary\n...\n\n## Key developments\n- ... [1]\n\n## Viewpoints\n...\n\n## Open questions\n...\n\n## What to watch\n- ...",
  "sources": [
    {
      "n": 1,
      "title": "x402 is live",
      "url": "https://x402.org",
      "outlet": "x402.org",
      "publishedAt": "2026-09-27T10:15:00Z",
      "readInFull": true
    }
  ],
  "coverage": {
    "items": 12,
    "readInFull": 3
  },
  "model": "@cf/meta/llama-3.3-70b-instruct-fp8-fast"
}
```

## Related

- [GET /report/due-diligence](/services/report-due-diligence) ($0.30): Due diligence on a token AND the project behind it, in one call: contract safety verdict, market data, the project's public footprint (website and domain age, t
- [GET /report/area](/services/report-area) ($0.10): UK area report for a postcode in one call: local authority, ward and constituency, street crime by category (latest month), house-price statistics (sales at the

New here? [Getting started in 60 seconds](/start). All services: [Aayat AI](/).