IP.addr
Javascript API to display user's IP address and information about it
π 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
- In
.env
file set:DOMAIN
- Website address (http://
orhttps://
)PORT
- Website port (8080
)
- Run
npm i
- Run
npm run start
- 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