IP-Based Geolocation and City Lookup API
GeoIP API A simple and efficient API to obtain geographic information from IP addresses and city names, as well as to retrieve city names from coordinates. This API relies on geoip-lite and nominatim.openstreetmap.org to perform its operations. Endpoints 1. Coords from Provider IP Endpoint: /coords-from-provider-ip Obtain the latitude and longitude coordinates from the client's IP address. Usage…
IP-Based Geolocation and City Lookup API endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
GetCoordinatesFromProviderIP /coords-from-provider-ip |
The 'GetCoordinatesFromProviderIP' endpoint retrieves the latitude and longitude coordinates of a user based on their IP address. The IP address is automatically detected, and… |
| GET |
getCityFromProviderIP /city-from-provider-ip |
This is an API endpoint that retrieves the city associated with the client's IP address, as provided by their internet service provider (ISP). It first obtains the client's IP… |
| GET |
getCityFromCoordinates /city-from-coords/{lat}/{lon} |
This is an API endpoint that retrieves the city name associated with the given latitude and longitude coordinates. The endpoint requires both latitude and longitude as query… |
| GET |
getCoordinatesFromCity /coords-from-city/{city} |
This endpoint retrieves the geographical coordinates (latitude and longitude) of a city based on its name. This API uses Nominatim OpenStreetMap to search for the city and… |
| GET |
getCityFromIPAddress /city-from-ip/{ip} |
This endpoint retrieves the city name associated with the provided IP address. By utilizing the geoip library, it performs a lookup based on the IP address and returns the city… |
IP-Based Geolocation and City Lookup API pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $1 / month | — |
|