adenforshaw / thecatapi-website Goto Github PK
View Code? Open in Web Editor NEWVueJS / Vuetify website for theCatAPI.com
License: MIT License
VueJS / Vuetify website for theCatAPI.com
License: MIT License
While requesting data it seems that the requested data has things that isn't in the docs
[
{"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
The doc here here is saying that when include_vote & include_favorite is set to 1 in query params, it will return the votes count & is that cat set as favorite or not.
But it does not return the expected result.
I am using the following request:
GET https://api.thecatapi.com/v1/images?limit=100&page=0&include_vote=1&include_favorite=1
I used the Dog API for n example page to test some Vue stuff on.
Unfortunately the API call is no longer working as expected:
https://api.thedogapi.com/v1/images/search?limit=20
this returns always 10 pictures to me and didn't get me the breed information back as well (which I used to display the dogs names below the image).
Why does it not longer provide the information said in the api reference:
https://docs.thedogapi.com/api-reference/images/images-search ?
For accessibility it would be great if the random images came with alt text attributes as well as their url source.
The wrong favicon is display on the website.
Please refer to wikipedia for the correct specie classification of Felis gatus
I keep getting this error while trying to upload onto the api
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?
Playing with the jQuery example and wondering how I would add and utilize my API access code in that example?
Thanks
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.
Searching by multiple categories seems to be broken and not returning any results (both without and with API key), e.g. https://api.thecatapi.com/v1/images/search?category_ids=1,4
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.
Hi,
i'm trying to get an access key, i Signup on https://thecatapi.com/, but after submitting the form the page seems stuck on "Loading..".
After a while i get an alert message saying ‘Cannot read property 'data' of undefined“‘.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.