Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A super simple cloudflare worker that returns the location of the user based on the IP address.

fayazara/whereami

Repository files navigation

whereami

A super simple cloudflare worker that returns the location of the user based on the IP address.

You deploy it on your own Cloudflare account.

Usage

Deploy to Cloudflare

Response

{
	"city": "Bengaluru",
	"postalCode": "562130",
	"region": "Karnataka",
	"regionCode": "KA",
	"country": "IN",
	"continent": "AS",
	"timezone": "Asia/Kolkata",
	"latitude": "12.97530",
	"longitude": "77.59100",
	"asOrganization": "Airtel",
	"userIP": "your-ip-address"
}

Pricing (Cloudflare Workers)

Free plan: 100k requests per day on the free plan.

Paid plan: Pay $5/mo for 10M requests per month.

Alternatives

There's honestly not much happening here, I needed this for a specific use case and I even found some free services but I didnt want to use them.

About

A super simple cloudflare worker that returns the location of the user based on the IP address.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published