Links
🌐

ASN Lookup API

Overview

An Autonomous System (AS) is a group of IP networks run by one or more network operators with a single, clearly defined routing policy.
When exchanging exterior routing information, each AS is identified by a unique number: the Autonomous System Number (ASN). An AS is also sometimes referred to as a routing domain.
Autonomous system numbers can be public or private. Public ASNs are required for systems to exchange information over the Internet. A private ASN can be used instead if a system is communicating solely with a single provider via Border Gateway Protocol (BGP).
In this API method, Greip will help you lookup any given AS Number and returning all data related to it, like: name, org (the organization name), country, domain, email, phone, totalIPs, list of all routes (v4 & v6) related the given AS Number, etc.
The information returned from this method — like any other method in Greip — is real-time data, you'll always get the up-to-date data no matter what's the type of your subscription.
get
https://gregeoip.com
/ASNLookup
Method endpoint.

Method Parameters

Here's a list of all parameters can be used for this method:
Parameter
Description
key *
Your API Key.
asn *
The AS Number you want to validate
Accepted values: AS123 and 123.
isList
Set this to true if you want to list all routes of both IPv4 and IPv6. Accpts: yes or no.
format
The format of the API response. (JSON, XML, CSV or Newline)
callback
Tells the API to return the response as a callback function (Check out Callback section).
mode
Lets you use our Development Environment to test the API without affecting your available requests (Learn more).
All parameters with (*) are required.

Request Sample

curl --location 'https://gregeoip.com/ASNLookup?asn=AS6167&key=your-api-key-goes-here'

Response Sample

{
"data": {
"asn": "AS6167",
"name": "CELLCO-PART",
"country": "US",
"org": "Verizon Business",
"phone": "+1-800-900-0241",
"email": "[email protected]",
"domain": "verizon.net",
"status": "ASSIGN",
"created": "2006-05-30",
"type": "isp",
"registry": "arin",
"totalIPs": 3.689348814747739e+19,
"IPv4": {
"total": 462
},
"IPv6": {
"total": 4
}
},
"status": "success",
"executionTime": 136
}

Response Possible Values

Key
Values
data.asn
String
data.name
String, null
data.country
String
data.org
String, null
data.phone
String, null
data.email
String, null
data.domain
String, null
data.status
String, null
data.created
String, null
data.type
String (isp, hosting), null
data.registry
String, null
data.totalIPs
Float
data.IPv4.total
Integer
data.IPv4.list
Array
data.IPv6.total
Integer
data.IPv6.list
Array