API v.1

Команда Результат
$ curl https://nettools.club/api/ip 18.97.14.87
$ curl https://nettools.club/api/ipall ip: 18.97.14.87 isp: Amazon.com, Inc. org: Amazon Technologies Inc hostname: latitude: 39.0438 longitude: -77.4874 postal_code: 20149 city: Ashburn country_code: US country_name: United States of America continent_code: NA continent_name: North America region: Virginia district: 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: USD success: True premium: False
$ curl https://nettools.club/api/ipall.json {'ip': '18.97.14.87', 'isp': 'Amazon.com, Inc.', 'org': 'Amazon Technologies Inc', 'hostname': '', 'latitude': 39.0438, 'longitude': -77.4874, 'postal_code': '20149', 'city': 'Ashburn', 'country_code': 'US', 'country_name': 'United States of America', 'continent_code': 'NA', 'continent_name': 'North America', 'region': 'Virginia', 'district': '', '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': 'USD', '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"
}