Use the following endpoint to return all of your account's blocklisted variables.
- Proxy & VPN Detection API
- Email Verification API
- Phone Number Validation API
- Device Fingerprint API
- Malicious URL Scanner API
- Mobile Device Fingerprinting SDK
- Gaming Fraud Detection SDK
- Dark Web Leak API
- Malware File Scanner API
- Request List API
- Fraud Reporting API
- Account Management APIs
- Bulk Validation CSV API
- Allowlist & Blocklist APIs
- Plugins Platforms & Integrations
- IP Reputation Database
- Email Verification Database
- Custom Integrations
- Country List API
Listing Blocklist Entries
API Request URL
Example Response
This is an example success response in JSON format. Responses are also available in XML format.
1
{
2
"success":true,
3
"message":"Success",
4
"data":[
5
{
6
"type":"proxy",
7
"value_type":"ip",
8
"value":"1.1.1.1",
9
"reason":"null"
10
}
11
],
12
"request_id":"CXSSHXFZr5"
13
}
EXAMPLE CODE
xxxxxxxxxx
1
<?php
2
3
/*
4
* List all entries in the Allowlist.
5
*/
6
7
//Initialise the cURL var
8
$ch = curl_init();
9
10
//Get the response from cURL
11
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
12
13
// set the endpoint to request.
14
curl_setopt($ch, CURLOPT_URL, 'https://ipqualityscore.com/api/json/blocklist/list/YOUR_API_KEY_HERE');
15
16
// Execute the request
17
$raw_response = curl_exec($ch);
18
19
// Decode the response.
20
$response = json_decode($raw_response, true);
21
22
// Print out the result or error.
23
if($response['success']){
24
echo "Entries returned successfully!";
25
26
//process blocklist entries.
27
} else {
28
echo "Failed to retrieve entries: ".$response['message'];
29
}