API v.1

Команда Результат
$ curl https://nettools.club/api/ip 23.20.20.52
$ curl https://nettools.club/api/ipall ip: 23.20.20.52 isp: Amazon.com org: Amazon Data Services NoVa hostname: ec2-23-20-20-52.compute-1.amazonaws.com latitude: 45.5017 longitude: -73.5673 postal_code: H4X city: Montreal country_code: CA country_name: Canada continent_code: NA continent_name: North America region: Quebec district: Montréal timezone_name: America/Toronto connection_type: Corporate asn_number: 14618 asn_org: Amazon.com, Inc. asn: AS14618 - Amazon.com, Inc. currency_code: CAD currency_name: Canadian Dollar success: True premium: False
$ curl https://nettools.club/api/ipall.json {'ip': '23.20.20.52', 'isp': 'Amazon.com', 'org': 'Amazon Data Services NoVa', 'hostname': 'ec2-23-20-20-52.compute-1.amazonaws.com', 'latitude': 45.5017, 'longitude': -73.5673, 'postal_code': 'H4X', 'city': 'Montreal', 'country_code': 'CA', 'country_name': 'Canada', 'continent_code': 'NA', 'continent_name': 'North America', 'region': 'Quebec', 'district': 'Montréal', 'timezone_name': 'America/Toronto', 'connection_type': 'Corporate', 'asn_number': 14618, 'asn_org': 'Amazon.com, Inc.', 'asn': 'AS14618 - Amazon.com, Inc.', 'currency_code': 'CAD', 'currency_name': 'Canadian Dollar', 'success': True, 'premium': False}
$ curl https://nettools.club/api/mac=MA:CA:DD:RE:SS:00



*допустимые форматы MAC адреса в запросе:
MA:CA:DD:RE:SS:00
MA-CA-DD-RE-SS-00
maca.ddre.ss00
macadd

*регистр не важен.
{
"name": "Vendor Name"
"address": "Vendor Address"
}