Libraries, OpenAPI and Postman
Everything you need to start in minutes. All libraries are free, MIT licensed and have no dependencies.
OpenAPI and Postman
- OpenAPI 3.1 specification: import into Swagger, Insomnia, Postman or a code generator.
- Postman collection: import it, set the apiKey variable and send.
PHP library
Download IPzentra.php (one file) or the zip. PHP 7.4 or later with curl.
require 'IPzentra.php';
$ipz = new IPzentra\Client('YOUR_KEY');
$r = $ipz->check('49.207.48.1', ['IN']);
if (!$r['country_match'] || $r['is_vpn']) { /* screen out */ }
Python library
Python 3.8 or later. Or copy ipzentra.py into your project.
pip install https://ipzentra.com/downloads/sdk/ipzentra-python-1.0.0.zip
from ipzentra import Client
r = Client('YOUR_KEY').check('49.207.48.1', ['IN'])
if not r['country_match'] or r['is_vpn']:
pass # screen out
Node.js library
Node 18 or later, with TypeScript types.
npm install https://ipzentra.com/downloads/sdk/ipzentra-node-1.0.0.tgz
const { IPzentra } = require('ipzentra');
const r = await new IPzentra('YOUR_KEY').check('49.207.48.1', ['IN']);
if (!r.country_match || r.is_vpn) { /* screen out */ }
What every library does
Every library has lookup, check, batch and me, retries once on network and server errors, shows the lookups left today, and raises a clear error with the API error code.
Need a hand? Search the Help Center or open a support ticket. We usually reply within one business day.