Overview
The Mr. Doge API uses API keys with Bearer token authentication to secure access to endpoints. Every request must include your API key in the Authorization header, and credits are automatically deducted based on the endpoint you’re calling.No complicated OAuth flows or session management. Just include your API key in
each request header and you’re good to go!
API Key Format
All Mr. Doge API keys follow this format:Making Authenticated Requests
Include your API key in theAuthorization header with the Bearer scheme:
Replace
locale=en with es or pt to receive translated team and competition names.Every API response includes headers showing your credit balance, consumption, and auto-recharge status. See Monitoring Your Credits for details on tracking usage.
Creating API Keys
1
Access Your Dashboard
Log in to mrdoge.co and navigate to API Keys
2
Click Create New Key
Select Create New API Key button
3
Name Your Key
Enter a descriptive name to identify where this key will be used:
Production AppDevelopment EnvironmentMobile App iOSTesting Purposes
4
Save Your Key
Store it securely in:
- Environment variables (
.envfile) - Secret management service (AWS Secrets Manager, Vault, etc.)
- Password manager
Managing API Keys
Viewing Your Keys
In the dashboard, you can see:- Key Name - The label you assigned
- Key Preview - Last 12 characters (e.g.,
sk_live_...d0e1f2) - Created Date - When the key was generated
- Last Used - Most recent API request timestamp
- Status - Active or Inactive
Deactivating Keys
If a key is compromised or no longer needed:- Go to Dashboard → API Keys
- Find the key you want to deactivate
- Click Deactivate (or Delete icon)
- Confirm the action
Deactivated keys stop working immediately. Any requests using that key will
return a
401 Unauthorized error.Key Rotation Best Practices
For security, rotate your API keys periodically:- Create a new API key with a descriptive name (e.g.,
Production App v2) - Update your application to use the new key
- Test thoroughly to ensure everything works
- Deactivate the old key after confirming the new one is working
- Monitor usage in the dashboard to verify the switch
Credit-Based Authentication
The Mr. Doge API uses a credit-based pay-as-you-go model instead of traditional rate limits.How It Works
- Purchase credits in packages
- Make API requests - credits are automatically deducted
- Monitor usage via response headers and dashboard
- Auto-recharge (optional) when balance runs low
Endpoint Costs
Most endpoints cost 1 credit per request. Some specialized endpoints cost more:| Endpoint Category | Cost per Request |
|---|---|
| No-cost endpoints (regions, competitions, health) | 0 credits (free) |
Standard matches endpoint (/v2/matches) | 1 credit |
Trending matches endpoint (/v2/matches/trending) | 2 credits |
Specific match endpoint (/v2/matches/{matchId}) | 1 credit |
Match settlement (/v2/bets/events/{eventId}/settle-bet) | 1 credit |
Live odds (/v2/matches/{matchId}/live-odds) | 2 credits |
AI recommendations (/v2/ai/betting-recommendations) | 2 credits |
AI predictions (/v2/ai/mrdoge-picks) | 3 credits |
Understand Credits
Learn how credits work, pricing, purchasing, and auto-recharge
Security Best Practices
Environment Variables
Store API keys in environment variables, never hardcode them:Don’t Expose Keys in Frontend
Instead:- Create a backend proxy that makes API calls on behalf of your frontend
- Use serverless functions (Vercel, Netlify, AWS Lambda) to keep keys secure
- Implement user authentication in your app, then make API calls server-side
FAQs
Can I use the same API key across multiple applications?
Can I use the same API key across multiple applications?
Yes, but we recommend creating separate keys for each application/environment:
- Easier to track usage per application
- Rotate keys without affecting all apps
- Deactivate compromised keys in isolation
What happens if someone steals my API key?
What happens if someone steals my API key?
Immediately:
- Go to Dashboard → API Keys
- Deactivate the compromised key
- Create a new key
- Update your application
Do API keys expire?
Do API keys expire?
No, API keys never expire. They remain active until you deactivate them manually.However, we recommend rotating keys every 90 days for security best practices.