Lookup

Lookup any AS Number and receive its details

Changed on

This API method allows you to look up any given Autonomous System Number (ASN) and retrieve comprehensive data associated with it.

The information returned includes the ASN name, organization name, country, associated domain, contact email, phone number, total IPs, and a detailed list of all related routes (both IPv4 and IPv6). This functionality is essential for network analysis, troubleshooting, and understanding the infrastructure behind IP addresses.

get/lookup/asn/{asn}

Request

  • Base URL
    https://v2.greipapi.com
  • URL
    https://v2.greipapi.com/lookup/asn/{asn}
  • Auth
    HTTP bearer

Path parameters

asnstring required

Query parameters

formatstring
Example:JSON

The format command is used to get a response in a specific format.

modestring
Example:test

The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.

Expected values: live, or test.

sourcestring
user_idstring
Example:UID-12345

The user_id query parameter identifies requests from specific users for monitoring in the Events page. See the user identifier options page for details.

Response

OK

successboolean required
dataobject required

Endpoint-specific payload.

execution_msinteger required

Example response

{
  "success": true,
  "execution_ms": 42
}

Changes