Quick Start
Getting Started
Our API provides easy access to thousands of high-quality images organized by collections. Each collection contains multiple images that you can access programmatically.
https://api.pulledtheirlife.support/api
Authentication
API Keys (required for random endpoints)
Access to /api/{collection}/random requires an API
key. You can authenticate using either the
x-api-key header or a ?key=
query parameter. Direct image URLs remain public.
Generate an API key
- Click Login and authenticate with Discord.
- Open the user menu (top right) and choose Open Dashboard.
- Accept the API Rules - You must accept the API key rules before generating a key.
- Click Generate New Key. You can have only one key. Daily limit defaults to 1000.
curl -H "x-api-key: YOUR_SECRET"
https://api.pulledtheirlife.support/api/cats/random
curl
https://api.pulledtheirlife.support/api/cats/random?key=YOUR_SECRET
API Endpoints
Get a random image from a specific collection
curl -H "x-api-key: YOUR_SECRET"
https://api.pulledtheirlife.support/api/cats/random
{
"url": "https://api.pulledtheirlife.support/api/cats/images/cat_001.jpg"
}
Error Handling
HTTP Status Codes
Error Response Format
{
"error": "No images found in this folder"
}
Common Error Examples
{
"error": "You must accept the API key rules before using the API. Please visit the dashboard to accept the rules."
}
{
"error": "API key required"
}
{
"error": "Daily API quota exceeded"
}
Rate Limits
Default Limits
Each API key has a default daily limit of
1000 requests to
/api/{collection}/random. Usage resets daily at 00:00
UTC. If you exceed your quota, requests return
429 Too Many Requests.
Code Examples
fetch('https://api.pulledtheirlife.support/api/cats/random', {
headers: { 'x-api-key': 'YOUR_SECRET' }
})
.then(response => response.json())
.then(data => {
console.log(data.url);
})
.catch(error => console.error('Error:', error))
{
"url": "https://api.pulledtheirlife.support/api/cats/images/cat_001.jpg"
}
import requests
# Get a random cat image (with API key)
response = requests.get(
'https://api.pulledtheirlife.support/api/cats/random',
headers={'x-api-key': 'YOUR_SECRET'}
)
data = response.json()
print(f"Random cat image URL: {data['url']}")
{
"url": "https://api.pulledtheirlife.support/api/cats/images/cat_001.jpg"
}
# Get a random cat image (with API key)
curl -H "x-api-key: YOUR_SECRET" https://api.pulledtheirlife.support/api/cats/random
{
"url": "https://api.pulledtheirlife.support/api/cats/images/cat_001.jpg"
}