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.
Feel free to use it in your next automation script or project. Let me know if you find it useful or if you have any feedback!
Top comments (0)