Skip to main content

apiverve_meteorites 1.2.5 copy "apiverve_meteorites: ^1.2.5" to clipboard
apiverve_meteorites: ^1.2.5 copied to clipboard

Meteorite Landings searches recorded meteor strikes by specimen name and minimum mass. Each record includes the official specimen name, meteorite classification, mass in grams, and the recorded fall year.

Meteorite Landings API - Dart/Flutter Client #

Meteorite Landings searches recorded meteor strikes by specimen name and minimum mass. Each record includes the official specimen name, meteorite classification, mass in grams, and the recorded fall year.

pub package License: MIT

This is the Dart/Flutter client for the Meteorite Landings API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_meteorites: ^1.2.5

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_meteorites/apiverve_meteorites.dart';

void main() async {
  final client = MeteoritesClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'name': 'Allende',
      'mass': 100,
      'year': 1969
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "filteredOn": [
      "name"
    ],
    "meteors": [
      {
        "name": "Allende",
        "recclass": "CV3",
        "mass": "2000000",
        "year": "1969",
        "geolocation": {
          "type": "Point",
          "coordinates": [
            -105.31667,
            26.96667
          ]
        }
      }
    ]
  }
}

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
120
points
301
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Meteorite Landings searches recorded meteor strikes by specimen name and minimum mass. Each record includes the official specimen name, meteorite classification, mass in grams, and the recorded fall year.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_meteorites