apiverve_meteorites 1.2.4
apiverve_meteorites: ^1.2.4 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.
This is the Dart/Flutter client for the Meteorite Landings API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_meteorites: ^1.2.4
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 #
- API Home: Meteorite Landings API
- Documentation: docs.apiverve.com/ref/meteorites
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve