A Node.js client for the Ipify API to fetch your public IP address with IPv6 support and custom endpoints.
ipify is a Node.js library that fetches your public IP address using the Ipify API. It solves the need for a simple, configurable way to retrieve IP addresses in applications, supporting both IPv6 and custom endpoints. The package is minimal and focused exclusively on integrating with Ipify services.
Node.js developers who need to programmatically obtain public IP addresses, particularly those using or self-hosting Ipify API instances.
Developers choose ipify for its straightforward API, IPv6 readiness, and ability to specify custom endpoints, making it ideal for projects that rely on the Ipify service without the overhead of multi-service IP lookup libraries.
Get your public IP address
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Automatically prioritizes IPv6 addresses when available, with a configurable fallback to IPv4 using the useIPv6 option, as demonstrated in the API examples for flexible IP version handling.
Allows specifying single or multiple API endpoints, enabling integration with self-hosted Ipify instances or building resilient lookup systems, as shown in the endpoint option with array support.
Returns a Promise for easy async/await integration in modern JavaScript applications, making code clean and asynchronous without callback hell.
Dedicated solely to the Ipify service, keeping the package lightweight and straightforward without unnecessary dependencies or bloat, as emphasized in the philosophy.
Only works with the Ipify API, so it cannot fetch IPs from other providers without modification, reducing flexibility for projects needing diverse IP lookup sources.
Relies on a single service type; while custom endpoints help, it lacks built-in multi-service fallback compared to alternatives like public-ip, making it less robust during Ipify outages, as noted in the FAQ.
Tightly coupled to Ipify, which could complicate switching to other IP services in the future, limiting long-term adaptability for evolving project needs.