Forum Discussion

Yasta190's avatar
Yasta190
Copper Contributor
Apr 04, 2021

External Data operator usage

Hi everyone,

 

I am trying to import information on a specific IP from a site, using the externaldata operator.

I want to forward the URL to the command as a function as below:

 

let url = 'http://ip-api.com/json/8.8.8.8';
let IP_Info = (URL:string) {externaldata(status:string, continent:string, country:string, regionName:string, city:string, isp:string, org:string, proxy:string, hosting:string, query:string) 
[ 
   @'URL'
]
with(format='json')
};
IP_Info(url)

 

 Is this possible?

 

In addition, is url in the below form is valid: 

ip-api.com/json/8.8.8.8?fields=17983001

 

Thanks!

No RepliesBe the first to reply

Resources