API · Prism composites
GET /prism/audience-questions
The questions a topic’s audience asks on Reddit, YouTube, Hacker News and Stack Overflow. Metered.
| Request | GET /v1/prism/audience-questions |
| Operation id | prism.audience_questions.get |
| Cost | 30 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
The questions a topic’s audience asks on Reddit, YouTube, Hacker News and Stack Overflow. Metered.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
topic | string | yes | The topic. Example: sourdough starter. |
platforms | string | string[] | no | Default reddit, youtube, hackernews, stackoverflow. |
max_questions | integer | no | Default 50. |
threads_per_source | integer | null | no | Threads opened per platform (default 2). |
timeframe | "week" | "month" | "year" | "all" | no | Default all. One of week, month, year, all. |
include | string | no | Not used. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Ranked questions with sources. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | Nothing was found for that input on any platform. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Prism composites is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.