Autonomous System Number Documentation

An autonomous system is a collection of connected Internet Protocol routing prefixes under the control of one or more network operators on behalf of a single administrative entity or domain, that presents a common and clearly defined routing policy to the Internet.

We offer api to help find the ASN of a given ip.

 1import requests
 2headers= {"X-Auth-Email":"youremail@something-here-re.com"}
 3
 4 # or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
 5headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
 6
 7url="https://api.nmmapper.com/api/v1/asn/?ip=37.120.208.36"
 8res = requests.get(url, headers=headers)
 9res.json()
10
11{'autonomous_system_number': 9009,
12 'autonomous_system_organization': 'M247 Ltd',
13 'ip_address': '37.120.208.36',
14 'prefix_len': 21,
15 'network': '37.120.208.0/21'
16}
17#