This current version is using cloudflare workers. The old PHP version can be found here.
- To add your own images submit a pull request to https://github.com/jigsawpieces/dog-api-images
- Vanilla JS: https://codepen.io/elliottlan/pen/MNEWNx
- Jquery: https://codepen.io/elliottlan/pen/KOXKLG
- Flutter: https://github.com/LIVELUCKY/dogs
- Node.js: https://github.com/mrbrunelli/dog-time-decorator
- npm
npm install
npm run dev:remote
npm run deploy
npm run test
List all breed names including sub breeds.
Get random breed including any sub breeds.
Get 10 random breeds including any sub breeds.
List all master breed names.
Get single random master breed.
Get 10 random master breeds.
List sub breeds.
List random sub breed.
List 10 random sub breeds.
Get master breed info (data is incomplete, see content folder).
Get sub breed info (data is incomplete, see content folder).
Random image from any breed.
Get 3 random images from any breed (max. 50)
Get all breed images.
Get random image from a breed (and all its sub-breeds).
Get 4 random images from a breed (and all its sub-breeds).
Get all images from a sub breed.
Get random image from a sub breed.
Get 5 random images from a sub breed.
These endpoints might change in the future...
https://dog.ceo/api/breeds/image/random/alt
https://dog.ceo/api/breeds/image/random/1/alt
https://dog.ceo/api/breeds/image/random/9/alt
https://dog.ceo/api/breed/hound/images/alt
https://dog.ceo/api/breed/hound/images/random/1/alt
https://dog.ceo/api/breed/hound/images/random/9/alt
https://dog.ceo/api/breed/hound/afghan/images/alt
https://dog.ceo/api/breed/hound/afghan/images/random/alt
Add 'Content-Type' request header containing 'application/xml' to any endpoint.