Skip to main content

apiverve_airlinelookup 1.2.3 copy "apiverve_airlinelookup: ^1.2.3" to clipboard
apiverve_airlinelookup: ^1.2.3 copied to clipboard

Airline Lookup is an airline codes API that matches IATA codes and airline names to carrier profiles, returning the official title, callsign, registration country, and low-cost status. Paid tiers add [...]

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, and low-cost status. Paid tiers add three-letter ICAO code lookups and carrier logo URLs.

pub package License: MIT

This is the Dart/Flutter client for the Airline Lookup API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_airlinelookup: ^1.2.3

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",
      "islowcost": false,
      "logourl": "https://storage.googleapis.com/apiverve/APIResources/arlinelookup/logos/AA.png?X-Goog-Algorithm=..."
    }
  ]
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
0
points
1.14k
downloads

Publisher

verified publisherapiverve.com

Weekly Downloads

Airline Lookup is an airline codes API that matches IATA codes and airline names to carrier profiles, returning the official title, callsign, registration country, and low-cost status. Paid tiers add three-letter ICAO code lookups and carrier logo URLs.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_airlinelookup