Dev.to

Get Dev.to post

Get a Dev.to post with its full Markdown and HTML body.

GET/v1/dev-to/article
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
idintegerquery

Numeric post id.

≥ 1 · ≤ 9007199254740991

urlstringquery

Dev.to article URL, e.g. `https://dev.to/devteam/top-7-featured-dev-posts-of-the-week-cio`.

max 500 chars

Response fields
48

Endpoint-specific response payload.

datalookupStatus
string

`not_found` when the post does not exist, was deleted, or is unpublished.

one of: found, not_found

The post when `lookupStatus` is `found`; otherwise null. Includes posts that Dev.to does not list publicly.

dataarticleid
integer

Numeric post id.

dataarticleurl
string

Post URL on Dev.to.

dataarticleslug
string

Post slug.

dataarticletitle
string

Post title.

dataarticledescription
stringnullable

Short description (the first lines of the post).

Tag names, in the order shown.

dataarticletags[]
stringoptional
dataarticlelanguage
stringnullable

ISO 639-1 language code, e.g. `en`. Null on older posts.

dataarticlepublishedAt
stringnullable

When the post was published (ISO-8601).

dataarticlerepublishedAt
stringnullable

The later time the post was published again, or null when it matches `publishedAt`.

dataarticlecreatedAt
stringnullable

When the draft was first created (ISO-8601). Can be earlier than `publishedAt`.

dataarticleeditedAt
stringnullable

When the post was last edited, or null.

dataarticlecrosspostedAt
stringnullable

When the post was cross-posted from another site, or null.

dataarticlelastCommentAt
stringnullable

When the last comment was posted.

dataarticlereadingTimeMinutes
integernullable

Estimated reading time in minutes.

dataarticlereactionsCount
integer

Reactions on the post, all kinds combined.

dataarticlecommentsCount
integer

Comments on the post.

dataarticlecoverImage
stringnullable

Cover image URL, or null.

dataarticlesocialImage
stringnullable

Image used when the post is shared.

dataarticlecanonicalUrl
stringnullable

Canonical URL. Points to the author's own site for cross-posts.

dataarticleseriesId
integernullable

Id of the series the post belongs to, or null.

dataarticlecommunityId
integernullable

Id of the Dev.to community the post belongs to, or null.

dataarticleaiDisclosure
stringnullable

The author's AI disclosure: `not_disclosed`, `no_ai`, `some_ai` or `fully_autonomous`.

The one tag Dev.to highlights on the post's card.

dataarticleflareTagname
string

Tag name.

dataarticleflareTagbackgroundColor
stringnullable

Tag background colour (hex).

dataarticleflareTagtextColor
stringnullable

Tag text colour (hex).

The user who wrote a post or comment.

dataarticleauthorid
integernullable

Numeric user id.

dataarticleauthorusername
string

Username, e.g. `ben`.

dataarticleauthorname
stringnullable

Display name.

dataarticleauthoravatarUrl
stringnullable

Profile picture URL.

dataarticleauthorwebsiteUrl
stringnullable

Website the user lists on their profile.

dataarticleauthortwitterUsername
stringnullable

Twitter or X username the user lists.

dataarticleauthorgithubUsername
stringnullable

GitHub username the user lists.

The organization the post was published under, or null.

dataarticleorganizationname
stringnullable

Organization name.

dataarticleorganizationusername
string

Organization username.

dataarticleorganizationavatarUrl
stringnullable

Organization logo URL.

dataarticlebodyHtml
string

Post body as HTML.

dataarticlebodyMarkdown
stringnullable

Post body as Markdown, including any front matter the author wrote.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/dev-to/article?id=207638" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Dev.to post.