{
 "info": {
  "name": "IPzentra API",
  "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
  "description": "IPzentra IP intelligence API. Set the apiKey variable to your key from app.ipzentra.com. Docs: https://ipzentra.com/docs"
 },
 "variable": [
  {
   "key": "baseUrl",
   "value": "https://api.ipzentra.com"
  },
  {
   "key": "apiKey",
   "value": "YOUR_KEY"
  }
 ],
 "item": [
  {
   "name": "Look up an IP address",
   "request": {
    "method": "GET",
    "header": [
     {
      "key": "X-Api-Key",
      "value": "{{apiKey}}"
     }
    ],
    "url": {
     "raw": "{{baseUrl}}/v1/49.207.48.1",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "v1",
      "49.207.48.1"
     ]
    },
    "description": "Returns country, region and city, network, VPN, proxy, Tor and hosting flags and a risk score."
   }
  },
  {
   "name": "Look up the caller",
   "request": {
    "method": "GET",
    "header": [
     {
      "key": "X-Api-Key",
      "value": "{{apiKey}}"
     }
    ],
    "url": {
     "raw": "{{baseUrl}}/v1/",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "v1",
      ""
     ]
    },
    "description": "Looks up the IP address making the request."
   }
  },
  {
   "name": "Check against expected countries",
   "request": {
    "method": "GET",
    "header": [
     {
      "key": "X-Api-Key",
      "value": "{{apiKey}}"
     }
    ],
    "url": {
     "raw": "{{baseUrl}}/v1/check?ip=49.207.48.1&country=IN,SG",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "v1",
      "check"
     ],
     "query": [
      {
       "key": "ip",
       "value": "49.207.48.1"
      },
      {
       "key": "country",
       "value": "IN,SG"
      }
     ]
    },
    "description": "Adds expected and country_match to the lookup."
   }
  },
  {
   "name": "Batch lookup (up to 100 IPs)",
   "request": {
    "method": "POST",
    "header": [
     {
      "key": "X-Api-Key",
      "value": "{{apiKey}}"
     },
     {
      "key": "Content-Type",
      "value": "application/json"
     }
    ],
    "url": {
     "raw": "{{baseUrl}}/v1/batch",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "v1",
      "batch"
     ]
    },
    "description": "Each valid IP counts as one lookup. Invalid IPs are not charged.",
    "body": {
     "mode": "raw",
     "raw": "{\n  \"ips\": [\n    \"49.207.48.1\",\n    \"8.8.8.8\",\n    \"not-an-ip\"\n  ],\n  \"country\": \"IN\"\n}",
     "options": {
      "raw": {
       "language": "json"
      }
     }
    }
   }
  },
  {
   "name": "Service status",
   "request": {
    "method": "GET",
    "header": [],
    "url": {
     "raw": "{{baseUrl}}/health",
     "host": [
      "{{baseUrl}}"
     ],
     "path": [
      "health"
     ]
    },
    "description": "No key needed."
   }
  }
 ]
}