---
title: "Returns the WHOIS information by WHOIS ASN."
method: GET
path: "/whois/net/AS{asn}"
tags: ["whois"]
---

# Returns the WHOIS information by WHOIS ASN.

`GET /whois/net/AS{asn}`

## Request

- Base URL: `https://ipinfo.io`
- URL: `https://ipinfo.io/whois/net/AS{asn}`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
  - API key in query parameter `token`
- TypeScript: <https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/docs/whois/net/AS:asn/get.ts> (a function with typed inputs; its response is checked against the schema)

The IPinfo WHOIS API lookup via ASN provides in-depth WHOIS information associated with a specific Autonomous System Number (ASN). Querying ASN reveals critical data, including the organization's name, the allocated IP range, and the country of operation. The response includes administrative and technical contact information, highlighting the contact person along with their address and phone number. Additionally, the API provides details for abuse reporting, including a dedicated email for abuse contacts. This comprehensive dataset is essential for network administrators, security professionals, and organizations needing to investigate ASN ownership and maintain network integrity.

## Path parameters

- `asn` integer, required

## Query parameters

- `page` integer
- `whoissource` 'arin' | 'ripe' | 'afrinic' | 'apnic' | 'lacnic'

## Response `200`

WHOIS ASN response.

- WhoisAsnResponse
  - `net` string
  - `total` integer
  - `page` integer
  - `records` object[]
    - `range` string
    - `id` string
    - `name` string
    - `country` string
    - `org` string
    - `status` string
    - `admin` string
    - `abuse` string
    - `tech` string
    - `maintainer` string
    - `updated` string, date
    - `source` string
    - `raw` string

---

[API](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification.md) - [All operations](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/revisions/c63f11e4f26e?raw)
