No description
  • JavaScript 100%
Find a file
2021-07-11 22:42:57 +08:00
.vscode first 2021-06-23 06:56:23 +08:00
.gitignore first 2021-06-23 06:56:23 +08:00
.prettierrc first 2021-06-23 06:56:23 +08:00
index.js impl: cors, add client's ip in response 2021-06-23 22:38:52 +08:00
LICENSE first 2021-06-23 06:56:23 +08:00
package.json first 2021-06-23 06:56:23 +08:00
README.md chore: update readme 2021-07-11 22:42:57 +08:00
wrangler.toml first 2021-06-23 06:56:23 +08:00
yarn.lock first 2021-06-23 06:56:23 +08:00

my-ip

Get your IP info.

This is run on a cloudflare worker and just returns the parsed values from request.CF

Host Your Own

Deploy to Cloudflare Workers

Response

{
  "ip": "172.107.20.86",
  "geo": {
    "latitude": "38.92580",
    "longitude": "-77.39390"
  },
  "asn": 40676,
  "country": "US",
  "city": "Ashburn",
  "continent": "NA",
  "postalCode": "20171",
  "metroCode": "511",
  "region": "Virginia",
  "regionCode": "VA",
  "timezone": "America/New_York"
}

© 2021 | Unlicense