Discover/whatismyip.com API
live

whatismyip.com APIwhatismyip.com

Retrieve your public IPv4 address plus ISP, city, region, coordinates, ASN, and timezone via the WhatIsMyIP.com API. Two endpoints, no inputs required.

Endpoints
2
Updated
4mo ago
Try it

No input parameters required.

api.parse.bot/scraper/bea20acb-8855-42e1-b494-fb8d3b1eb80b/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/bea20acb-8855-42e1-b494-fb8d3b1eb80b/get_my_ip' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 2 totalclick to expand

Returns the public IP address of the requesting connection as seen by external servers.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "ip": "string, the public IPv4 address"
  },
  "sample": {
    "data": {
      "ip": "172.59.185.175"
    },
    "status": "success"
  }
}

About the whatismyip.com API

The WhatIsMyIP.com API exposes two endpoints that return the public IPv4 address and geolocation details of the requesting connection. The get_my_ip endpoint returns just the IP address, while get_my_ip_info returns 10 fields including ASN, ISP name, city, region, postal code, latitude, longitude, and UTC timezone offset — useful for diagnosing how a connection appears to external services.

Endpoints Overview

The API has two endpoints, both requiring no input parameters. get_my_ip returns a single field — ip — containing the public IPv4 address as seen by external servers. This is useful for quick connectivity checks or IP logging without the overhead of a full geolocation lookup.

Full IP Info Endpoint

get_my_ip_info returns the same ip field plus nine additional fields: asn (autonomous system number), isp (provider name), city, region, regionCode, postalCode, latitude, longitude, and timeZone (expressed as a UTC offset string). All fields are derived from the same requesting connection — there are no inputs to supply and no target IP to specify.

Practical Behavior

Because both endpoints reflect the IP of the connection making the request, the returned data changes depending on where the API call originates. Calling from a datacenter, a residential network, or a VPN exit node will produce different isp, asn, and geolocation values. This makes the API well-suited for verifying proxy or VPN identity, checking geolocation consistency, and auditing what metadata a given outbound connection exposes.

Coverage Notes

The API covers IPv4 addresses. The geolocation data resolves to city-level precision and includes both coordinates (latitude, longitude) and a postal code where available. Timezone is returned as a UTC offset rather than an IANA timezone name.

Common use cases
  • Verify the exit IP and geolocation of a VPN or proxy connection using isp and city fields.
  • Audit what ASN and ISP name an outbound server connection exposes to external services.
  • Check the postalCode and regionCode returned for a connection to validate geotargeting behavior.
  • Log the public ip of a client connection for network diagnostics or access records.
  • Confirm the UTC offset in timeZone aligns with the expected geographic region of a server.
  • Cross-reference latitude and longitude against expected datacenter coordinates to detect routing anomalies.
  • Test how different cloud or residential IP ranges are classified by isp and asn.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does WhatIsMyIP.com have an official developer API?+
WhatIsMyIP.com does not publish a documented public developer API. The Parse API provides structured access to the IP address and geolocation data the site surfaces.
What does `get_my_ip_info` return beyond just the IP address?+
get_my_ip_info returns 10 fields: ip, asn, isp, city, region, regionCode, postalCode, latitude, longitude, and timeZone. The timeZone field is a UTC offset string, not an IANA zone name. All fields reflect the connection making the API request — no target IP is accepted as input.
Can I look up geolocation data for an arbitrary IP address rather than my own connection?+
Not currently. Both endpoints — get_my_ip and get_my_ip_info — reflect the IP of the requesting connection only; neither accepts an IP address as an input parameter. You can fork this API on Parse and revise it to add an endpoint that accepts a target IP and returns its geolocation data.
Does the API return IPv6 addresses?+
The ip field returns an IPv4 address. IPv6 address detection is not currently covered by either endpoint. You can fork this API on Parse and revise it to add IPv6 support if your environment routes over IPv6.
How current is the geolocation data for a given IP?+
Each request reflects the state of the geolocation database at the time the call is made. ISP assignments and city-level geolocation data for IP ranges can lag real-world changes by days to weeks, which is typical of IP geolocation databases generally. Postal code and city fields may be absent or approximate for some IP ranges, particularly datacenter or mobile allocations.
Page content last updated . Spec covers 2 endpoints from whatismyip.com.
Related APIs in Maps GeoSee all →
ipinfo.io API
Find the geographic location, organization, timezone, and postal code for any IP address instantly. Discover your own IP details or look up where any visitor is coming from with city, region, country, and coordinates included.
myip.ms API
Find detailed ownership and hosting information for any IP address or domain, including WHOIS data, website statistics, and hosting provider details. Discover your own IP information and explore rankings of top hosting companies worldwide.
similarweb.com API
Analyze any website's performance by retrieving detailed traffic statistics, visitor demographics, geographic distribution, competitor benchmarks, and search source data. Monitor engagement metrics and rankings to understand how websites compare in your industry and discover new competitive opportunities.
openweathermap.org API
Search for cities and retrieve live weather conditions and forecasts (current, minutely precipitation, hourly and daily) by coordinates or by city name.
accuweather.com API
Get real-time weather conditions, multi-day forecasts, and health alerts for any location worldwide. Search cities and access detailed data including allergen information and air quality to plan your activities with confidence.
geonames.org API
Search for places worldwide and get their exact coordinates, timezone information, and elevation data, or reverse lookup locations by coordinates to discover nearby areas. Access postal codes, country details, and geographic names across the globe to build location-aware applications and services.
weatherforecast.com API
Get detailed 12-day weather forecasts for any location worldwide, with temperature, wind, rain, humidity, and UV index data updated three times daily. Search locations and retrieve comprehensive weather information suitable for travel planning, research, and general forecasting needs.
wunderground.com API
Access real-time weather conditions, multi-day forecasts, and detailed historical weather data from thousands of personal and airport weather stations worldwide. Search and retrieve current observations, hourly history, and monthly records to power your weather applications and analysis.