# Dev.to Scraper: DevTo Articles, Authors, Reactions & Comments (`best_celerytop/devto-articles-scraper`) Actor

Dev.to (devto) articles scraper. Collect Dev.to posts by tag, author, top or rising feed, or by URL. One row per article: title, tags, reactions, comments count, reading time, author with Twitter, GitHub and website, optional full text, comments and author profile. Official Forem API, no key.

- **URL**: https://apify.com/best_celerytop/devto-articles-scraper.md
- **Developed by:** [Konstantin Semin](https://apify.com/best_celerytop) (community)
- **Categories:** Developer tools, Marketing, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 articles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Dev.to Articles Scraper: Posts, Authors, Reactions & Comments

Collect articles from [Dev.to](https://dev.to), the developer community with over a million members, by tag, by author, from the top, rising, fresh or latest feed, or by direct link, and get one clean row per article: title, description, tags, reactions, number of comments, reading time, language, dates, cover image, AI-disclosure label, canonical URL, and the author with their Twitter, GitHub and website. Switch on the extras to add the full article text (Markdown and plain text), the comment thread, and the author's profile.

The Actor uses the official Dev.to (Forem) API. No login, no browser, no proxies, no API key.

### What you can do with it

- **Community and ecosystem research**: who writes about a technology, how often and with what reception, with the public profile links authors list on Dev.to.
- **Content research**: what gets reactions on a tag, how long the top posts are, which tags they combine.
- **Trend monitoring**: schedule a daily run of the rising or top feed for your tags and get only articles published after yesterday.
- **Brand and product monitoring**: every article by your team or your competitors, with reactions and comments over time.
- **AI training and summarisation**: full article text in Markdown, ready for RAG pipelines and assistants.

### Input

| Field | Type | Description |
|---|---|---|
| `tags` | array | Tags, one per line. Each tag is collected separately. |
| `usernames` | array | Authors, one per line. All their articles. |
| `feed` | string | `newest` (default, Dev.to's recent order), `top`, `rising`, `fresh` or `latest`. Applies to each tag or author; without a tag or author it is the site-wide feed. |
| `topDays` | integer | For `top`: last N days. Default `7`. |
| `articleUrls` | array | Specific articles as `https://dev.to/username/slug` links or numeric ids. |
| `minReactions` | integer | Skip articles with fewer public reactions. |
| `publishedAfter` | string | Skip articles published before this date (`YYYY-MM-DD`). |
| `includeContent` | boolean | Add `bodyMarkdown` and `bodyText`. Default `false`. |
| `includeComments` | boolean | Add the comment thread. Default `false`. |
| `maxComments` | integer | Cap on comments per article. Default `50`. |
| `includeAuthorProfile` | boolean | Add the author's bio, location, join date and badge count. Default `false`. |
| `maxItems` | integer | Maximum number of articles saved. Default `100`. |

#### Example input

```json
{
    "tags": ["python", "ai"],
    "feed": "top",
    "topDays": 30,
    "minReactions": 20,
    "includeContent": true,
    "maxItems": 200
}
```

### Output

One dataset item per article.

```json
{
    "id": 5024286,
    "title": "Long Live Rails",
    "description": "I managed to write this without referring to the common phrase...",
    "url": "https://dev.to/ben/long-live-rails-3p21",
    "canonicalUrl": "https://dev.to/ben/long-live-rails-3p21",
    "slug": "long-live-rails-3p21",
    "publishedAt": "2026-11-12T16:20:11Z",
    "createdAt": "2026-11-12T15:58:02Z",
    "editedAt": "2026-11-12T16:31:40Z",
    "crosspostedAt": null,
    "lastCommentAt": "2026-11-14T09:12:55Z",
    "readingTimeMinutes": 4,
    "language": "en",
    "tags": ["rails", "ruby", "rust", "ai"],
    "reactions": 122,
    "positiveReactions": 122,
    "commentsCount": 17,
    "coverImage": "https://media2.dev.to/dynamic/image/.../cover.png",
    "socialImage": "https://media2.dev.to/dynamic/image/.../social.png",
    "aiDisclosure": "not_disclosed",
    "collectionId": null,
    "author": {
        "username": "ben",
        "name": "Ben Halpern",
        "userId": 1,
        "twitter": "bendhalpern",
        "github": "benhalpern",
        "website": "http://benhalpern.com",
        "profileImage": "https://media2.dev.to/dynamic/image/.../profile.png"
    },
    "authorProfile": { "summary": "A Canadian software developer...", "location": "NY", "joinedAt": "Dec 27, 2015", "badgesCount": 77 },
    "bodyMarkdown": "There has been a lot of talk lately about...",
    "bodyText": "There has been a lot of talk lately about...",
    "comments": [
        { "id": "3l1ab", "parentId": null, "depth": 0, "createdAt": "2026-11-12T16:22:36Z", "body": "I managed to write this without...", "aiDisclosure": "not_disclosed", "author": "ben", "authorName": "Ben Halpern" }
    ],
    "scrapedAt": "2026-11-14T16:00:00.000Z"
}
```

`authorProfile`, `bodyMarkdown`, `bodyText` and `comments` appear only when the matching option is on. Fields Dev.to does not have for an article are `null`.

A `RUN_SUMMARY` record in the key-value store lists how many articles each feed returned and which links were not found.

### Good to know

- **Scale and speed.** Feeds return 100 articles per request; a few thousand articles without extras take about a minute. With text, comments or profiles, expect roughly 100 to 150 articles per minute.
- **The recent feed stops early** once a whole page is older than `publishedAfter`, so a daily "what is new on my tags" schedule is cheap.
- **Reactions** are Dev.to's public reaction count (hearts, unicorns, bookmarks and the rest together).
- **Keyword search** is not offered by the Dev.to API; combine tags, authors and `minReactions` instead.
- **Polite by design.** Requests go to the public API with a plain user agent, small concurrency and a pause between pages.
- **Price.** $1 per 1,000 articles, no start fee; platform usage is included.
- **Works with n8n, Make, Zapier and AI agents.** The official Apify node for n8n runs this Actor and returns the rows inside a workflow, Make and Zapier use the Apify integration, and AI agents call it as a tool through the Apify MCP server.
- **Respect the people behind the data.** Don't use it for unsolicited bulk outreach.

### FAQ

**Can I get all articles of a tag?**
Yes, set `feed` to `newest`, leave `publishedAfter` empty and raise `maxItems`.

**Does it work for other Forem sites?**
This Actor reads dev.to only.

**How do I scrape Dev.to articles by tag?**
Enter the tags, pick a feed such as top or newest, and run. Each article comes with reactions, comments count, reading time, tags and the author's GitHub and Twitter.

**Does Dev.to have a public API?**
Yes, the Forem API. Reading articles needs no key, and the Actor uses it directly.

**Can I export Dev.to posts to CSV?**
Yes. Download the run's dataset as CSV, Excel or JSON, or pull it through the Apify API.

**Can I use it from n8n or an AI agent?**
Yes. Start it through the official Apify node for n8n, the Make or Zapier integration, or the Apify MCP server, and read the rows back from the dataset.

**Something is missing or broken?**
Open an issue on the Issues tab and include the input you used.

### Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Dev.to or Forem. Articles belong to their authors.

# Actor input Schema

## `tags` (type: `array`):

Dev.to tags, one per line, for example `python`, `webdev`, `ai`. Each tag is collected separately.

## `usernames` (type: `array`):

Dev.to usernames, one per line, for example `ben` or `https://dev.to/ben`. All articles of each author.

## `feed` (type: `string`):

Which articles to take for each tag or author, or from the whole site when no tag or author is given. `top` uses the number of days below.

## `topDays` (type: `integer`):

For the `top` feed: articles published in the last N days, best first. Use 3650 for all time.

## `articleUrls` (type: `array`):

Specific articles as `https://dev.to/username/slug` links or numeric ids.

## `minReactions` (type: `integer`):

Skip articles with fewer public reactions.

## `publishedAfter` (type: `string`):

Skip articles published before this date, for example `2026-01-01`.

## `includeContent` (type: `boolean`):

Add the full article as Markdown and as plain text. One extra request per article.

## `includeComments` (type: `boolean`):

Add the comment thread as a flat list with depth and author. One extra request per article with comments.

## `maxComments` (type: `integer`):

Cap on comments kept per article.

## `includeAuthorProfile` (type: `boolean`):

Add the author's bio, location, join date and badge count. One request per distinct author.

## `maxItems` (type: `integer`):

Maximum number of articles saved in the run.

## Actor input object example

```json
{
  "tags": [
    "python"
  ],
  "feed": "top",
  "topDays": 7,
  "includeContent": false,
  "includeComments": false,
  "maxComments": 50,
  "includeAuthorProfile": false,
  "maxItems": 20
}
```

# Actor output Schema

## `articles` (type: `string`):

Dev.to articles with reactions, tags, author, and optional text, comments and author profile.

## `runSummary` (type: `string`):

How many articles each feed returned and which URLs were not found.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tags": [
        "python"
    ],
    "feed": "top",
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("best_celerytop/devto-articles-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tags": ["python"],
    "feed": "top",
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("best_celerytop/devto-articles-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tags": [
    "python"
  ],
  "feed": "top",
  "maxItems": 20
}' |
apify call best_celerytop/devto-articles-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,best_celerytop/devto-articles-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dcx76E5oft0Fi04jq/builds/73adgs44eijFT6eJ6/openapi.json
