Skip to main content
GET
/
lookup
/
asn
ASN Lookup
curl --request GET \
  --url https://greipapi.com/lookup/asn \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "asn": "AS9112",
    "name": "POZMAN",
    "country": "PL",
    "org": "Institute of Bioorganic Chemistry Polish Academy of Science, Poznan Supercomputing and Networking Center",
    "phone": "+48 61 8582010",
    "email": null,
    "domain": "poznan.pl",
    "status": "ASSIGNED",
    "created": "2004-04-17T11:47:57Z",
    "type": "education",
    "registry": "RIPE",
    "prefixes": {
      "ipv_4": ["150.254.0.0/16", "62.3.160.0/19"],
      "ipv_6": ["2001:808::/35"],
      "total": 3
    }
  },
  "status": "success",
  "executionTime": 0
}

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 NewlineFor 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": "AS9112",
    "name": "POZMAN",
    "country": "PL",
    "org": "Institute of Bioorganic Chemistry Polish Academy of Science, Poznan Supercomputing and Networking Center",
    "phone": "+48 61 8582010",
    "email": null,
    "domain": "poznan.pl",
    "status": "ASSIGNED",
    "created": "2004-04-17T11:47:57Z",
    "type": "education",
    "registry": "RIPE",
    "prefixes": {
      "ipv_4": ["150.254.0.0/16", "62.3.160.0/19"],
      "ipv_6": ["2001:808::/35"],
      "total": 3
    }
  },
  "status": "success",
  "executionTime": 0
}

Response properties

data
object
required
status
string
required
Response status (success, or error).
executionTime
integer
required
Time taken to process the data (in milliseconds).