- About the IPQS APIs
- Proxy & VPN Detection API
- Email Verification API
- Phone Number Validation API
- Malicious URL Scanner API
- Device Fingerprint 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
- Allowlist Blocklist APIs
- Plugins Platforms Integrations
- IP Reputation Database
- IP Address Abuse Feed
- Email Verification Database
-
Custom Integrations
- Getting Started
- Authentication
- Refresh Secret
- IP & Proxy Checks
- Email Verification Checks
- Phone Number Validity Checks
- Device Tracker
- List Device Trackers
- Device Tracker Statistics
- Login Tokens
- Overview Statistics
- Recent Proxy Statistics
- Recent Email Statistics
- Fraud Reporting
- Retrieve Requests by ID
- Country List API Documentation
- Release Notes
Listing Blocklist Entries
Rate this article:
Select all that apply:
Email:
API Request URL
Use the following endpoint to return all of your account's blocklisted variables.
https://www.ipqualityscore.com/api/json/blocklist/list/YOUR_API_KEY_HERE
Example Response
This is an example success response in JSON format. Responses are also available in XML format.
{
"success":true,
"message":"Success",
"data":[
{
"type":"proxy",
"value_type":"ip",
"value":"1.1.1.1",
"reason":"null"
}
],
"request_id":"CXSSHXFZr5"
}
<?php
/*
* List all entries in the Allowlist.
*/
//Initialise the cURL var
$ch = curl_init();
//Get the response from cURL
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// set the endpoint to request.
curl_setopt($ch, CURLOPT_URL, 'https://ipqualityscore.com/api/json/blocklist/list/YOUR_API_KEY_HERE');
// Execute the request
$raw_response = curl_exec($ch);
// Decode the response.
$response = json_decode($raw_response, true);
// Print out the result or error.
if($response['success']){
echo "Entries returned successfully!";
//process blocklist entries.
} else {
echo "Failed to retrieve entries: ".$response['message'];
}