{"repo":"ElliottLandsborough/dog-ceo-api","free":true,"listed":false,"github":"https://github.com/ElliottLandsborough/dog-ceo-api","clone":"git clone https://github.com/ElliottLandsborough/dog-ceo-api.git","description":"The API hosted at dog.ceo","language":"PHP","stars":716,"topics":["symfony","api","json","xml","breed","php","composer","dog","dogs"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Dog CEO API Info - Images are hosted on Vultr, The Everywhere Cloud - To add your own images submit a pull request to https://github.com/jigsawpieces/dog-api-images - Some API requests are cached from AWS lambda https://github.com/ElliottLandsborough/dog-ceo-api-golang Examples - p5.js: https://editor.p5js.org/codingtrain/sketches/lQxT7PTKC - 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 Stats Dependencies - php 8.3+ - Symfony 6 - modules - composer - run make build; make install; make test; for unit tests Not sure that the yaml module is actually require below: Setup - Clone repo - composer install - cd public - php -S 127.0.0.1:6969 .env.local Cache clear: Response Structure All endpoints return JSON in this format: The message field contains the actual data and varies by endpoint: - String: single image URL - Array: lists of breeds, sub-breeds, or multiple image URLs - Object: breeds with their sub-breeds (key-value pairs) Error responses include a code field: Endpoints Breed Lists /breeds/list/all List all breed names including sub breeds. Returns object with breed names as keys and sub-breed arrays as values. Empty arrays indicate no sub-breeds exist for that breed. /breeds/list/all/random Get random breed including any sub breeds. /breeds/list/all/random/10 Get 10 random breeds including any sub breeds. /breed","default_branch":null,"files":null,"tree":[],"storefront":"/r/ElliottLandsborough","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ElliottLandsborough/dog-ceo-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}