LeakJar API Documentation

Access leaked credential data programmatically with our powerful RESTful API. Build integrations in minutes with our comprehensive SDKs and code examples.

Get API Key →
RESTful API
Simple HTTP endpoints with JSON responses
API Key Auth
Secure authentication with API keys
Real-time Data
Access up-to-date leaked credential information
Welcome to LeakJar API

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.

1
Base URL

All API requests are made to:

https://leakjar.com/api/search
2
Get Your API Key
  1. Sign up for a LeakJar account
  2. Subscribe to a plan
  3. Navigate to your API Keys settings
  4. Generate a new API key

Important: Keep your API key secure and never share it publicly.

3
Make Your First Request

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.

Authentication Method

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.

HTTP Request
GET https://leakjar.com/api/search/{API_KEY}/{DOMAIN}/{FINDINGS_TYPE}/{START_DATE}/{END_DATE}
Path Parameters
ParameterTypeDescription
API_KEYRequiredYour unique API key
DOMAINRequiredThe domain you are subscribed to (e.g., google.com)
FINDINGS_TYPERequiredType of data: accounts (or a) or customers (or c)
START_DATEOptionalStart date (format: YYYYMMDD). Omit to search all dates
END_DATEOptionalEnd date (format: YYYYMMDD). Omit to search all dates
Response Format

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.

200 OK
The request was successful
400 Bad Request
The request was invalid or cannot be processed
401 Unauthorized
Authentication failed due to an invalid API key
403 Forbidden
No permission to access this resource
404 Not Found
The requested resource does not exist
500 Internal Server Error
An error occurred on the server
Sample Error Response
{
  "error": "Invalid API key."
}

Rate Limiting

API requests are rate-limited to ensure fair usage and optimal performance for all users.

Free Tier
100/hour
Pro Tier
1,000/hour
Enterprise
10,000/hour
Rate Limit Headers

All responses include rate limit information in headers:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200

Support & Resources

Documentation

Comprehensive guides, API references, and best practices.

View Documentation
Contact Support

Need help? Our support team is here to assist you.

Get in Touch
API Status

Check the current status and uptime of our API services.

All Systems Operational

Ready to Get Started?

Sign up now and get your API key to start accessing leaked credential data