Airline Lookup API - Dart/Flutter Client
Airline Lookup is an airline codes API that matches IATA codes and airline names to carrier profiles, returning the official title, callsign, registration country, whether the carrier is still operating, and low-cost status. Paid tiers add the country's ISO code, three-letter ICAO code lookups and carrier logo URLs.
This is the Dart/Flutter client for the Airline Lookup API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_airlinelookup: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_airlinelookup/apiverve_airlinelookup.dart';
void main() async {
final client = AirlinelookupClient('YOUR_API_KEY');
try {
final response = await client.execute({
'iata': 'AA'
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": [
{
"name": "American Airlines",
"alias": null,
"iata": "AA",
"icao": "AAL",
"callsign": "AMERICAN",
"country": "United States",
"id": "AA",
"isactive": true,
"countrycode": "US",
"islowcost": false,
"logourl": "https://storage.googleapis.com/apiverve/APIResources/arlinelookup/logos/AA.png?X-Goog-Algorithm=..."
}
]
}
API Reference
- API Home: Airline Lookup API
- Documentation: docs.apiverve.com/ref/airlinelookup
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_airlinelookup
- Airline Lookup API client for Dart/Flutter