Does anyone know how to get the IP of a user with API's?

I've tried, but I can't find any information.