import pandas as pd
import requests
#IPs a revisar
ips = ["54.86.50.139","191.113.136.20"]
#Consulta a ip-api y la salida se guarda en Pandas
response = requests.post("http://ip-api.com/batch", json=ips).json() response = pd.DataFrame(response)
#Imprimimos la salida
print(response)
#y tambien la guardamos en CSV
response.to_csv('IPS.csv')