tapi 1.0.0
tapi: ^1.0.0 copied to clipboard
A Dart library for interacting with TridentLab API. Provides methods for IP lookup, ASN queries, WHOIS, and DNS information retrieval.
Changelog #
1.0.0 - 2025-01-23 #
Added #
- Initial release of tapi library
ipinfo([ip])- Get IP information for requesting device or specific IP address- Support for both IPv4 and IPv6 addresses
- Optional parameter for querying specific IP addresses
asn([asNumber])- Get ASN (Autonomous System Number) information- Support for both "AS15169" and "15169" formats
- Optional parameter for querying specific ASN
whois(domain)- Get WHOIS information for top-level domains- Input validation for domain format
- Prevents protocol and subdomain inclusion
dns(domain)- Get DNS records for domains- Support for both top-level domains and subdomains
- Input validation for domain format
Features #
- Clean and intuitive API design
- Type-safe responses with
Map<String, dynamic> - Automatic JSON parsing
- Input validation for all endpoints
- Flexible parameter handling with optional arguments
- Support for both authenticated and public endpoints
Dependencies #
http: ^1.1.0- HTTP client for API requests