Cat Breeds API - Dart/Flutter Client
Cat Breeds returns breed records by name or alternate name, or filtered by country of origin, size, coat type and lower-allergen status. Every plan gets the breed name, other names, origin, registry status, size, coat, wild ancestry and parent breeds. Paid plans add weight and lifespan ranges, temperament traits, 1-5 ratings for energy, grooming, shedding, voice and affection, the lower-allergen flag and a short description. Covers 94 breeds.
This is the Dart/Flutter client for the Cat Breeds API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_catbreeds: ^1.2.6
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_catbreeds/apiverve_catbreeds.dart';
void main() async {
final client = CatbreedsClient('YOUR_API_KEY');
try {
final response = await client.execute({
'name': 'maine coon',
'origin': 'Thailand',
'size': 'large',
'coat': 'curly',
'hypoallergenic': true
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"query": "maine coon",
"totalMatches": 1,
"count": 1,
"breeds": [
{
"name": "Maine Coon",
"alternateNames": [
"American longhair"
],
"origin": [
"United States"
],
"registryStatus": "established",
"size": "large",
"coat": "long",
"wildAncestors": [],
"developedFrom": [],
"weight": {
"lowerLbs": 12,
"upperLbs": 22
},
"lifeSpan": {
"lowerYears": 10,
"upperYears": 13
},
"traits": [
"gentle",
"friendly",
"playful",
"intelligent",
"sociable"
],
"energyLevel": 3,
"groomingNeeds": 3,
"sheddingLevel": 4,
"vocalLevel": 3,
"affectionLevel": 4,
"hypoallergenic": false,
"description": "One of the largest domestic breeds, with a shaggy water-resistant coat, tufted ears and a bushy tail, known as a sociable gentle giant.",
"wikidataId": "Q42659"
}
]
}
}
API Reference
- API Home: Cat Breeds API
- Documentation: docs.apiverve.com/ref/catbreeds
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_catbreeds
- Cat Breeds API client for Dart/Flutter