Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a url for ASN Org? #148

Open
Deanosim opened this issue Jan 28, 2022 · 1 comment
Open

Is there a url for ASN Org? #148

Deanosim opened this issue Jan 28, 2022 · 1 comment

Comments

@Deanosim
Copy link

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
Copy link
Contributor

I don't think there is:

echoip/http/http.go

Lines 428 to 434 in 7b98b93

if !s.gr.IsEmpty() {
r.Route("GET", "/country", s.CLICountryHandler)
r.Route("GET", "/country-iso", s.CLICountryISOHandler)
r.Route("GET", "/city", s.CLICityHandler)
r.Route("GET", "/coordinates", s.CLICoordinatesHandler)
r.Route("GET", "/asn", s.CLIASNHandler)
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants