Headers
Get your API keyAPI key (`sfk_...`)
Comment id, the short code in comment URLs (`https://dev.to/ben/comment/3jnm7`). A comment URL is also accepted.
pattern: ^[a-z0-9]{1,12}$
Endpoint-specific response payload.
Whether the item was found.
one of: found, not_found
The comment when found; otherwise null.
Comment id, the short code used in comment URLs (`https://dev.to/{username}/comment/{id}`).
Always null for a single comment lookup: the response does not say which comment this one replies to. Use `/v1/dev-to/article/comments` for its position in the full thread.
Always null for a single comment lookup: the response does not say how deep this comment sits in the full thread. Use `/v1/dev-to/article/comments` for its position in the full thread.
≥ 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.
Replies under the comment, in reading order. `depth` counts from the requested comment, so a direct reply has depth 1; `parentId` is the comment it answers.
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.
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/comment?id=3jnm7" \
-H "x-api-key: YOUR_API_KEY"Responses
Dev.to comment.