API Keys Guide
Managing your API keys for higher limits and better access
Higher Rate Limits
100 req/min vs 15 for public
Usage Tracking
Monitor your API usage
Priority Support
Get help faster
Creating an API Key
Create an Account
Sign up at XTFetch. Email or social login.
Go to Settings
Navigate to Settings → API Keys section.
Create New Key
Click "Create API Key", give it a name.
Copy & Store
Copy immediately. Won't be shown again!
⚠️ Important: Your API key is shown only once when created. If you lose it, create a new one.
Using Your API Key
Pass your API key in the X-API-Key header:
curl -X POST https://xt-fetch.vercel.app/api \
-H "Content-Type: application/json" \
-H "X-API-Key: xtf_sk_your_api_key_here" \
-d '{"url": "https://www.instagram.com/reel/ABC123/"}'const API_KEY = process.env.XTFETCH_API_KEY; // Use env variable!
const response = await fetch('https://xt-fetch.vercel.app/api', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': API_KEY // Required for /api endpoint
},
body: JSON.stringify({ url: 'https://...' })
});ℹ️ Note: The /api endpoint requires an API key for external access. For testing without API key, use /api/playground instead.
Security Best Practices
🚫 Never expose your API key
Don't put in client-side JS, public repos, or share with others.
💡 Use environment variables
Store in .env file and access via process.env.
🔄 Rotate keys regularly
If compromised, delete and create a new one immediately.
Managing API Keys
Manage your API keys from Settings → API Keys:
- •View usage - See total requests, success rate, last used
- •Disable key - Temporarily disable without deleting
- •Delete key - Permanently remove (cannot undo)
- •Create new key - Generate additional keys for different apps