Back to articles
Get your Public IP and Whois data in JSON (No API Key, No Ads)

Get your Public IP and Whois data in JSON (No API Key, No Ads)

via Dev.to WebdevThomas

If you've ever needed to quickly grab your public IP address for a script, a dashboard, or a dynamic DNS setup, you know the struggle. Most "What is my IP" websites are slow, bloated with ads, or require you to sign up for an API key just to get a simple JSON response. I got tired of parsing HTML or dealing with rate limits for such a simple task, so I built a dead-simple, fast alternative: mioip.info . It's incredibly straightforward. If you just need the raw data, there is a dedicated endpoint you can query instantly. How to use it via CLI You can use curl to get your IP straight from the terminal: bash curl https://mioip.info/api How to use it in Javascript If you are building a frontend widget or a Node.js script, it's just a standard fetch request: javascript fetch('https://mioip.info/api') .then(response => response.json()) .then(data => console.log(data)); Why I built it: Zero Ads: Just the data you need. No API Keys: Open and ready to use in your scripts. Fast: Minimal overhead

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
0 views

Related Articles