> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# DEV Community

> Articles, comments, users, tags and organizations on DEV (dev.to), the developer blogging community, through the Forem API v1.

![](https://mintcdn.com/webrouter/gPu3tCeozwRcDBjt/logo/data-apis/dev-to.webp?fit=max\&auto=format\&n=gPu3tCeozwRcDBjt\&q=85\&s=54ce5cde967485b79567258a19b337c9)

[Web Catalog · Social](https://docs.webrouter.net/data-apis.md?category=social)

Key optional

Endpoints

9

Auth

Key in header

[Vendor docs](https://developers.forem.com/api/v1) · Serves `dev.to`

## Setup

| Variable | | What it is |
| - | - | - |
| `DEV_TO_API_KEY` | some calls | Optional DEV API key, generated at dev.to/settings/extensions under 'DEV API Keys'; sent in the api-key header. Public reads work without it. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* The public endpoints listed here need no key; a key is needed for writes and for the authenticated user's own data, which are not listed.
* Paging is page (from 1) and per\_page (1 to 1000; default 30, tags default 10).
* Dates and date-times are RFC 3339.

## Endpoints

GET

List published articles

Published articles, by default featured and ordered by popularity; filter by tag, tags, user or organization, state or top-N days.

[Open](#dev-to-articles-list)

GET

Search articles

Articles whose title, tags or body match a query.

[Open](#dev-to-articles-search)

GET

List latest articles

Published articles, newest first.

[Open](#dev-to-articles-latest)

GET

Get an article by id

One published article with its HTML and markdown body, tags and author.

[Open](#dev-to-articles-get)

GET

Get an article by URL path

One published article from its dev.to/\{username}/\{slug} URL.

[Open](#dev-to-articles-by-path)

GET

List comments of an article

Comments of an article or podcast episode as a threaded tree.

[Open](#dev-to-comments-list)

GET

Get a user

A user's profile by numeric id or username.

[Open](#dev-to-users-get)

GET

List tags

Tags ordered by popularity, or one tag by exact name.

[Open](#dev-to-tags-list)

GET

List an organization's articles

Articles published by an organization, newest first.

[Open](#dev-to-organizations-articles)

### List published articles

GET

`/api/articles`

`dev-to.articles.list`

Published articles, by default featured and ordered by popularity; filter by tag, tags, user or organization, state or top-N days.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1 (default 1).
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 1000 (default 30).
      </td>
    </tr>

    <tr><td>`tag`</td><td>string</td><td>query</td><td>Articles with this tag, by popularity. Combines with top. Example `discuss`</td></tr>
    <tr><td>`tags`</td><td>string</td><td>query</td><td>Articles with any of these comma-separated tags, by popularity. Example `javascript, css`</td></tr>
    <tr><td>`tags_exclude`</td><td>string</td><td>query</td><td>Articles with none of these comma-separated tags. Example `node, java`</td></tr>
    <tr><td>`username`</td><td>string</td><td>query</td><td>Articles of this user or organization, newest first. With state=all, 1000 items are returned instead of 30. Example `ben`</td></tr>
    <tr><td>`state`</td><td>string</td><td>query</td><td>fresh or rising articles; all with username. One of `fresh`, `rising`, `all`</td></tr>
    <tr><td>`top`</td><td>integer</td><td>query</td><td>Most popular articles published in the last N days. Combines with tag. Example `2`</td></tr>

    <tr>
      <td>
        `collection_id`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Articles of this series (collection), oldest first.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)

```python Python theme={null}
router.call_data_api("dev-to.articles.list", {'tag': 'discuss', 'tags': 'javascript, css', 'tags_exclude': 'node, java', 'username': 'ben', 'top': 2})
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.articles.list", params={"tag": "discuss", "tags": "javascript, css", "tags_exclude": "node, java", "username": "ben", "top": 2})
```

### Search articles

GET

`/api/articles/search`

`dev-to.articles.search`

Articles whose title, tags or body match a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `q`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search term, matched against titles, tags and body.
      </td>
    </tr>

    <tr>
      <td>
        `top`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only articles published in the last N days.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1 (default 1).
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-search), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-creators-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-search), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-search), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-search), [Influencers Club](https://docs.webrouter.net/data-apis/influencersclub.md#influencersclub-creators-discover)

```python Python theme={null}
router.call_data_api("dev-to.articles.search")
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.articles.search")
```

### List latest articles

GET

`/api/articles/latest`

`dev-to.articles.latest`

Published articles, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1 (default 1).
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 1000 (default 30).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)

```python Python theme={null}
router.call_data_api("dev-to.articles.latest")
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.articles.latest")
```

### Get an article by id

GET

`/api/articles/{id}`

`dev-to.articles.get`

One published article with its HTML and markdown body, tags and author.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        integer
      </td>

      <td>
        path
      </td>

      <td>
        Numeric article id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)

### Get an article by URL path

GET

`/api/articles/{username}/{slug}`

`dev-to.articles.by_path`

One published article from its dev.to/\{username}/\{slug} URL.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `username`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Author or organization username.
      </td>
    </tr>

    <tr>
      <td>
        `slug`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Article slug, e.g. my-first-post-1234.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)

### List comments of an article

GET

`/api/comments`

`dev-to.comments.list`

Comments of an article or podcast episode as a threaded tree.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`a_id`</td><td>string</td><td>query</td><td>Article id whose comments to return. Example `321`</td></tr>

    <tr>
      <td>
        `p_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Podcast episode id whose comments to return.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page of top-level comments.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 1000 (default 30).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-comments), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-comments), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-profile-comments), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-item-get), [Influencers Club](https://docs.webrouter.net/data-apis/influencersclub.md#influencersclub-posts-details), [Instagram Graph API](https://docs.webrouter.net/data-apis/instagram.md#instagram-comments-list)

```python Python theme={null}
router.call_data_api("dev-to.comments.list", {'a_id': '321'})
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.comments.list", params={"a_id": "321"})
```

> [!NOTE]
>
> * Give either a\_id or p\_id. Replies are nested under their parent comment.

### Get a user

GET

`/api/users/{id}`

`dev-to.users.get`

A user's profile by numeric id or username.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`id` required</td><td>string</td><td>path</td><td>Numeric user id or username. Example `ben`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-user-get)

```python Python theme={null}
router.call_data_api("dev-to.users.get", {'id': 'ben'})
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.users.get", params={"id": "ben"})
```

### List tags

GET

`/api/tags`

`dev-to.tags.list`

Tags ordered by popularity, or one tag by exact name.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1 (default 1).
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 1000 (default 10).
      </td>
    </tr>

    <tr><td>`name`</td><td>string</td><td>query</td><td>Return only the tag with this exact name (case-insensitive); empty list if none. Example `javascript`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1)

```python Python theme={null}
router.call_data_api("dev-to.tags.list", {'name': 'javascript'})
```

```text MCP theme={null}
call_data_api(endpoint="dev-to.tags.list", params={"name": "javascript"})
```

### List an organization's articles

GET

`/api/organizations/{organization_id_or_username}/articles`

`dev-to.organizations.articles`

Articles published by an organization, newest first.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `organization_id_or_username`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Organization numeric id or username.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1 (default 1).
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, 1 to 1000 (default 30).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.forem.com/api/v1) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-social-posts), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-posts), [Edges](https://docs.webrouter.net/data-apis/edges.md#edges-post-extract), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-feed), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-videos-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-list)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.