# DEV Community API

> Latest and home-feed articles of dev.to with authors, tags and reaction counts, never the text.

Category: Developer & Tech. Region: Global. 2 endpoints at `https://api.hoshime.com/v1/devto/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/devto
## GET /v1/devto/latest

Newest articles on dev.to, optionally of one tag: title, link, author, tags and counts, never the text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | no | Only articles with this tag, such as javascript. Omit it for all tags. |
| `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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `commentCount` (any), `id` (string), `imageUrl` (string), `publishedAt` (string), `reactionCount` (any), `readMinutes` (any), `tags` (string[]), `title` (string), `url` (string)

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

## GET /v1/devto/home

Articles of the dev.to home feed, as a signed-out visitor sees it, optionally of one tag.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | no | Only articles with this tag, such as javascript. Omit it for all tags. (e.g. javascript) |
| `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: `author` (Author), `author.avatarUrl` (string), `author.id` (string), `author.name` (string), `author.url` (string), `author.username` (string), `commentCount` (any), `id` (string), `imageUrl` (string), `publishedAt` (string), `reactionCount` (any), `readMinutes` (any), `tags` (string[]), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/devto/home?tag=javascript" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
