List Dev.to comments
List the comments and replies on a Dev.to post or podcast episode.
Headers
Get your API keyAPI key (`sfk_...`)
Numeric post id.
≥ 1 · ≤ 9007199254740991
Numeric podcast episode id.
≥ 1 · ≤ 9007199254740991
Page of top-level comments (1-1000). Replies come with their comment. Default: 1. A full page may be followed by an empty page when the list ends exactly at a page boundary.
≥ 1 · ≤ 1000
Top-level comments per page (1-1000). Default: 30. Replies are not counted.
≥ 1 · ≤ 1000
Endpoint-specific response payload.
Comments in reading order: each top-level comment followed by its replies. Use `parentId` and `depth` to rebuild the tree. Empty both for a post with no comments and for an id that does not exist; for a post, look it up to tell them apart.
Comment id, the short code used in comment URLs (`https://dev.to/{username}/comment/{id}`).
Id of the comment this one replies to, or null at the top.
Nesting level: 0 for a top-level comment, 1 for a reply.
≥ 0
When the comment was posted (ISO-8601).
Comment body as HTML.
The author's AI disclosure for the comment.
Who wrote the comment, or null when the account is gone.
Numeric user id.
Username, e.g. `ben`.
Display name.
Profile picture URL.
Website the user lists on their profile.
Twitter or X username the user lists.
GitHub username the user lists.
Top-level comments on this page.
≥ 0
Pagination state for the current page. A full page may be followed by an empty page when the list ends exactly at a page boundary.
Current page number (1-based).
≥ 0
Whether another page is available. A full page may be followed by an empty page when the list ends exactly at a page boundary.
Next page number when more pages exist; null on the last page.
≥ 0
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/dev-to/article/comments?articleId=207638" \
-H "x-api-key: YOUR_API_KEY"Responses
Comment listing.