# asnmap

> Go CLI and library from ProjectDiscovery that maps an organisation's network ranges from an ASN, IP, domain or org name.

Source: https://osinttools.io/tools/asnmap/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

- **Inputs:** Domain, IP address
- **Category:** Infrastructure and domains
- **Pricing:** Open source (Free and open source (MIT).)
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** yes
- **Platforms:** Go CLI · Go library
- **Website:** https://github.com/projectdiscovery/asnmap
- **GitHub:** projectdiscovery/asnmap, 1,157 stars · Go · MIT · last commit 2026-11-16
- **Listed:** Nov 23
- **Last verified by an editor:** Nov 23, 2026

## What it does

asnmap looks up ASN information and returns the CIDR ranges behind an ASN, IP address, domain or organisation name. Output can be plain text, JSON or CSV, and it reads from stdin for use in pipelines.

Investigators use it to scope an organisation's network footprint before further research. It queries the ProjectDiscovery ASNMap API, which needs a free ProjectDiscovery Cloud API key, and it can be used as a Go library.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is an API.

## Features

- ASN, IP, domain and org to CIDR
- JSON, CSV and text output
- Stdin and file input
- IPv6 ranges
- Go library

## Pros

- Simple, focused and fast
- Fits ProjectDiscovery pipelines
- Actively maintained

## Cons

- Requires a ProjectDiscovery Cloud API key
- Organisation-name searches can return ranges of similarly named companies, so check results

## When to use it

- Use it when you need the IP ranges an organisation announces.
- Use it when you want to turn a domain into its hosting ASN and ranges.

## Quick start

Terminal · Go:

```
go install github.com/projectdiscovery/asnmap/cmd/asnmap@latest
asnmap -d example.com -silent
```

## Alternatives

- [Shodan](https://osinttools.io/tools/shodan/): Search engine for internet-connected hosts, indexing open ports, service banners and TLS certificates by IP. (Freemium · IP address, Domain · passive)
- [Censys](https://osinttools.io/tools/censys/): Internet-wide scan data for hosts, services and certificates, searchable through the Censys Platform. (Freemium · IP address, Domain · passive)
- [Domain Digger](https://osinttools.io/tools/domain-digger/): Web app for DNS records, global DNS lookups, WHOIS, IP details and certificate history of a domain. (Open source · Domain, IP address · passive · 1,561 GitHub stars)
- [DomainTools Whois Lookup](https://osinttools.io/tools/domaintools-whois/): Free WHOIS lookup for domains and IPs from DomainTools, with paid history and reverse WHOIS behind it. (Freemium · Domain, IP address · passive)
- [FOFA](https://osinttools.io/tools/fofa/): Chinese cyberspace mapping engine for finding hosts and web assets by banner, certificate, title or favicon. (Freemium · IP address, Domain · passive)
- [GooFuzz](https://osinttools.io/tools/goofuzz/): Bash script that uses Google search to list a site's files, directories, subdomains and parameters without contacting it. (Open source · Domain, IP address · passive · 1,592 GitHub stars)

All alternatives to asnmap in one table: https://osinttools.io/tools/asnmap/alternatives/

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
