Dev.to

Get Dev.to post page details

Get Dev.to post details: series parts, comment ids and comment reactions.

GET/v1/dev-to/article/details
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
27

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

datalistedOnSite
booleannullable

False when the post exists but Dev.to does not list it publicly, true when it is public, null when not found. The post data is still returned by the post and comment endpoints.

The details when found; otherwise null.

datadetailsarticleId
integernullable

Numeric post id.

datadetailsurl
string

Post URL.

datadetailsisPublished
booleannullable

Whether the post is published.

datadetailsisScheduled
booleannullable

Whether the post is scheduled for later.

Ids of co-authors, empty when there are none.

datadetailscoAuthorIds[]
integeroptional

The series the post belongs to, or null.

datadetailsseriesid
integernullable

Series id.

datadetailsseriestitle
string

Series title.

datadetailsseriesurl
stringnullable

Series URL.

datadetailsseriespartsCount
integernullable

Number of parts in the series.

Parts in order.

datadetailsseriesparts[]position
integer

Position in the series, from 1.

datadetailsseriesparts[]title
string

Title of the part.

datadetailsseriesparts[]url
string

URL of the part.

Comments shown under the post, with the numeric ids and reaction counts the comment lists do not carry.

datadetailscommentsOnPage[]id
string

Comment id code, as in comment URLs.

datadetailscommentsOnPage[]numericId
integer

Numeric comment id.

datadetailscommentsOnPage[]reactionsCount
integernullable

Reactions on the comment.

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/details?id=207638" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Post page details.