IgorKowalczyk / ip.addr

🧱 Javascript API to display user's IP address and information about it

Home Page:https://what-is-my-ip-addr.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Majo.exe Logo

IP.addr

Javascript API to display user's IP address and information about it

Discord Node.js GitHub License Version


πŸ”— Endpoints

Endpoint (/) Response (text) Type (txt/json) Arguments (?) Link (https)
/ IP Adress txt None https://what-is-my-ip-addr.herokuapp.com
/json JSON Object

{
"ip": "STRING",
"city": "STRING",
"country": "STRING",
"country_code": "STRING",
"continent": "STRING",
"latitude": NUMBER,
"longitude": NUMBER,
"time_zone": "TIME_ZONE",
"postal_code": "STRING",
"org": "STRING",
"asn": "STRING"
}
json ?show_all=[boolean] - Show all data, ignore other arguments
?city=[boolean] - Show city
?country=[boolean] - Show country
?continent=[boolean] - Show continent
?latitude=[boolean] - Show latitude
?longitude=[boolean] - Show longitude
?time_zone=[boolean] - Show time zone
?postal_code=[boolean] - Show postal code
?org=[boolean] - Show ISP name
?asn=[boolean] - Show asn
https://what-is-my-ip-addr.herokuapp.com/json
Any (*) {"error":"404!"} json None https://what-is-my-ip-addr.herokuapp.com/any

πŸš€ Features

  • πŸ”₯ Fast response time
  • βš™οΈ Fully customizable
  • 🧱 Customizable .json endpoint
  • 🧾 Build in rate-limit (60 requests per min.)
  • ❌ No API key required

πŸ”© Hosting

  1. In .env file set:
    • DOMAIN - Website address (http:// or https://)
    • PORT - Website port (8080)
  2. Run npm i
  3. Run npm run start
  4. Visit your browser for API

❗ Issues

If you have any issues with the page please create new issue here

πŸ“€ Pull Requests

When submitting a pull request:

  • Clone the repo.
  • Create a branch off of master and give it a meaningful name (e.g. my-awesome-new-feature).
  • Open a pull request on GitHub and describe the feature or fix.

πŸ“ License

This project is licensed under the MIT. See the LICENSE file for details

About

🧱 Javascript API to display user's IP address and information about it

https://what-is-my-ip-addr.herokuapp.com

License:MIT License


Languages

Language:JavaScript 100.0%