Get Your IP Geographic Location with curl and jq

curl -s https://ipvigilante.com/$(curl -s https://ipinfo.io/ip) | jq '.data.latitude, .data.longitude, .data.city_name, .data.country_name'

What Others Think

Yes, it is more possible to find out the geographic location by the IP and other relevant information.So police and CID department may apply this high technology for their investigation process.I need dissertation help to write my dissertation as I take my research topic "impact of high technology on geographical location'.
Davidmal · 39 weeks and 2 days ago
Unique article topics, attracting readers by the amount of useful information. I hope my post will be as good as yours. Please refer and evaluate io games skribbl io
navonwolf · 11 weeks and 1 day ago
Command linefu is a website that has a post about IP Geographic Location with curl. You can easily get you with the help of their operators. You can check lead generation marketing montreal to learn update to manage their net worth. They have all the steps for the impact of high technology on geographical location. Join them for getting the commands on time.
GordonS · 8 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: