GET
/
ASNLookup
curl --request GET \
  --url https://greipapi.com/ASNLookup \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "asn": "AS6167",
    "name": "CELLCO-PART",
    "country": "US",
    "org": "Verizon Business",
    "phone": "+1-800-900-0241",
    "email": "swipper@verizon.com",
    "domain": "verizon.net",
    "status": null,
    "created": "2006-05-30",
    "type": null,
    "registry": null
  },
  "status": "success",
  "executionTime": 4198
}

Query Parameters

asn
string
required

The asn command is used to specify the AS Number you want to lookup.

Sample value: AS6167 or 6167

isList
string
default: "no"

Set this to yes if you want to list all routes of both IPv4 and IPv6.

Expected values: yes, or no

Sample value: yes

format
string
default: "JSON"

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

Expected values: JSON, XML, CSV, or Newline

For more information please refer to Response Format.

mode
string
default: "live"

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.

For more information please refer to Development Environment.

callback
string

The callback command can help you make the response as a JSONP format.

Expected values: any name that can be used as a function name in Javascript, e.g: myFunctionName.

For more information please refer to JSONP Callback.

Response properties

data
object
required
asn
string
required

Autonomous System Number you’re looking up.

name
string
required

Name of the organization.

country
string
required

Country code of the organization.

org
string
required

Organization name.

phone
string
required

Phone number contact for the organization.

email
string
required

Email contact for the organization.

domain
string
required

Domain associated with the organization.

status
string
required

Status of the organization.

created
string
required

Date of organization creation.

type
string
required

Type of organization.

registry
string
required

Registration information of the organization.

status
string
required

Response status (success, or error).

executionTime
integer
required

Time taken to process the data (in milliseconds).