Overview
MY IP offers an API designed for developers requiring IP address data, primarily focusing on geolocation and Whois information. The service enables applications to determine the geographical location associated with an IP address, retrieve details about the IP address owner, and implement logic based on this data. Use cases range from displaying a user's current IP address, a common feature on many utility websites, to more complex scenarios like tailoring website content based on a visitor's country or region. For example, an e-commerce platform might display localized pricing or product availability by detecting the user's origin through the MY IP Geolocation API.
Beyond basic location identification, the API supports applications in cybersecurity and compliance. In fraud detection, identifying the geographic origin of a transaction can be a critical data point. If a user's registered address is in one country but their transaction originates from an IP in another, it could flag a suspicious activity. Similarly, content providers might use IP geolocation to enforce regional content restrictions, ensuring compliance with licensing agreements.
The Whois API component extends this functionality by providing administrative and technical contact information for IP addresses and domains. This can be valuable for network administrators, security researchers, or anyone needing to investigate the ownership details of an IP block or domain. The data typically includes registration dates, expiration dates, and contact details, subject to privacy regulations like GDPR which may redact some information. Developers integrate MY IP through standard RESTful HTTP requests, receiving data in JSON format, which simplifies parsing and integration into various programming environments.
MY IP is suitable for small to medium-sized projects that require reliable IP data without extensive enterprise features. Its straightforward documentation and clear pricing model, including a free tier for initial development and low-volume usage, accommodate developers looking for a cost-effective solution. The service emphasizes ease of integration, aiming to provide essential IP data quickly and efficiently for applications like user experience personalization, basic security checks, and informational displays.
Key features
- IP Geolocation API: Provides precise geographical data for any IPv4 or IPv6 address, including country, region, city, latitude, longitude, and ISP details. This information can be used for content localization, traffic analysis, or geo-targeting advertisements.
- Whois API: Retrieves registration details for IP addresses and domain names. This includes registrant contact information, registration dates, and nameservers, useful for network troubleshooting, domain research, or security investigations.
- Real-time Data: Offers current IP data for immediate application use, ensuring that location or ownership information is up-to-date at the time of the request.
- RESTful HTTP Interface: Uses standard HTTP methods (GET) for API requests, returning data in JSON format, which is widely supported across programming languages and platforms. The MY IP API reference details available endpoints and parameters.
- Free Tier Availability: Includes a free plan allowing up to 1,000 requests per month, which supports development, testing, and low-volume production applications.
- Developer-Friendly Documentation: Provides clear instructions and basic code examples (primarily cURL) to facilitate quick integration for common use cases.
Pricing
MY IP offers a free tier for low-volume usage and several paid plans scaled by request volume. All paid plans include access to both the Geolocation and Whois APIs, with higher request limits and priority support. Pricing is current as of May 2026, details available on the MY IP pricing page.
| Plan Name | Monthly Requests | Monthly Cost | Features |
|---|---|---|---|
| Free | 1,000 | $0 | Basic IP Geolocation & Whois |
| Basic | 25,000 | $15 | Includes all Free tier features, priority support |
| Standard | 100,000 | $50 | Includes all Basic tier features |
| Pro | 500,000 | $150 | Includes all Standard tier features |
| Enterprise | Custom | Contact for Quote | High-volume, dedicated support, custom features |
Common integrations
- Website Personalization Engines: Integrating the IP Geolocation API allows websites to dynamically adjust content, language, currency, or product recommendations based on the visitor's detected location.
- Fraud Detection Systems: IP data can be fed into fraud prevention platforms to flag suspicious transactions or login attempts originating from unexpected geographic regions, as described in Stripe's documentation on fraud detection with Radar.
- Analytics and Reporting Tools: Developers can use MY IP to enrich website analytics data with geographic information, providing deeper insights into user demographics and traffic sources.
- Content Delivery Networks (CDNs): While CDNs often handle geo-distribution internally, MY IP can be used for custom geo-fencing logic or to verify the origin of requests independent of CDN routing.
- Security Information and Event Management (SIEM) Systems: Whois data can augment SIEM logs by providing context on the ownership of IP addresses involved in security incidents, aiding in incident response and threat intelligence.
Alternatives
- ip-api.com: Offers a free and paid IP geolocation API with a focus on high performance and detailed data points, including ISP, organization, and ASN.
- IPinfo.io: Provides comprehensive IP data including geolocation, company, ASN, IP type, and privacy detection (VPN/proxy). It supports various API access methods and offers a free tier.
- Abstract API (IP Geolocation): A suite of APIs including IP geolocation, offering detailed location data, currency, and time zone information. It features a free tier for testing and a straightforward integration process.
Getting started
To begin using the MY IP API, first obtain an API key from your MY IP account. The following cURL example demonstrates how to perform a basic IP geolocation lookup for a specific IP address (8.8.8.8, Google's public DNS) using your API key. Replace YOUR_API_KEY with your actual key.
curl "https://api.myip.com/geo/8.8.8.8?key=YOUR_API_KEY"
This request will return a JSON object containing geolocation details for the specified IP address. The structure of the response includes fields such as country_code, country_name, city, latitude, and longitude. For example:
{
"ip": "8.8.8.8",
"country_code": "US",
"country_name": "United States",
"region_code": "CA",
"region_name": "California",
"city": "Mountain View",
"zip_code": "94043",
"time_zone": "America/Los_Angeles",
"latitude": 37.406,
"longitude": -122.078,
"metro_code": 807,
"isp": "Google LLC",
"organization": "Google LLC",
"asn": "AS15169 Google LLC",
"success": true
}
For more detailed information on available endpoints and parameters for both the Geolocation and Whois APIs, consult the MY IP API documentation.