mirror of
https://github.com/ArthurDanjou/whereami.git
synced 2026-01-14 12:14:40 +01:00
[CI Skip] source repo import
This commit is contained in:
41
readme.md
Normal file
41
readme.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# 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
|
||||
|
||||
[](https://deploy.workers.cloudflare.com/?url=https://github.com/fayazara/whereami)
|
||||
|
||||
## Response
|
||||
|
||||
```json
|
||||
{
|
||||
"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.
|
||||
|
||||
- https://apip.cc/json
|
||||
- https://ipinfo.io/json
|
||||
- https://ip2c.org/s
|
||||
Reference in New Issue
Block a user