Skip to main content

apiverve_catbreeds 1.2.7 copy "apiverve_catbreeds: ^1.2.7" to clipboard
apiverve_catbreeds: ^1.2.7 copied to clipboard

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 s [...]

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.

pub package License: MIT

This is the Dart/Flutter client for the Cat Breeds API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_catbreeds: ^1.2.7

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 #

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
95
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_catbreeds