GET
/
lookup
/
asn
curl --request GET \
  --url https://greipapi.com/lookup/asn \
  --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

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.

{
  "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
}

Response properties

data
object
required
status
string
required

Response status (success, or error).

executionTime
integer
required

Time taken to process the data (in milliseconds).