Find External IP Address with Python (ipify.org)

The site ipify.org offers unlimited External IP Address API Requests. You can request your IP Address in either text or JSON format. the below example retrieves the IP Address in text.

import requests

ip_address = requests.get('http://api.ipify.org').text

print(ip_address)
Code language: JavaScript (javascript)