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
Turn your Chrome New Tab page into a quick trivia break. Choose your favorite topics and keep your progress in this browser.
Add to ChromeAvailable in the Chrome Web Store. No BrainPickle account needed.
Developing the extension locally?
- 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 |