Included in

Advance Plan

Abuse Lookup API


Overview

The Abuse Contact API provides essential contact information to report abusive activity associated with IP addresses. By querying an IP address (IPv4 or IPv6), users receive detailed abuse contact data, including the responsible organization, abuse handling role, contact emails, phone numbers, and registered address. This enables users to swiftly take action to report and mitigate threats such as spam, DDoS attacks, and phishing.

In addition to abuse-specific contacts, the API also includes registration metadata like the registered country and abuse handle. This empowers cybersecurity teams, hosting providers, and compliance entities to take appropriate legal or administrative action.

Note

For client-side calls to the endpoints mentioned below using the Request Origin (available on paid plans only), the apiKey parameter can be omitted.

Important
Each successful Abuse Lookup costs 1 credits per IP. The X-Credits-Charged response header shows the total credits charged for the request. For details, please refer to our Credits Usage Guide.

Lookup Abuse Contact

Abuse contact details of an IP address (IPv4 or IPv6) can be obtained using the endpoint mentioned below:
The URL for this API is https://api.ipgeolocation.io/v3/abuse?apiKey=API_KEY&ip=1.0.0.0 and it's default JSON response below:

Response
1{
2  "ip": "1.0.0.0",
3  "abuse": {
4    "route": "1.0.0.0/24",
5    "country": "AU",
6    "handle": "IRT-APNICRANDNET-AU",
7    "name": "IRT-APNICRANDNET-AU",
8    "organization": "",
9    "role": "abuse",
10    "kind": "group",
11    "address": "PO Box 3646\nSouth Brisbane, QLD 4101\nAustralia",
12    "emails": [
13      "helpdesk@apnic.net"
14    ],
15    "phone_numbers": [
16      "+61 7 3858 3100"
17    ]
18  }
19}

Get Specific fields

You can customize the API response by using the fields parameter to include only the specific data you need. For example, to retrieve only the role and emails, specify these keys in the fields parameter as shown below.

curl -X GET 'https://api.ipgeolocation.io/v3/abuse?apiKey=API_KEY&ip=1.0.0.0&fields=abuse.role,abuse.emails'
Response
1{
2  "ip": "1.0.0.0",
3  "abuse": {
4    "emails": [
5      "helpdesk@apnic.net"
6    ],
7    "role": "abuse"
8  }
9}

Excluding Fields

You can exclude specific fields from the API response (except the ip field) by listing them in the excludes parameter as a comma-separated list. For example, you want to remove emails and handle from api response, you can put the keys in excludes parameter like this.

curl -X GET 'https://api.ipgeolocation.io/v3/abuse?apiKey=API_KEY&ip=1.0.0.0&excludes=abuse.handle,abuse.emails'
Response
1{
2  "ip": "1.0.0.0",
3  "abuse": {
4    "route": "1.0.0.0/24",
5    "country": "AU",
6    "name": "IRT-APNICRANDNET-AU",
7    "organization": "",
8    "role": "abuse",
9    "kind": "group",
10    "address": "PO Box 3646\nSouth Brisbane, QLD 4101\nAustralia",
11    "phone_numbers": [
12      "+61 7 3858 3100"
13    ]
14  }
15}

Abuse Contact Details in /ipgeo

The Abuse Contact API is part of the Paid Plan . By subscribing to the Paid plan, you can include abuse contact details in the ipgeo endpoint along with other features such as ASN details, security information, and more.
You can get basic Abuse Contact details in /ipgeo endpoint by including abuse object as mentioned below.

curl -X GET 'https://api.ipgeolocation.io/v3/ipgeo?apiKey=API_KEY&ip=1.0.0.0&include=abuse'
Response
1{
2  "ip": "1.0.0.0",
3  "location": {
4    "continent_code": "OC",
5    "continent_name": "Oceania",
6    "country_code2": "AU",
7    "country_code3": "AUS",
8    "country_name": "Australia",
9    "country_name_official": "Commonwealth of Australia",
10    "country_capital": "Canberra",
11    "state_prov": "Queensland",
12    "state_code": "AU-QLD",
13    "district": "Brisbane",
14    "city": "South Brisbane",
15    "zipcode": "4101",
16    "latitude": "-27.47306",
17    "longitude": "153.01421",
18    "is_eu": false,
19    "country_flag": "https://ipgeolocation.io/static/flags/au_64.png",
20    "geoname_id": "10113228",
21    "country_emoji": "🇦🇺"
22  },
23  "country_metadata": {
24    "calling_code": "+61",
25    "tld": ".au",
26    "languages": [
27      "en-AU"
28    ]
29  },
30  "network": {
31    "connection_type": "",
32    "route": "1.0.0.0/24",
33    "is_anycast": true
34  },
35  "currency": {
36    "code": "AUD",
37    "name": "Australian Dollar",
38    "symbol": "A$"
39  },
40  "asn": {
41    "as_number": "AS13335",
42    "organization": "Cloudflare, Inc.",
43    "country": "US",
44    "type": "BUSINESS",
45    "domain": "cloudflare.com",
46    "date_allocated": "2017-02-17T00:00",
47    "rir": "ARIN"
48  },
49  "company": {
50    "name": "APNIC Research and Development",
51    "type": "",
52    "domain": ""
53  },
54  "abuse": {
55    "route": "1.0.0.0/24",
56    "country": "AU",
57    "name": "IRT-APNICRANDNET-AU",
58    "organization": "",
59    "kind": "group",
60    "address": "PO Box 3646
61South Brisbane, QLD 4101
62Australia",
63    "emails": [
64      "helpdesk@apnic.net"
65    ],
66    "phone_numbers": [
67      "+61 7 3858 3100"
68    ]
69  },
70  "time_zone": {
71    "name": "Australia/Brisbane",
72    "offset": 10,
73    "offset_with_dst": 10,
74    "current_time": "2026-02-11 15:31:28.074+1000",
75    "current_time_unix": 1770787888.074,
76    "current_tz_abbreviation": "AEST",
77    "current_tz_full_name": "Australian Eastern Standard Time",
78    "standard_tz_abbreviation": "AEST",
79    "standard_tz_full_name": "Australian Eastern Standard Time",
80    "is_dst": false,
81    "dst_savings": 0,
82    "dst_exists": false,
83    "dst_tz_abbreviation": "",
84    "dst_tz_full_name": "",
85    "dst_start": {},
86    "dst_end": {}
87  }
88}
89

Reference to Abuse Contact API Response

Below, we provide separate tables for each JSON object in the response, listing all possible fields available across the abuse contact endpoint.

FieldTypeDescriptionCan be empty?
ipstring

The IP address for which abuse contact details are returned.

Yes
abuse.routestring

The IP range or route associated with the IP address.

Yes
abuse.countrystring

Two-letter country code where the abuse contact is registered.

Yes
abuse.handlestring

The abuse handle or reference ID for the responsible organization.

Yes
abuse.namestring

The name/title of the abuse contact role or team.

Yes
abuse.organizationstring

The name of the organization managing provided IP Address.

Yes
abuse.rolestring

Role of the contact (typically "abuse").

Yes
abuse.kindstring

Type of contact (e.g., "group", "person").

Yes
abuse.addressstring

Registered address of the organization owning the queried IP.

Yes
abuse.emailsarray

List of email addresses for contacting the abuse team.

Yes
abuse.phone_numbersarray

List of phone numbers for abuse contact.

Yes

Error Codes

IP Abuse Contact API returns HTTP status code 200 for a successful API request along with the response.

While, in case of a bad or invalid request, IP Abuse Contact API returns 4xx HTTP status code along with a descriptive message explaining the reason for the error.

Below is a detailed explanation of the specific HTTP status codes and their corresponding error conditions:

HTTP StatusDescription
400
Bad Request

It is returned for one of the following reasons:

  • If the provided IPv4 or IPv6 address is invalid.

  • If special character(s) ( ) [ ] { } | ^ ` is passed in the API URL either as parameter or its value. Specially in case of API key.

401
Unauthorized

It is returned for one of the following reasons:

  • If API key (as apiKey URL parameter) is missing from the request to IP Abuse Contact API.

  • If an invalid (a random value) API key is provided.

  • If the API request is made from an unverified ipgeolocation.io account.

  • If your account has been disabled or locked to use by the admin due to abuse or illegal activity.

  • When the request to IP Abuse Contact API is made using API key for a database subscription

  • When the request to IP Abuse Contact API is made on the 'paused' subscription.

  • If you’re making API requests after your subscription trial has been expired.

  • If your active until date has passed and you need to upgrade your account.

  • If IP-Abuse lookup is called using free subsciption API key.

404
Not Found

It is returned for one of the following reasons:

  • If the IPv4 or IPv6 does not exists in our database.

  • If the IPv4 or IPv6 is passed as a path variable, instead of url parameter as ip= .

  • If the wrong endpoint is called, that does not exist in our API.

405
Method Not Allowed
  • If wrong HTTP request method is used for calling the endpoints. Only GET method is allowed.

429
Too Many Requests

It is returned for one of the following reasons:

  • If the API usage limit has reached for the free subscriptions, or paid subscriptions with the status 'past due', 'deleted' or 'trial expired'.

  • If the surcharge API usage limit has reached against the subscribed plan.

499
Client Closed Request
  • If the client has set the very short request or connection timeout, leading to the server closing the request prematurely.

5XX
Server Side Error
  • If a 500 (Internal Server Error), 502 (Bad Gateway), 503 (Service Unavailable), 504 (Gateway Timeout), or 505 (HTTP Version Not Supported) status code is returned, it indicates an issue on our end. Please contact us with your request at support@ipgeolocation.io for further assistance.


API SDKs

To facilitate the developers, we have added some SDKs for various programming languages. The detailed documentation on how to use these SDKs is available in the respective SDK's documentation page linked below.

Our SDKs are also available on Github. Feel free to help us improve them. Following are the available SDKs:


Frequently Asked Questions

IP address abuse refers to the misuse of IP addresses for harmful activities such as spamming, phishing, DDoS attacks, and unauthorized access attempts.
You can report abusive IP addresses by contacting the responsible organization managing those IPs using the abuse contact information associated with the IP address.
The abuse data is updated daily to ensure accuracy and provide the most current information available.
Abuse contact information allows organizations to report malicious activities directly to responsible parties. It enables them to take swift action to mitigate threats.
Common forms of abuse include activities such as spamming, phishing, DDoS attacks, IP spoofing, and unauthorized IP address scanning and open ports.
IP spoofing involves falsifying IP addresses to disguise malicious activities, making it challenging to trace and prevent unauthorized access.
IP hijacking, also known as prefix hijacking, occurs when unauthorized entities take control of IP address blocks and redirect traffic.
Businesses can implement security measures like firewalls, intrusion detection systems, and monitor network traffic to prevent IP abuse.

Subscribe Our Newsletter

Get the latest in geolocation tech, straight to your inbox.