Skip to main content
Glama
n3r0-b1n4ry

AbuseIPDB MCP Server

by n3r0-b1n4ry
sample_check_request.md3.54 kB
# CHECK Endpoint The `check` endpoint accepts a single IP address (v4 or v6). Optionally you may set the `maxAgeInDays` parameter to only return reports within the last x amount of days. The desired data is stored in the `data` property. Here you can inspect details regarding the IP address queried, such as version, country of origin, usage type, ISP, and domain name. And of course, there is the valuable abusive reports. Geolocation, usage type, ISP, and domain name are sourced from the [IPinfo](https://ipinfo.io/?ref=abuseipdb). If you're looking for a performant IP database for geolocation, then use their product directly. The `isWhitelisted` property reflects whether the IP is spotted in any of our whitelists. Our whitelists give the benefit of the doubt to many IPs, so it generally should not be used as a basis for action. The `abuseConfidenceScore` is a better basis for action, because it is nonbinary and allows for nuance. The `isWhitelisted` property may be null if a whitelist lookup was not performed. The `usageType` is a string that describes the general usage of this address. Possible values are: - Commercial - Organization - Government - Military - University/College/School - Library - Content Delivery Network - Fixed Line ISP - Mobile ISP - Data Center/Web Hosting/Transit - Search Engine Spider - Reserved The `maxAgeInDays` parameter determines how far back in time we go to fetch reports. In this example, we ask for reports no older than 90 days. The default is 30. The `totalReports` property is a sum of the reports within `maxAgeInDays`. Reports are included in this response because the `verbose` flag was added. Omitting the `verbose` flag will exclude reports and the country name field. If you want to keep your response payloads light, this is recommended. The reports array is limited to 10,000 elements. Only reports within the timeframe of `maxAgeInDays` are considered. The IP address should be url-encoded, because IPv6 addresses use colons, which are reserved characters in URIs. ## Check Parameters | Field | Required | Default | Min | Max | |-------|----------|---------|-----|-----| | ipAddress | yes | | | | | maxAgeInDays | no | 30 | 1 | 365 | | verbose | no | | | | ## Example Request The -G option will convert form parameters (-d options) into query parameters. **The CHECK endpoint is a GET request.** ``` curl -G https://api.abuseipdb.com/api/v2/check \ --data-urlencode "ipAddress=118.25.6.39" \ -d maxAgeInDays=90 \ -d verbose \ -H "Key: YOUR_OWN_API_KEY" \ -H "Accept: application/json" ``` **Response:** ``` { "data": { "ipAddress": "118.25.6.39", "isPublic": true, "ipVersion": 4, "isWhitelisted": false, "abuseConfidenceScore": 100, "countryCode": "CN", "countryName": "China", "usageType": "Data Center/Web Hosting/Transit", "isp": "Tencent Cloud Computing (Beijing) Co. Ltd", "domain": "tencent.com", "hostnames": [], "isTor": false, "totalReports": 1, "numDistinctUsers": 1, "lastReportedAt": "2018-12-20T20:55:14+00:00", "reports": [ { "reportedAt": "2018-12-20T20:55:14+00:00", "comment": "Dec 20 20:55:14 srv206 sshd[13937]: Invalid user oracle from 118.25.6.39", "categories": [ 18, 22 ], "reporterId": 1, "reporterCountryCode": "US", "reporterCountryName": "United States" } ] } } ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/n3r0-b1n4ry/mcp-abuseipdb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server