IP API

Identify suspicious VPN and proxy connections and pinpoint users with accurate geolocation information.

Good to know

  • Use the Fraud API if you want to use the IP API together with any of our Email API, Phone API, and Device Fingerprinting.
  • All SEON API requests are case-sensitive. Please follow the formatting below to avoid errors.
  • IP API requests are limited to 120/minute during your SEON free trial.

Request

The [ip] in the request URI should include the full IPv4 or IPv6 address, example: 1.1.1.1 or 2001:db8:3333:4444:5555:6666:7777:8888 .

Optional query string parameters

In order to request additional or receive less information, use following parameters in the request URL as in the example below:

GET

https://api.seon.io/SeonRestService/ip-api/v1/[ip]?include=history,flags,id&flags_timeframe_days=10

Request Attributes

ValueRequired
include
historyno
include
flagsno
include
idno
flags_timeframe_days
[number of days]no

HTTP Endpoint

GET

https://api.seon.io/SeonRestService/ip-api/v1/[ip]
PHP
Generic
Generic

Response

The endpoint returns JSON structured response.

JSON Attributes

Type
ip
string
score
number
country
string
state_prov
string
city
string
timezone_offset
string
isp_name
string
latitude
number
longitude
number
type
string
open_ports
array
tor
boolean
harmful
boolean
provider_name
string
vpn
boolean
web_proxy
boolean
public_proxy
boolean
data_center_proxy
boolean
residential_proxy
boolean
consumer_privacy_network
boolean
enterprise_private_network
boolean
search_engine_spider
boolean
spam_number
integer
spam_urls
array
applied_rules
array of object
history
object
flags
array of object
id
string
Response
{
 "success": true,
 "error": {},
 "data": {
  "ip": "1.1.1.1",
  "country": "AU",
  "state_prov": "Queensland",
  "city": "Brisbane",
  "timezone_offset": "+10:00",
  "isp_name": "APNIC and CloudFlare DNS Resolver Project",
  "latitude": -27.48159,
  "longitude": 153.0175,
  "type": "CDN",
  "open_ports": [
   8080,
   80
  ],
  "tor": false,
  "harmful": true,
  "vpn": false,
  "provider_name": null,
  "data_center_proxy": true,
  "residential_proxy": false,
  "consumer_privacy_network": false,
  "enterprise_private_network": false,
  "search_engine_spider": false,
  "web_proxy": false,
  "public_proxy": false,
  "spam_urls": [
   "zen.spamhaus.org"
  ],
  "score": 3,
  "applied_rules": [
   {
    "id": "P107",
    "name": "IP address was found on 1 spam blacklist",
    "operation": "+",
    "score": 0
   },
   {
    "id": "P102",
    "name": "Port 80 is open on the IP address",
    "operation": "+",
    "score": 1
   },
   {
    "id": "P114",
    "name": "Customer is using a harmful IP address",
    "operation": "+",
    "score": 2
   }
  ],
  "spam_number": 1
 }
}