API дает возможность использовать наши инструменты прямо из командной строки (cli) или из ваших скриптов.
Команда | Результат |
---|---|
$ curl https://nettools.club/api/ip | 3.147.76.246 |
$ curl https://nettools.club/api/ipall | ip: 3.147.76.246 isp: Amazon.com, Inc. org: Amazon Technologies Inc hostname: latitude: 40.0992 longitude: -83.1141 postal_code: 43017 city: Dublin country_code: US country_name: United States of America continent_code: NA continent_name: North America region: Ohio district: timezone_name: America/New_York connection_type: Corporate asn_number: 16509 asn_org: Amazon.com, Inc. asn: AS16509 - Amazon.com, Inc. currency_code: USD currency_name: USD success: True premium: False |
$ curl https://nettools.club/api/ipall.json | {'ip': '3.147.76.246', 'isp': 'Amazon.com, Inc.', 'org': 'Amazon Technologies Inc', 'hostname': '', 'latitude': 40.0992, 'longitude': -83.1141, 'postal_code': '43017', 'city': 'Dublin', 'country_code': 'US', 'country_name': 'United States of America', 'continent_code': 'NA', 'continent_name': 'North America', 'region': 'Ohio', 'district': '', 'timezone_name': 'America/New_York', 'connection_type': 'Corporate', 'asn_number': 16509, 'asn_org': 'Amazon.com, Inc.', 'asn': 'AS16509 - 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" } |