Integrate with the Jarvis API, and make your own applications with what Jarvis has to offer.
Welcome to the Jarvis Developer Platform. This guide will help you create an API token, authenticate requests, understand API responses and begin integrating Jarvis APIs into your applications.
API tokens can be generated from your Jarvis profile page. Each token is linked to your account and rate limits are applied based on your subscription plan.
Once you have an API token, include it in the request headers.
GET /api/jokes/random
curl \
-H "Authorization: YOUR_API_TOKEN" \
https://jarvisbot.uk/api/jokes/random
fetch("https://jarvisbot.uk/api/jokes/random", {
headers: {
"Authorization": "YOUR_API_TOKEN"
}
})
.then(response => response.json())
.then(console.log);
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://jarvisbot.uk/api/jokes/random",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: YOUR_API_TOKEN"
]
]);
$response = curl_exec($ch);
$data = json_decode($response, true);
curl_close($ch);
All API responses are returned as JSON.
{
"id": 42,
"setup": "Why do programmers prefer dark mode?",
"punchline": "Because light attracts bugs."
}
Most endpoints will return a JSON object or a JSON array depending on the operation being performed.
[
{
"id": 1,
"name": "Accio"
},
{
"id": 2,
"name": "Lumos"
}
]
Every API request must include an API token.
Authorization: YOUR_API_TOKEN
X-API-Token: YOUR_API_TOKEN
GET /api/flags/random?token=YOUR_API_TOKEN
| Plan | Daily Limit | Access |
|---|---|---|
| Free | 100 Requests | Core APIs |
| Premium | 10,000 Requests | All APIs |
| Enterprise | Unlimited | All APIs + Priority Support |
Jarvis APIs use consistent error formats to help identify issues quickly.
| Error | Description |
|---|---|
invalidToken |
Missing or invalid API token. |
rateLimit |
Request allowance has been exceeded. |
notFound |
Requested resource could not be found. |
forbidden |
Access denied by account permissions. |
serverError |
An unexpected server-side error occurred. |
{
"success": false,
"error": "invalidToken",
"msg": "API token required"
}
{
"success": false,
"error": "invalidToken",
"msg": "Invalid API token"
}
{
"success": false,
"error": "rateLimit",
"msg": "API limit exceeded",
"plan": "free",
"limit": 100
}
{
"success": false,
"error": "notFound",
"msg": "Resource not found"
}
Access a complete spell database inspired by the wizarding world. Perfect for trivia apps, fan projects, or magical utilities.
Access a full catalogue of spells from across the entire film series, including names, types, and usage details.
Each spell includes its meaning, background, and origin, giving developers rich lore to build immersive experiences.
Every spell comes with a phonetic guide so users can learn how to say it correctly — ideal for voice apps or educational tools.
Generate a unique example sentence for any spell, perfect for roleplay, games, or interactive storytelling features.
Tap into a constantly growing collection of jokes ranging from dad jokes to one‑liners. Ideal for entertainment bots, social apps, or daily humor feeds.
Access a huge library of jokes ranging from classic one‑liners to modern humour, perfect for bots, apps, and entertainment tools.
Find jokes by category — dad jokes, dark humour, puns, knock‑knock, wholesome, and more — making it easy to tailor content.
Instantly pull a random joke for “Joke of the Day”, chat interactions, or fun automated responses.
Each joke includes a clean setup and punchline format, ideal for timed reveals, embeds, and interactive delivery.
A fun and diverse set of pickup lines — smooth, cheesy, bold, and everything in between. Great for dating apps, chatbots, or social features.
Access a massive library of pickup lines ranging from smooth to silly, perfect for social apps, bots, and fun interactions.
Browse pickup lines by category — cute, flirty, bold, cheesy, cringe, and more — making it easy to tailor content to your audience.
Pull a random pickup line instantly for games, chats, or “pickup of the day” features.
Every line is crafted to spark reactions, laughs, and interactions, ideal for boosting engagement in communities and apps.
Pull from a wide variety of thought‑provoking, funny, or conversation‑starting questions. Perfect for games, icebreakers, or community engagement tools.
Access a large and growing collection of conversation‑starting questions designed to spark engagement, interaction, and community activity.
Browse or filter questions by category — fun, serious, personal, icebreakers, deep‑thought, and more — perfect for tailoring content to your audience.
Automatically pull a fresh question every day, ensuring your apps, bots, or communities always have new content without manual updates.
Every question is crafted to encourage replies, discussions, and participation, making it ideal for social apps, servers, and engagement tools.
Access global flag data including names, regions, and metadata. Useful for geography apps, educational tools, and international features.
Look up any flag instantly using its ISO country code, making it easy to integrate fast lookups into apps, bots, or tools.
Access multiple image sizes for every flag — perfect for dashboards, embeds, UI elements, or responsive designs.
Retrieve country names, regions, and metadata alongside each flag, giving you rich context for educational or geographic applications.
Explore a complete and continually updated collection of global flags, ready to power anything from trivia apps to international utilities.
A full dictionary lookup service with definitions, examples, and word data. Ideal for language tools, learning apps, and smart assistants.
Filter words by any category: length, characters and more.
Integrated Word of teh day lets you create fun apps your way.
Search for words based on character set and count.
With a mass store of words and definitions that keeps growing each day.
Access a growing collection of brain teasers, puzzles, and riddles complete with answer validation and reveal functionality. Perfect for Discord bots, games, educational tools, trivia systems, and community challenges.
Instantly retrieve random riddles from the database, ideal for daily challenges, games, and interactive commands.
Validate player answers through the API and determine whether a submitted response matches the correct solution.
Search the riddle collection to find specific riddles, themes, or keywords for custom games and experiences.
Power Discord events, trivia nights, classroom activities, quizzes, and puzzle-based competitions with ease.
Access a large collection of truth questions and dares across multiple difficulty levels ranging from family friendly prompts to mature challenges. Perfect for Discord bots, party games, community events and social apps.
Generate random truth questions or filter by difficulty level to match your audience.
Retrieve fun, challenging and engaging dares complete with optional turn and timing requirements.
Easily filter between Easy, Medium, Hard, Lewd, NSFW and NSFW+ content levels.
Build party games, Discord commands, event challenges and social experiences directly from the API.
All Jarvis APIs require a valid API token. Tokens are issued through the Jarvis Developer Portal and are associated with an account plan which determines access levels and request limits.
Every request must include a valid API token. Requests made without a token or with an invalid token will be rejected.
Authorization: YOUR_API_TOKEN
X-API-Token: YOUR_API_TOKEN
GET /api/flags/random?token=YOUR_API_TOKEN
curl \
-H "Authorization: YOUR_API_TOKEN" \
https://jarvisbot.uk/api/flags/random
fetch("https://jarvisbot.uk/api/jokes/random", {
headers: {
"Authorization": "YOUR_API_TOKEN"
}
})
.then(r => r.json())
.then(console.log);
$response = file_get_contents(
"https://jarvisbot.uk/api/questions/random",
false,
stream_context_create([
'http' => [
'header' => [
'Authorization: YOUR_API_TOKEN'
]
]
])
);
$data = json_decode($response, true);
| Plan | Daily Requests | API Access |
|---|---|---|
| Free | 100 Requests | Basic APIs |
| Premium | 10,000 Requests | All APIs |
| Enterprise | Unlimited | All APIs + Priority Support |
API usage is automatically monitored based on your account type. Once your limit is reached, requests will be temporarily blocked until your allowance resets.
| Plan | Limit | Window |
|---|---|---|
| Free | 100 Requests | 24 Hours |
| Premium | 10,000 Requests | 24 Hours |
| Enterprise | Unlimited | No Restriction |
{
"success": false,
"error": "invalidToken",
"msg": "API token required"
}
{
"success": false,
"error": "invalidToken",
"msg": "Invalid API token"
}
{
"success": false,
"error": "rateLimit",
"msg": "API limit exceeded",
"plan": "free",
"limit": 100
}