# Dog CEO API

> Returns dog breeds, sub-breeds and random or per-breed dog photos.

Category: Entertainment & Books. Region: global. 6 endpoints at `https://api.hoshime.com/v1/dogceo/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/dogceo
## GET /v1/dogceo/breeds

All dog breeds and their sub-breeds.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string), `subBreeds` (Name[]), `subBreeds[].name` (string)

```bash
curl "https://api.hoshime.com/v1/dogceo/breeds" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dogceo/image

A random photo of a dog breed, or of any breed when none is given.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `breed` | string | no | Breed such as hound, or sub-breed such as hound/afghan; any breed when empty. (e.g. hound) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `breed` (string), `height` (any), `url` (string), `width` (any)

```bash
curl "https://api.hoshime.com/v1/dogceo/image?breed=hound" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dogceo/breedList

The main dog breeds, without their sub-breeds.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/dogceo/breedList" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dogceo/subBreeds

The sub-breeds of one dog breed, such as afghan for hound.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `breed` | string | yes | Main breed, such as hound. (e.g. hound) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `name` (string)

```bash
curl "https://api.hoshime.com/v1/dogceo/subBreeds?breed=hound" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dogceo/randomImages

Several random photos of one breed, or of any breed when none is given.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `breed` | string | no | Breed such as hound, or sub-breed such as hound/afghan; any breed when empty. (e.g. hound) |
| `limit` | integer | no | Items per page, 1 to 50. (default 3; e.g. 2) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `breed` (string), `height` (any), `url` (string), `width` (any)

```bash
curl "https://api.hoshime.com/v1/dogceo/randomImages?breed=hound&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/dogceo/breedImages

Every photo of one breed, paged in the order the site lists them.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `breed` | string | yes | Breed such as hound, or sub-breed such as hound/afghan. (e.g. hound/afghan) |
| `limit` | integer | no | Photos per page, from 1 to 500. (default 50; e.g. 2) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `breed` (string), `height` (any), `url` (string), `width` (any)

```bash
curl "https://api.hoshime.com/v1/dogceo/breedImages?breed=hound%2Fafghan&limit=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
