API Reference
Authentication
The UserCheck API uses API key authentication. All requests must include a valid API key in the Authorization
header.
Getting Your API Key
- Sign up for an account at app.usercheck.com
- Log in to your dashboard
- Navigate to the API Keys section
- Generate a new API key or copy your existing key
Using Your API Key
Include your API key in the Authorization
header of every request:
curl -X GET "https://api.usercheck.com/email/[email protected]" \
-H "Authorization: Bearer YOUR_API_KEY"
Alternative: Query Parameter (Not Recommended)
You can also pass your API key as a query parameter, but this method is not recommended for security reasons:
curl -X GET "https://api.usercheck.com/email/[email protected]?key=YOUR_API_KEY"
Authentication Examples
JavaScript (fetch)
const response = await fetch('https://api.usercheck.com/email/[email protected]', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY'
}
});
Python (requests)
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY'
}
response = requests.get('https://api.usercheck.com/email/[email protected]', headers=headers)
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.usercheck.com/email/[email protected]');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_API_KEY'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);