The LeakJar API allows you to request and retrieve leaked data associated with domains you are subscribed to. Use this API to access leaked accounts or customer information securely and efficiently.
This documentation will guide you through authentication, making your first request, and integrating our API into your applications using various programming languages.
Quick Start Guide
Get started with the LeakJar API in just a few steps.
All API requests are made to:
https://leakjar.com/api/search- Sign up for a LeakJar account
- Subscribe to a plan
- Navigate to your API Keys settings
- Generate a new API key
Important: Keep your API key secure and never share it publicly.
Try this simple cURL command:
curl -X GET "https://leakjar.com/api/search/YOUR_API_KEY/google.com/accounts" \
-H "Content-Type: application/json"Authentication
All API requests require an API key included in the URL path. The API key authenticates your requests and associates them with your account.
Include your API key directly in the URL path:
GET https://leakjar.com/api/search/{YOUR_API_KEY}/{domain}/{findings_type}✓ DO: Keep your API key secure
✓ DO: Use environment variables to store your key
✗ DON'T: Commit API keys to version control
✗ DON'T: Expose API keys in client-side code
API Endpoints
Retrieve leaked results for domains you are subscribed to.
GET https://leakjar.com/api/search/{API_KEY}/{DOMAIN}/{FINDINGS_TYPE}/{START_DATE}/{END_DATE}| Parameter | Type | Description |
|---|---|---|
| API_KEY | Required | Your unique API key |
| DOMAIN | Required | The domain you are subscribed to (e.g., google.com) |
| FINDINGS_TYPE | Required | Type of data: accounts (or a) or customers (or c) |
| START_DATE | Optional | Start date (format: YYYYMMDD). Omit to search all dates |
| END_DATE | Optional | End date (format: YYYYMMDD). Omit to search all dates |
The response is a JSON object containing the count of leaked records and an array of the results.
{
"count": 141,
"results": [
{
"date": "2024-09-20T08: 11: 00.000Z",
"browser": "Google Chrome",
"status": "show",
"url": "https://vdi.sampleurl.com/portal/webclient/",
"ip": "68.0.2.248",
"country": "US",
"username": "sampleuser@sampleurl.com",
"password": "Samplepassword000"
}
]
}Code Examples
Get started quickly with these code examples in your favorite programming language.
cURL Example
Simple command-line HTTP requests
curl -X GET "https://leakjar.com/api/search/YOUR_API_KEY/google.com/accounts" \
-H "Content-Type: application/json"
# With date range
curl -X GET "https://leakjar.com/api/search/YOUR_API_KEY/google.com/accounts/20240101/20241212" \
-H "Content-Type: application/json"Error Handling
The API uses standard HTTP status codes to indicate success or failure.
{
"error": "Invalid API key."
}Rate Limiting
API requests are rate-limited to ensure fair usage and optimal performance for all users.
All responses include rate limit information in headers:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200Support & Resources
Comprehensive guides, API references, and best practices.
View DocumentationNeed help? Our support team is here to assist you.
Get in TouchCheck the current status and uptime of our API services.