Domain Age API - Dart/Flutter Client
Domain Age returns when a domain was first registered and how old it is in days, months and years, with a readable age, an age bracket and a newly-registered flag. Paid plans add the expiration date and the last registry update.
This is the Dart/Flutter client for the Domain Age API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_domainage: ^1.2.3
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_domainage/apiverve_domainage.dart';
void main() async {
final client = DomainageClient('YOUR_API_KEY');
try {
final response = await client.execute({
'domain': 'myspace.com'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"domain": "myspace.com",
"createdDate": "1996-02-22T05:00:00Z",
"domainAgeDays": 11193,
"domainAgeMonths": 367,
"domainAgeYears": 30.6,
"domainAgeText": "30 years, 7 months",
"ageCategory": "veteran",
"isNewlyRegistered": false,
"expirationDate": "2029-02-23T05:00:00Z",
"lastUpdatedDate": "2023-01-17T00:16:21Z",
"daysSinceLastUpdate": 1367
}
}
API Reference
- API Home: Domain Age API
- Documentation: docs.apiverve.com/ref/domainage
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_domainage
- Domain Age API client for Dart/Flutter