! THIS GIST IS FOR INFORMATION PURPOSES ONLY. USE AT YOUR OWN RISK !
It uses the /widget/demo
endpoint that is shown on the landing page of
ipinfo which returns results only available in business plan.
The following shows the available API endpoints.
You should look at the code below to make requests on your own instead of using my demo Cloudflare Worker.
Because Cloudflare Workers use shared IPs the ipinfo API rate limits too many requests from the same IP and sometimes returns a 429 Too Many Requests
.