For those who needs this later, you can set up http proxy and send a simple get request to https://api.ipify.org , it will give you the ip adress in plain text, no need to parse the json.
One of many simple and easy ways to do it.
Hello support, i am stuck when everything was going good. i requested a proxy with API , And I logged the proxy so its looking good Proxy:port But when I set the proxy it says this. Result of expression 'proxy_string.replace' [undefined] is not a function, Need help