API v.1

Команда Результат
$ curl https://nettools.club/api/ip 35.173.234.169
$ curl https://nettools.club/api/ipall ip: 35.173.234.169 isp: Amazon.com, Inc. org: Amazon Technologies Inc hostname: ec2-35-173-234-169.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': '35.173.234.169', 'isp': 'Amazon.com, Inc.', 'org': 'Amazon Technologies Inc', 'hostname': 'ec2-35-173-234-169.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"
}