Dogs API

Beginner's Pick Animals / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)
95 A+
Measured Score 0 50 100 Reachability 30/30 Speed 15/20 Security 15/15 Developer XP 20/20 Reliability 15/15 TESTED 2026-07-23

Overview

The Dog CEO API serves random dog images from the Stanford Dogs Dataset, organized by breed. No auth needed—it returns direct image URLs, perfect for building a dog photo app.

Beginner Tip

Use /api/breeds/image/random for one image. Append a breed name like /api/breed/husky/images/random for breed-specific photos.

Available Data

random dog image URLs
breed and sub-breed lists
breed-specific images

Example Response

JSON Response
{
  "message": "https://images.dog.ceo/breeds/retriever-golden/n02099601_1.jpg",
  "status": "success"
}

Field Reference

message URL of the random dog image—use this as your img src attribute
status API response status, always "success" on valid requests

Implementation Example

Request
const url = "https://dog.ceo/dog-api/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 breed not found Using a breed name not in the dataset or with incorrect casing
First call /api/breeds/list/all to get the exact list of valid breed names
Slow image load Images are large JPEGs hosted on dog.ceo CDN
Display a loading spinner while the image fetches; consider caching URLs client-side
Sub-breed 404 Using /breed/spaniel without specifying a sub-breed when multiple exist
List sub-breeds via /api/breed/spaniel/list before requesting images

Measured Score Breakdown

Live HTTP request to the API endpoint

Reachability 30/30
Speed 15/20
Security 15/15
Developer XP 20/20
Reliability 15/15
Endpoint Response Time 411ms

Fully tested on Jul 23, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Animals
Difficulty Beginner
Verified: 2026-04-04

Related Tags

Recipes Using Dogs

Build something with this API. Each recipe includes step-by-step instructions and code outlines.

Similar APIs

View All →