Skip to content

Instantly share code, notes, and snippets.

@theKAKAN
Last active April 29, 2024 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theKAKAN/ebc7986b54ad70873865d71b51f86e2c to your computer and use it in GitHub Desktop.
Save theKAKAN/ebc7986b54ad70873865d71b51f86e2c to your computer and use it in GitHub Desktop.
Using IPStack without a API key.

IPStack

FreeGeoIP in its upgraded form. https://github.com/fiorix/freegeoip

API Documentation

Requests

All requests have to be HTTP GET requests in the following schema:

https://ipstack.com/ipstack_api.php?ip

Parameters

ip required Valid IP address in IPv4 or IPv6 format.

Story-time

I visisted IPStack Website, but I didn't want to register.
I saw the look up tool in the front page and digged it up. Found this.
Using this, you can get IP info without having to register :)

@abdullahdevrel
Copy link

IPStack no longer permits tokenless access. Feel free to use IPinfo.io instead.

  • Tokenless access grants you up to 1,000 requests per day.
  • If you sign up for a free account, you can get access to 50,000 requests per day.
ipinfo.io
{
    "ip": "8.8.8.8",
    "hostname": "dns.google",
    "anycast": true,
    "city": "Mountain View",
    "region": "California",
    "country": "US",
    "loc": "37.4056,-122.0775",
    "org": "AS15169 Google LLC",
    "postal": "94043",
    "timezone": "America/Los_Angeles",
    "readme": "https://ipinfo.io/missingauth"
}

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