# IPInfoDB IP Location API

Category: [IP to location APIs](https://free-web-services.com/web-services/geo/ip-to-location/)  
Page: https://free-web-services.com/web-services/geo/ip-to-location/ipinfodb-ip-location-api.html  
Documentation: https://www.ipinfodb.com/api

The IPInfoDB IP Location API finds the location of an IP address: country, region, city, ZIP code, latitude, longitude and time zone. Use the country-only call for speed or the city call for full detail. Responses are JSON or XML. Free with a free API key.

- API key: Needed, free
- Pricing: Free with a free API key.
- From the browser: Yes (CORS)
- Formats: JSON, XML
- Interface: REST, HTTP-GET
- Provider: ipinfodb.com

Example request:

```sh
curl 'https://api.ipinfodb.com/v3/ip-city/?key=YOUR_API_KEY&ip=8.8.8.8&format=json'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

