all templates
APIs & Data

What's My IP & Location

See your own IP, city and network — the API reads your request.

Load the page and it tells you your public IP, rough location, and internet provider — with a link to the spot on a map. A neat lesson in an API that reports facts about your own connection.

What's inside

  • Your public IP, city, region and country
  • ISP, timezone and a link to the map
  • An API that reads your own request
  • Refresh button and error handling
  • Free API, no key required

Quickstart

$ curl -LO https://devai.io/downloads/ip-lookup.zip$ unzip ip-lookup.zip && cd ip-lookup$ open index.html   # or just double-click the file

Browse the code

The full source, exactly as the zip ships it.

loading…
Download .zip
loading tree…

about this tutorial

A devai.io starter tutorial — consuming an API that describes the caller.