Forum Discussion
Yasta190
Apr 04, 2021Copper Contributor
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