This project is my solution of a freecodecamp challenge.
- I can get the IP address, preferred languages (from header
Accept-Language
) and system infos (from headerUser-Agent
) for my device.
- [base_url]/api/whoami
{"ipaddress":"159.20.14.100","language":"en-US,en;q=0.5","software":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"}