API v.1

Команда Результат
$ curl https://nettools.club/api/ip 3.237.2.4
$ curl https://nettools.club/api/ipall ip: 3.237.2.4 isp: Amazon Technologies Inc. org: Amazon Data Services NoVa hostname: ec2-3-237-2-4.compute-1.amazonaws.com latitude: 39.0438 longitude: -77.4874 postal_code: 20149 city: Ashburn country_code: US country_name: United States continent_code: NA continent_name: North America region: Virginia district: Loudoun timezone_name: America/New_York connection_type: Corporate asn_number: 14618 asn_org: Amazon.com, Inc. asn: AS14618 - Amazon.com, Inc. currency_code: USD currency_name: US Dollar success: True premium: False
$ curl https://nettools.club/api/ipall.json {'ip': '3.237.2.4', 'isp': 'Amazon Technologies Inc.', 'org': 'Amazon Data Services NoVa', 'hostname': 'ec2-3-237-2-4.compute-1.amazonaws.com', 'latitude': 39.0438, 'longitude': -77.4874, 'postal_code': '20149', 'city': 'Ashburn', 'country_code': 'US', 'country_name': 'United States', 'continent_code': 'NA', 'continent_name': 'North America', 'region': 'Virginia', 'district': 'Loudoun', 'timezone_name': 'America/New_York', 'connection_type': 'Corporate', 'asn_number': 14618, 'asn_org': 'Amazon.com, Inc.', 'asn': 'AS14618 - Amazon.com, Inc.', 'currency_code': 'USD', 'currency_name': 'US 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"
}