Dog API
dog.ceo · Developer Tools
Random dog images by breed — 20,000+ dog photos across 100+ breeds and sub-breeds. No API key required.
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Random dog image
Get a random dog photo URL.
https://dog.ceo/api/breeds/image/random
Hover any highlighted part to learn what it does
curl -X GET "https://dog.ceo/api/breeds/image/random"
import requests
response = requests.get(
"https://dog.ceo/api/breeds/image/random",
)
print(response.json())const url = 'https://dog.ceo/api/breeds/image/random'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://dog.ceo/api/breeds/image/random"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://dog.ceo/api/breeds/image/random")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://dog.ceo/api/breeds/image/random";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Random breed image
Get a random labrador photo.
https://dog.ceo/api/breed/labrador/images/random
Hover any highlighted part to learn what it does
curl -X GET "https://dog.ceo/api/breed/labrador/images/random"
import requests
response = requests.get(
"https://dog.ceo/api/breed/labrador/images/random",
)
print(response.json())const url = 'https://dog.ceo/api/breed/labrador/images/random'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://dog.ceo/api/breed/labrador/images/random"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://dog.ceo/api/breed/labrador/images/random")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://dog.ceo/api/breed/labrador/images/random";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
List all breeds
List all 100+ available dog breeds.
https://dog.ceo/api/breeds/list/all
Hover any highlighted part to learn what it does
curl -X GET "https://dog.ceo/api/breeds/list/all"
import requests
response = requests.get(
"https://dog.ceo/api/breeds/list/all",
)
print(response.json())const url = 'https://dog.ceo/api/breeds/list/all'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://dog.ceo/api/breeds/list/all"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://dog.ceo/api/breeds/list/all")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://dog.ceo/api/breeds/list/all";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- No API key needed
- Random: GET https://dog.ceo/api/breeds/image/random
- By breed: GET /breed/golden/images/random
- Multiple: GET /breeds/image/random/5 (5 random images)
- All breeds: GET /breeds/list/all
What can you build with Dog API?
Dog API is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Dog API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide