Get Dev.to profile
Get a Dev.to profile page: post, comment and tag counts, badges, work, skills and GitHub repositories.
Headers
Get your API keyAPI key (`sfk_...`)
Dev.to username, e.g. `ben`. A profile URL such as https://dev.to/ben is also accepted.
min 1 chars · max 40 chars · pattern: ^[a-z0-9_][a-z0-9_-]{0,39}$
Endpoint-specific response payload.
Whether the item was found.
one of: found, not_found
False when the user exists but Dev.to does not list the profile publicly. Only the basic fields are filled then. Null when not found.
The profile when found; otherwise null.
Numeric user id.
Username.
Display name.
Short bio.
Location the user lists.
Profile picture URL.
When the user joined (ISO-8601).
Pronouns, if listed.
Work, if listed.
Education, if listed.
Skills and languages, if listed.
What the user is currently learning.
What the user is currently hacking on.
What the user is available for.
Posts the user has published.
Comments the user has written.
Tags the user follows.
Whether the user has the subscriber badge.
Whether the user is a community curator.
Social links listed.
Link label, e.g. `GitHub`.
Link URL.
Organizations the user belongs to.
Organization username.
Organization name.
Public GitHub repositories the user chose to show.
Repository name.
Repository URL.
Description.
Main language.
Star count.
Badges the user has earned.
Badge title.
Times the badge was awarded. 1 when it was awarded once.
≥ 1
What the badge is for.
Badge image URL.
Posts the user pinned to the top of the profile, in the order shown. Empty when none are pinned.
Numeric post id.
Post title.
Post URL on Dev.to.
When the post was published.
Tag names on the card.
Reactions shown on the card.
Comments shown on the card.
Reading time in minutes shown on the card.
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/user/profile?username=ben" \
-H "x-api-key: YOUR_API_KEY"Responses
Dev.to profile.