# osintverse-community/asn

Looks up an IP, prefix, AS number, hostname or organisation: ASN, BGP, RPKI, geolocation and reputation

## Install and run

```sh
ot install osintverse-community/asn
ot run osintverse-community/asn --target 1.1.1.1
```

The first `ot run` installs the tool after asking once. New to `ot`? See https://otinstaller.com/docs/getting-started.

From an AI agent, through ot's MCP server (`ot mcp`):

```
run_tool {"tool":"osintverse-community/asn","inputs":{"target":"1.1.1.1"}}
```

## Inputs

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `target` | string | yes |  | An IP, prefix, AS number (AS13335), hostname, URL or organisation name |

## Outputs

Finds: ip, organization, location, other.

- `other`: ASN, prefixes, RPKI status, BGP peers and reputation

## What a run does

- Does not contact the target.
- Does not collect personal data.
- Does not need an account.
- Does not notify the target.
- Usually takes about 20 seconds.
- Publisher's note: With -n it skips the traceroute and only queries public lookup services (RIPEstat, pWhois, ipinfo.io, StopForumSpam and others).
- Connects to the internet.

An agent needs the person's consent before running this tool, because it goes online. See https://otinstaller.com/docs/agents#consent.

## API keys

- `IPINFO_TOKEN` (optional, free tier): ipinfo.io token for more geolocation lookups Get one at https://ipinfo.io/signup
- `IQS_TOKEN` (optional, free tier): IPQualityScore token for in-depth IP reputation Get one at https://www.ipqualityscore.com/create-account
- `CLOUDFLARE_TOKEN` (optional, free): Cloudflare Radar API token for an AS's BGP hijack and route leak history Get one at https://dash.cloudflare.com/profile/api-tokens/

Store a key with `ot keys set NAME`; it stays in the OS keychain.

## Trust

- Latest version: 0.83.0
- Signed: yes
- Verified publisher: yes
- Health: unknown
- Installs in the last 30 days: 0
- License: MIT
- Runtime: Docker image, pinned by digest
- Repository: https://github.com/osintverse-community/asn
- Packaged by the community from a third-party tool

## Links

- Web page: https://otinstaller.com/osintverse-community/asn
- JSON: https://api.otinstaller.com/v1/tools/osintverse-community/asn
- README: https://github.com/osintverse-community/asn#readme
- Homepage: https://github.com/nitefood/asn
- Security details: https://otinstaller.com/osintverse-community/asn/security
