mpolden / echoip

IP address lookup service
https://ifconfig.co
BSD 3-Clause "New" or "Revised" License
3.98k stars 527 forks source link

Is there a url for ASN Org? #148

Open Deanosim opened 2 years ago

Deanosim commented 2 years ago

I did a bit of checking and I can't seem to find a url to just print the ASN Org, Would it be possible to get one added?

Alphakilo commented 2 years ago

I don't think there is: https://github.com/mpolden/echoip/blob/7b98b93f528f044cd2832181d6f0159d844050b1/http/http.go#L428-L434

Would jq be a viable workaround for you? i.e. curl -s ifconfig.co/json | jq '. | .asn_org'