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.
This is the Dart/Flutter client for the ASN Lookup API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_asnlookup: ^1.2.3
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
- API Home: ASN Lookup API
- Documentation: docs.apiverve.com/ref/asnlookup
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_asnlookup
- ASN Lookup API client for Dart/Flutter