Skip to content

Instantly share code, notes, and snippets.

@mudassaralichouhan
Last active December 27, 2024 20:58
Show Gist options
  • Save mudassaralichouhan/15d7b49272ac5e06bd9d6a008cc2804b to your computer and use it in GitHub Desktop.
Save mudassaralichouhan/15d7b49272ac5e06bd9d6a008cc2804b to your computer and use it in GitHub Desktop.
IP Information

$ curl http://ifconfig.me

  • 1.1.1.1

IP-API.com:

  • API Key: Not required.
  • Rate Limit: 45 requests per minute.
  • Usage: Free for non-commercial use.

$ curl http://ip-api.com/json/1.1.1.1

{"status":"success","country":"Australia","countryCode":"AU","region":"QLD","regionName":"Queensland","city":"South Brisbane","zip":"4101","lat":-27.4766,"lon":153.0166,"timezone":"Australia/Brisbane","isp":"Cloudflare, Inc","org":"APNIC and Cloudflare DNS Resolver project","as":"AS13335 Cloudflare, Inc.","query":"1.1.1.1"}

ipgeolocation.io:

  • API Key: Required for free tier.
  • Free Tier: 1,000 requests per day.

$ curl https://api.ipgeolocation.io/ipgeo?apiKey=YOUR_API_KEY&ip=1.1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment