ASN Lookup API

GET

https://api.apifreaks.com/v1.0/asn/whois/live

format
Format of the Response
asnStringrequired
Autonomous System Number with or without 'as' whose WHOIS required

Sample Responses

400
LANGUAGE
Python
PHP
Java
Node
Ruby
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
asNumberStringMandatory
AS number to query live WHOIS, e.g., 1234, etc.
asNameStringMandatory
AS name for the autonomous system
orgNameStringMandatory
Organization name holding the AS number
descriptionStringOptional
Description of the autonomous system
orgHandleStringMandatory
Organization handle or unique identifier
countryStringMandatory
Country code where the AS is registered
domainStringOptional
Domain associated with the AS
websiteStringOptional
Website URL of the organization
allocationStatusStringMandatory
Allocation status of the AS number (e.g., allocated, assigned)
numOfIPv4RoutesStringMandatory
Number of IPv4 routes announced by this AS
numOfIPv6RoutesStringMandatory
Number of IPv6 routes announced by this AS
whoisHostStringMandatory
WHOIS host server used to query the AS number
dateAllocatedStringOptional
Date when the AS was allocated in yyyy-MM-dd format (can be empty string)
typeStringMandatory
Type of the organization (e.g., BUSINESS, ISP)
routeObjectsArrayMandatory
List of route objects announced by this AS
whoisResponseStringMandatory
Raw WHOIS response from the WHOIS server
downstreamsArray<ASInfo>Mandatory
List of downstream autonomous systems
parsedWhoisResponseObjectMandatory
Parsed and structured WHOIS response data
upstreamsArray<ASInfo>Mandatory
List of upstream autonomous systems
peersArray<ASInfo>Mandatory
List of peer autonomous systems
contactsObjectMandatory
Contact information for the AS
legacyRoutesArray<String>Mandatory
List of legacy routes if any

routeObject contains the following fields:

FieldTypeRequirementDescription
routeStringMandatory
IP route in CIDR notation
originStringMandatory
Origin AS number for the route
originNameStringMandatory
Name of the origin AS
ispStringMandatory
Internet Service Provider name
numberOfIpsNumberMandatory
Number of IP addresses in the route

ASInfo contains the following fields:

FieldTypeRequirementDescription
asNumberStringMandatory
AS number (e.g., AS1759)
descriptionStringMandatory
Description of the AS
countryStringMandatory
Country code for the AS

contacts contains the following fields:

FieldTypeRequirementDescription
emailContactsArray<String>Mandatory
List of email contacts associated with the AS
abuseContactsArray<String>Mandatory
List of abuse contact emails

parsedWhoisResponse contains the following fields:

FieldTypeRequirementDescription
statusBooleanMandatory
Status of the WHOIS query parsing
whois_serverStringMandatory
WHOIS server used for the query
aut_numsArray<AutNum>Mandatory
List of autonomous number objects
organizationObjectOptional
Organization information
technical_contactsArray<Contact>Optional
List of technical contacts
abuse_contactsArray<Contact>Optional
List of abuse contacts

organization contains following fields:

FieldTypeRequirementDescription
handleStringMandatory
Organization handle or identifier
nameStringMandatory
Organization name
addressArray<String>Mandatory
Organization address components
streetStringOptional
Street address from the address
cityStringOptional
City from the address
stateStringOptional
State or province from the address
zip_codeStringOptional
ZIP/postal code
countryArray<String>Optional
Country information
date_createdStringOptional
Organization creation date in yyyy-MM-dd format
date_updatedStringOptional
Last update date in yyyy-MM-dd format
sourceStringOptional
Source URL for the organization data
addressCountryStringOptional
Country code from address

contact contains following fields:

FieldTypeRequirementDescription
handleStringMandatory
Contact handle or identifier
nameStringMandatory
Contact name
emailArray<String>Mandatory
Contact email addresses
phoneArray<String>Optional
Contact phone numbers
sourceStringOptional
Source URL for the contact data

AutNum contains following fields:

FieldTypeRequirementDescription
aut_numStringMandatory
Autonomous System (AS) number
as_handleStringMandatory
Handle (unique ID) of this aut-num in WHOIS data
as_nameStringMandatory
AS name for the network handling this network
tech_contactsArray<String>Mandatory
All handles (unique IDs) of tech persons or roles in WHOIS data
abuse_contactsArray<String>Optional
All handles (unique IDs) of persons or roles, managing abuse to this aut-num, in WHOIS data
date_createdStringOptional
This object's registration date, parsed in yyyy-MM-dd format
date_updatedStringMandatory
This object's last update date, parsed in yyyy-MM-dd format
sourceStringMandatory
WHOIS data source of this object

Each object within the lists of administrative contacts, technical contacts, and abuse contacts comprises the following fields:

FieldTypeRequirementDescription
handleStringMandatory
Handle or unique identifier of this person or role object in WHOIS data
nameStringMandatory
Name of the person or role
emailArray<String>Mandatory
Contact email addresses
phoneArray<String>Optional
Contact phone numbers
sourceStringOptional
Source URL for the contact data