https://github.com/ammario/ipisp
Query IP address network information in Go
https://github.com/ammario/ipisp
asn asn-service ip-address network-analysis networking scanning security team-cymru whois
Last synced: 6 months ago
JSON representation
Query IP address network information in Go
- Host: GitHub
- URL: https://github.com/ammario/ipisp
- Owner: ammario
- License: mit
- Created: 2016-06-03T19:22:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-22T20:21:54.000Z (11 months ago)
- Last Synced: 2025-03-29T11:08:21.241Z (6 months ago)
- Topics: asn, asn-service, ip-address, network-analysis, networking, scanning, security, team-cymru, whois
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 66
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ipisp
[](https://godoc.org/github.com/ammario/ipisp/v2)ipisp provides a Go client for [Team Cymru's](http://www.team-cymru.org/IP-ASN-mapping.html) IP-ASN mapping service.
Basically, this library allows you to query an IP address' ISP and allocation information.```
go get github.com/ammario/ipisp/v2
```## Features
- 0 external dependencies
- Bulk and single lookups
- Query ISP name, ASN, country, registry and CIDR range## Basic usage
Running```go
resp, err := ipisp.LookupIP(context.Background(), net.ParseIP("4.2.2.2"))
if err != nil {
log.Fatalf("lookup: %v", err)
}
fmt.Printf("ISP: %s\n", resp.ISPName)
```
displays
```
ISP: LEVEL3, US
```