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
about this tutorial
A devai.io starter tutorial — consuming an API that describes the caller.
More in APIs & Data
view allAPIs & Data
Weather Right Now
Type a city, get the live weather — your first two-step API call.
HTMLCSSJavaScriptfetch()+1
View template zip + preview
APIs & Data
GitHub Profile Card
Type a username, get their profile — your first taste of an API.
HTMLCSSJavaScriptfetch()+1
View template zip + preview
APIs & Data
Random Quote Machine
Load quotes from a data file and show a new one on demand.
HTMLCSSJavaScriptfetch()+1
View template zip + preview