Local preview. Network cards use sample data; device cards show live information.
FREE DIGITAL TOOLS
IP and Connection API Documentation
Explore IP, location, DNS and HTTPS endpoints. Read request and response examples and try the visitor API directly in your browser.
Back to home Visitor informationGET
/api/meThe requesting visitor’s IP, approximate location, network and connection information. Astrotor pages use this endpoint. You can also call it from an interface on the same origin. It reports the requesting connection, not arbitrary IP addresses. Cross-origin CORS access is not provided.
const response = await fetch('/api/me');
const data = await response.json();
console.log(data.ip, data.location.city);Run the request to see a response.
EXPLORE TOGETHER