{"openapi":"3.0.3","info":{"title":"IP Verdict","version":"1.0.0","description":"Detect whether an IP address belongs to a datacenter, commercial VPN, Tor exit node or Apple iCloud Private Relay."},"servers":[{"url":"https://security.plyz.org"}],"paths":{"/v1/lookup":{"get":{"summary":"Look up an IP address","operationId":"lookup","parameters":[{"name":"ip","in":"query","required":true,"schema":{"type":"string"},"example":"52.95.110.1","description":"A single IPv4 or IPv6 address."},{"name":"challengeAt","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":60},"description":"Risk at or above which action becomes challenge. Default 60, which challenges datacenters and VPNs."},{"name":"blockAt","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":90},"description":"Risk at or above which action becomes block. Default 90, which blocks Tor only."}],"responses":{"200":{"description":"The verdict for that address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verdict"}}}},"400":{"description":"The address was missing or malformed."},"401":{"description":"No valid key was presented."},"422":{"description":"The address is private or reserved."}}}},"/v1/bulk":{"get":{"summary":"Look up many addresses at once (Ultra plan and above)","operationId":"bulk","parameters":[{"name":"ips","in":"query","required":true,"schema":{"type":"string"},"example":"52.95.110.1,2.56.16.0,8.8.8.8","description":"Up to 100 comma separated IPv4 or IPv6 addresses."}],"responses":{"200":{"description":"A verdict for each address, in the order asked.","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","example":3},"results":{"type":"array","items":{"$ref":"#/components/schemas/Verdict"}}}}}}},"400":{"description":"No addresses, or more than 100."},"403":{"description":"The plan does not include bulk lookup."}}}},"/v1/me":{"get":{"summary":"Look up the calling address","operationId":"me","responses":{"200":{"description":"The verdict for the caller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Verdict"}}}}}}},"/v1/health":{"get":{"summary":"Service status and data freshness","operationId":"health","responses":{"200":{"description":"The service is ready."}}}}},"components":{"schemas":{"Verdict":{"type":"object","properties":{"ip":{"type":"string","example":"52.95.110.1"},"verdict":{"type":"string","enum":["clean","suspect","blocked"],"example":"suspect"},"risk":{"type":"integer","minimum":0,"maximum":100,"example":60},"action":{"type":"string","enum":["allow","challenge","block"],"example":"challenge","description":"What to do with this visitor. Tune with challengeAt and blockAt."},"flags":{"type":"array","items":{"type":"string"},"example":["hosting"]},"proxy":{"type":"boolean","example":false},"datacenter":{"type":"boolean","example":true},"tor":{"type":"boolean","example":false},"privateRelay":{"type":"boolean","example":false},"network":{"type":"string","nullable":true,"example":"Amazon Web Services"},"reason":{"type":"string","example":"datacenter or cloud hosting"},"dataUpdatedAt":{"type":"string","format":"date-time"},"checkedAt":{"type":"string","format":"date-time"},"intel":{"type":"object","nullable":true,"description":"First-party threat intelligence from observed abuse. Present on Pro and above, and only when something is known about the address.","properties":{"sightings":{"type":"integer","example":12,"description":"How many times this address has been seen behaving abusively."},"confidence":{"type":"integer","minimum":0,"maximum":100,"example":80},"lastSeen":{"type":"string","format":"date-time"},"categories":{"type":"array","items":{"type":"string"},"example":["scraper","credential-stuffing"]}}}}}}}}