Giter VIP home page Giter VIP logo

thecatapi-website's People

Contributors

adenforshaw avatar fibii avatar maurer2 avatar riddhiparekh avatar seventy6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

thecatapi-website's Issues

Docs Vs Reality

While requesting data it seems that the requested data has things that isn't in the docs
Screenshot_2021-04-08-11-02-12-50

[
  {"breeds":[
    {"weight":
      {"imperial":"7 - 20","metric":"3 - 9"},
    "id":"tvan",
    "name":"Turkish Van",
    "cfa_url":"http://cfa.org/Breeds/BreedsSthruT/TurkishVan.aspx",
    "vetstreet_url":"http://www.vetstreet.com/cats/turkish-van",
    "vcahospitals_url":"https://vcahospitals.com/know-your-pet/cat-breeds/turkish-van",
    "temperament":"Agile, Intelligent, Loyal, Playful, Energetic",
    "origin":"Turkey",
    "country_codes":"TR",
    "country_code":"TR",
    "description":"While the Turkish Van loves to jump and climb, play with toys, retrieve and play chase, she is is big and ungainly; this is one cat who doesn’t always land on his feet. While not much of a lap cat, the Van will be happy to cuddle next to you and sleep in your bed. ",
    "life_span":"12 - 17",
    "indoor":0,
    "alt_names":"Turkish Cat, Swimming cat",
    "adaptability":5,
    "affection_level":5,
    "child_friendly":4,
    "dog_friendly":5,
    "energy_level":5,
    "grooming":2,
    "health_issues":1, 
    "intelligence":5,
    "shedding_level":3,
    "social_needs":4,
    "stranger_friendly":4,
    "vocalisation":5,
    "experimental":0,
    "hairless":0,
    "natural":1,
    "rare":0,
    "rex":0,
    "suppressed_tail":0,
    "short_legs":0,
    "wikipedia_url":"https://en.wikipedia.org/wiki/Turkish_Van",
    "hypoallergenic":0,
    "reference_image_id":"sxIXJax6h"}
  ],
  "id":"sxIXJax6h",
  "url":"https://cdn2.thecatapi.com/images/sxIXJax6h.jpg",
  "width":960,
  "height":1280
  }
]```
In breeds the cfa_url and other keys doesn't exist also the weight doesn't return a string it actually return a dictionary

[bug] wrong favicon ;-)

Issue description

The wrong favicon is display on the website.

Steps to reproduce the issue

  1. Browse to https://thecatapi.com/
  2. Look at favicon

What's the expected result?

  • Favicon should be a cat cat

What's the actual result?

  • Favicon is not a cat dog

Additional details / screenshot

Please refer to wikipedia for the correct specie classification of Felis gatus

Breeds does not return breeds

Apologies in advance if I am PEBKACing here.

I am trying to call for just Bengal cats in Python3, but am getting all breeds.

def get_cat_by_breed(breed_name):
    from requests import get
    from json import loads
    url = "https://api.thecatapi.com/v1/images/search"
    breeds = ["name", breed_name]
    params = {"breeds": breeds,
              "api_key": api_key,
              "limit": 100,
              "page": 1}
    response = get(
        url=url,
        params=params)
    return loads(response.content)

What am I doing wrong?

Help with API access code

Playing with the jQuery example and wondering how I would add and utilize my API access code in that example?
Thanks

Return images of x pixels or y pixels

It would be great to be able to call for images by their pixel dimensions so that one can, for example, request only pictures that are >=x pixels.

Search by Breed or Category doesn't require API Key

Although the documentation states that both Search by Category and Search by Breed requires an API Key for authentication, I can access the whole API without an API key. I normally wouldn't be complaining except that I'm trying to use this library as an example API for a class I'm teaching and want to demonstrate the purpose of API Keys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.