ASN Lookup API - Dart/Flutter Client
ASN Lookup is a simple tool for getting information on Autonomous System Numbers (ASNs). It returns information on various ASNs.
This is the Dart/Flutter client for the ASN Lookup API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_asnlookup: ^1.2.0
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"
}
}
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