Skip to main content

apiverve_asnlookup 1.2.2 copy "apiverve_asnlookup: ^1.2.2" to clipboard
apiverve_asnlookup: ^1.2.2 copied to clipboard

ASN Lookup resolves any Autonomous System Number to its registered organization name and numeric identifier. Paid plans add the registry handle, country code, and announced IP range statistics.

ASN Lookup API - Dart/Flutter Client #

ASN Lookup resolves any Autonomous System Number to its registered organization name and numeric identifier. Paid plans add the registry handle, country code, and announced IP range statistics.

pub package License: MIT

This is the Dart/Flutter client for the ASN Lookup API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_asnlookup: ^1.2.2

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_asnlookup/apiverve_asnlookup.dart';

void main() async {
  final client = AsnlookupClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'asn': 'AS15169'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "asn": "AS15169",
    "simple": "15169",
    "handle": "GOOGLE",
    "description": "Google LLC",
    "country": "US",
    "ipv4RangeCount": 152,
    "ipv6RangeCount": 33,
    "ipv4AddressCount": 1314816
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
155
downloads

Documentation

API reference

Publisher

verified publisherapiverve.com

Weekly Downloads

ASN Lookup resolves any Autonomous System Number to its registered organization name and numeric identifier. Paid plans add the registry handle, country code, and announced IP range statistics.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_asnlookup