Welcome to the CandycornDB API documentation. This API provides access to our database of high-risk IP addresses and their associated metadata. Our database includes Tor exit nodes, IPs from high-risk ASNs, and other suspicious network sources. To use this API, you'll need an API key which you can generate from the dashboard.
X-API-Key
header.
Keep your API key secure and don't share it publicly.
To authenticate your API requests, include your API key in the X-API-Key
header with every request.
X-API-Key: your_api_key_here
If you don't include a valid API key, you'll receive a 401 Unauthorized response.
Returns a paginated list of high-risk IP addresses and their associated metadata.
Parameter | Type | Default | Description |
---|---|---|---|
page | Integer | 1 | Page number for pagination |
limit | Integer | 10 | Number of results per page (max 100) |
source | String | All | Filter by source (e.g., "Tor", "ASN") |
{ "data": [ { "ipAddress": "192.168.1.1", "location": { "country": "US", "city": "New York" }, "isp": "Example ISP", "source": "Tor", "sourceDetails": "Exit Node", "timestamp": "2023-10-31T12:00:00.000Z" }, { "ipAddress": "10.0.0.1", "location": { "country": "RU", "city": "Moscow" }, "isp": "High Risk Provider", "source": "ASN", "sourceDetails": "AS12389", "timestamp": "2023-10-31T12:00:00.000Z" } // More IP data... ], "pagination": { "total": 1000, "page": 1, "pages": 100 } }
Returns statistics about the high-risk IP data in the database.
{ "total": 1000, "recentCount": 150, "sources": { "Tor": 250, "ASN": 750 }, "countries": [ { "_id": "RU", "count": 250 }, { "_id": "CN", "count": 150 } // More countries... ] }
Check if a specific IP address is in our high-risk database.
Parameter | Type | Description |
---|---|---|
ipAddress | String | The IP address to check |
{ "found": true, "data": { "ipAddress": "192.168.1.1", "location": { "country": "US", "city": "New York" }, "isp": "Example ISP", "source": "Tor", "sourceDetails": "Exit Node", "timestamp": "2023-10-31T12:00:00.000Z" } }
{ "found": false }
Get network relationship information for a specific IP address, including related IPs in the same subnet or ASN.
Parameter | Type | Description |
---|---|---|
ipAddress | String | The IP address to check for network relationships |
{ "ipAddress": "192.168.1.1", "trustScore": 85, "networkRelationships": { "relatedIPs": [ { "ipAddress": "192.168.1.2", "relationship": "same-subnet", "trustScore": 80 }, { "ipAddress": "192.168.1.5", "relationship": "same-asn", "trustScore": 75 } ], "clusterID": "cluster-192-168-1-1", "clusterRisk": 82 } }
CandycornDB collects high-risk IP data from the following sources:
Each IP in our database includes metadata about its source, allowing you to filter and prioritize based on your specific security needs.
API requests are rate limited to protect our services. Each API key has a default limit of 100 requests per day. If you exceed this limit, you'll receive a 429 Too Many Requests response.
const apiKey = 'your_api_key_here'; fetch('https://your-candycorndb-url.com/api/public/data?page=1&limit=10&source=Tor', { method: 'GET', headers: { 'X-API-Key': apiKey } }) .then(response => { if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } return response.json(); }) .then(data => { console.log('High-risk IP data:', data); }) .catch(error => { console.error('Error fetching data:', error); });
import requests api_key = 'your_api_key_here' url = 'https://your-candycorndb-url.com/api/public/data' headers = { 'X-API-Key': api_key } params = { 'page': 1, 'limit': 10, 'source': 'ASN' } response = requests.get(url, headers=headers, params=params) if response.status_code == 200: data = response.json() print('High-risk IP data:', data) else: print(f'Error: {response.status_code}') print(response.text)
curl -X GET 'https://candycorndb.com/api/public/data?page=1&limit=10' \ -H 'X-API-Key: your_api_key_here'
If you have any questions or need help with the API, please contact the administrator.