-
Notifications
You must be signed in to change notification settings - Fork 0
Data Updates API
WhiteIntel Intelligence Solutions edited this page Jun 7, 2024
·
1 revision
Data updates API can be used for retrieving data showed in https://whiteintel.io/data-updates page.
POST /api/get_data_update_statistics.php
Name | Description |
---|---|
Content-Type | Must be set to application/json
|
Name | Type | Required | Default | Description |
---|---|---|---|---|
apikey | string | Yes | N/A | Your API key. |
POST /api/get_data_update_statistics.php
{
"apikey": "your api key"
}
{"stats":[{"dates":"2024.04.01 - 2024.04.07","content":"658,243 compromised devices are recorded."},{"dates":"2024.04.08 - 2024.04.14","content":"114,150 compromised devices are recorded."},{"dates":"2024.04.14 - 2024.04.21","content":"185,075 compromised devices are recorded."},{"dates":"2024.04.22 - 2024.04.28","content":"181,525 compromised devices are recorded."},{"dates":"2024.04.29 - 2024.05.05","content":"69,035 compromised devices are recorded."},{"dates":"2024.05.06 - 2024.05.12","content":"321,903 compromised devices are recorded."},{"dates":"2024.05.12 - 2024.05.19","content":"176,000 compromised devices are recorded."},{"dates":"2024.05.19 - 2024.05.26","content":"109,677 compromised devices are recorded."},{"dates":"2024.05.26 - 2024.06.03","content":"489,899 compromised devices are recorded."}]}
{"error":"Generic error message."}
Example with Curl
curl -X POST https://whiteintel.io/api/get_data_update_statistics.php \
-H "Content-Type: application/json" \
-d '{
"apikey": "yourapikey"
}'
Example with Python
import requests
url = "https://whiteintel.io/api/get_data_update_statistics.php"
payload = {
"apikey": "yourapikey"
}
headers = {
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
if response.status_code == 200:
print("Response:", response.json())
else:
print("Failed to retrieve data updates", response.status_code, response.text)