Pickup Lines API

The Pickup Lines API provides access to a collection of pickup lines organised by category for use in bots, websites and applications.

Base Endpoint
/api/pickup-lines/[action]/[object]
Available Endpoints
Endpoint Description
/api/pickup-lines List pickup lines.
/api/pickup-lines/random Random pickup line.
/api/pickup-lines/id/{id} Lookup by ID.
/api/pickup-lines/category/{category} Get pickup lines from a category.
/api/pickup-lines/categories List all categories.
/api/pickup-lines/search/{text} Search pickup lines.
/api/pickup-lines/recent Recently added pickup lines.
/api/pickup-lines/count Database statistics.
Query Parameters
Parameter Example Description
limit 25 Maximum results returned.
category geeky Filter by category.
active true Show only active pickup lines.
Examples
GET /api/pickup-lines
GET /api/pickup-lines?limit=50
GET /api/pickup-lines/random
GET /api/pickup-lines/random?category=geeky
GET /api/pickup-lines/id/42
GET /api/pickup-lines/category/geeky
GET /api/pickup-lines/categories
GET /api/pickup-lines/search/love
GET /api/pickup-lines/recent?limit=10
GET /api/pickup-lines/count
Example Response
{
    "id": 42,
    "pickup": "Are you WiFi? Because I'm really feeling a connection.",
    "category": "geeky",
    "active": true,
    "created_at": "2026-11-04T00:00:00+00:00",
    "updated_at": "2026-11-04T00:00:00+00:00"
}
Example Categories Response
[
    {
        "category": "classic",
        "pickup_count": 245
    },
    {
        "category": "geeky",
        "pickup_count": 95
    },
    {
        "category": "funny",
        "pickup_count": 188
    }
]
Example Statistics Response
{
    "total": 528,
    "active": 511,
    "inactive": 17,
    "categories": 8
}

Authentication & Rate Limits

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.

Authentication

Every request must include a valid API token. Requests made without a token or with an invalid token will be rejected.

Authorization Header (Recommended)
Authorization: YOUR_API_TOKEN
X-API-Token Header
X-API-Token: YOUR_API_TOKEN
Query String
GET /api/flags/random?token=YOUR_API_TOKEN
For security reasons, the Authorization header method is strongly recommended. Avoid exposing API tokens in URLs where possible.
Example Requests
cURL
curl \
-H "Authorization: YOUR_API_TOKEN" \
https://jarvisbot.uk/api/flags/random
JavaScript (Fetch)
fetch("https://jarvisbot.uk/api/jokes/random", {
    headers: {
        "Authorization": "YOUR_API_TOKEN"
    }
})
.then(r => r.json())
.then(console.log);
PHP
$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);
Account Plans
Plan Daily Requests API Access
Free 100 Requests Basic APIs
Premium 10,000 Requests All APIs
Enterprise Unlimited All APIs + Priority Support
Rate Limiting

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
Authentication Error Response
{
    "success": false,
    "error": "invalidToken",
    "msg": "API token required"
}
Invalid Token Response
{
    "success": false,
    "error": "invalidToken",
    "msg": "Invalid API token"
}
Rate Limit Response
{
    "success": false,
    "error": "rateLimit",
    "msg": "API limit exceeded",
    "plan": "free",
    "limit": 100
}
Best Practices
  • Store API tokens securely and never expose them publicly.
  • Use the Authorization header whenever possible.
  • Cache responses where appropriate to reduce API calls.
  • Monitor your daily usage to avoid rate limiting.
  • Upgrade your account if your application requires higher throughput.
Supported APIs
  • Flags API
  • Dictionary API
  • Questions API
  • Riddles API
  • Jokes API
  • Pickup Lines API
  • Truth Or Dare API
  • Harry Potter Spells API
  • Future Jarvis APIs
Need additional capacity or custom limits? Contact the Jarvis team to discuss Premium and Enterprise API access.