Dev.to

Dev.to articles by tag, author, popularity or recency, and one article in full, as typed JSON. Dev.to has no keyword search.

Embed
Preview of the card
<a href="https://scrapelyserp.com/docs/devto"><img src="https://scrapelyserp.com/docs/_api/public/orgs/affc5b0f-d3c2-423a-8143-9d10db5736ae/spaces/981e6275-da3f-446c-82de-889f59c83b6f/pages/d0095ad6-ec21-4cb7-a27b-7cf4d03fa4e5/social-card.svg?v=3e7ae33eec8b" alt="Dev.to" width="600" height="315"></a>

Dev.to articles by tag, author, popularity or recency, and one article in full, as typed JSON. Dev.to has no keyword search.

At a glance

Two GET endpoints under /v1/structured/devto/. Each answers { endpoint, url, credits, duration_ms, data }. Each call is charged for the data it moves, and a call we could not read is 502 TARGET_FAILED and costs nothing. Rates are estimates until production traffic measures them.

There is no keyword search

Dev.to does not offer one: a listing is by tag, by username, by top (the most-reacted of the last days) or by recency. To find articles about a topic, list its tag.

Endpoint

What

Typical

GET /v1/structured/devto/articles

A listing by tag, username, top or state, up to 100 per call

about 1 million articles per credit

GET /v1/structured/devto/article

One article with its Markdown body

about 50,000 articles per credit (a long one costs more)

curl -G "https://api.scrapelyserp.com/v1/structured/devto/articles" \
  -H "Authorization: Bearer $SCRAPELY_API_KEY" \
  -d tag=webdev \
  -d top=7

Articles

Parameter

Type

Default

Description

tag

string

—

Only articles with this tag, e.g. webdev. An unknown tag lists nothing.

username

string

—

Only this author’s articles, e.g. ben. An unknown author lists nothing.

top

integer

—

The most-reacted articles of the last N days (1–366) instead of the newest.

state

fresh, rising, all

—

fresh (new, no reactions yet), rising (gaining reactions) or all.

limit

integer

30

Articles per page, 1–100.

cursor

string

—

The next_cursor of the previous page (a page number).

Each article has id, title, description (the summary under the title), url, author (username), author_name, organization, published_at, edited_at, tags, reactions, comments, reading_time_minutes, language, cover_image and canonical_url (where a crossposted article first appeared). Articles come newest first; with top they come most-reacted first.

An empty list is a real answer, and Dev.to gives it for an unknown tag, an unknown author and a page past the end alike, so a misspelt tag cannot be told from a quiet one: check the spelling. next_cursor is null when a page comes back short.

Full reference → GET /v1/structured/devto/articles

One article

Parameter

Type

Default

Description

article (required)

string

—

The article’s id (e.g. 4943245), its link, or username/slug.

The same fields as a listing, plus body_markdown. An article that does not exist, or is not published, is a free 404 NOT_FOUND.

Full reference → GET /v1/structured/devto/article

Updated