Developers
Integrate BrainPickle trivia into your platform. All endpoints are free and require no API key unless noted.
Slack App
Add a /trivia slash command to any Slack workspace. Your team gets a daily trivia question with interactive buttons.
Setup
- 1Go to api.slack.com/apps and click Create New App → From scratch.
- 2Under Slash Commands, create a new command:
/trivia - 3Set the Request URL to:
https://www.brainpickle.app/api/slack/command
- 4Under Interactivity & Shortcuts, enable interactivity and set the Request URL to:
https://www.brainpickle.app/api/slack/interact
- 5Install the app to your workspace. Set
SLACK_SIGNING_SECRETandSLACK_BOT_TOKENin your environment.
Usage
Type /trivia in any channel. The bot posts a question with answer buttons. Results appear inline after answering.
Alexa Skill
“Alexa, open Brain Pickle” — play trivia hands-free. The skill asks 5 questions per session and tracks your score.
Setup
- 1Go to the Alexa Developer Console and create a new Custom skill.
- 2Set the skill endpoint to:
https://www.brainpickle.app/api/alexa
- 3Add these intents:
AnswerIntent(with slots A, B, C, D), plus the built-in Help, Stop, and Cancel intents. - 4Sample utterances for AnswerIntent:
"the answer is {letter}","{letter}","I think it's {letter}" - 5Optionally set
ALEXA_SKILL_IDin your environment for request verification. - 6Test in the Alexa simulator, then submit for certification.
Chrome Extension
Replace your new tab page with a daily trivia question from BrainPickle. Fetches one question per day and caches it locally.
Install
The extension is pending Chrome Web Store review. In the meantime, you can load it manually:
- 1Download or clone the
extension/folder from the BrainPickle repository. - 2Open
chrome://extensions, enable Developer Mode, and click Load unpacked. - 3Select the
extension/folder. Every new tab now shows a BrainPickle question.
Website Widget
Embed a trivia question on any webpage with a single script tag or iframe. Supports daily and topic-specific quizzes with light/dark themes.
Quick Start
<script src="https://www.brainpickle.app/widget.js" data-type="daily" data-theme="light"></script>
For a visual customizer with live preview and copy-paste code, visit the Embed Builder
Attributes
| Attribute | Values | Default |
|---|---|---|
data-type | daily, topic | daily |
data-topic | Quiz slug (e.g. a/space) | — |
data-theme | light, dark | light |
Public API
These read-only endpoints are available without authentication. CORS is enabled for /api/daily.
| Endpoint | Description |
|---|---|
GET /api/daily | Today's daily challenge (10 questions) |
GET /api/pin/[topic] | Pinterest-optimized image (1000×1500) |
GET /api/pdf/[topic] | Printable PDF quiz |
GET /api/share-card | OG share image generator |