/ipaddress-cfworker

Get IP address - Geographic information based on cloudflare worker and external IP info provider

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Get your public IP address information.

Access

Entry

  • / Default response. Only IP address will be returned

  • /json Default json encoded IP information. (ipgeolocation is selected by now)

  • /json/ipgeo Json encoded IP information provided by ipgeolocation.io

  • /json/ipdata Json encoded IP information provided by ipdata.co

  • /json/ipinfo Json encoded IP information provided by ipinfo.io

  • /json/cf Json encoded IP information provided by Cloudfare

  • /json/ip2location

    Json encoded IP information provided by IP2Location.io

  • /cf Json encoded cloudflare IP related information

Web

Use your browser to visit: https://ip.hlz.ink

Console

Use curl to get your ip infomration on a headless machine

curl ip.hlz.ink

Want detail?

curl ip.hlz.ink/json

In addition, you can ask for the information of a given ip by

curl ip.hlz.ink/query/{ip_address}

How to deploy your own one

To-Do

Thanks

cloudflare-worker

ipinfo