Dev.to

Get Dev.to profile

Get a Dev.to profile page: post, comment and tag counts, badges, work, skills and GitHub repositories.

GET/v1/dev-to/user/profile
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
usernamestringrequiredquery

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}$

Response fields
54

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

datalistedOnSite
booleannullable

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.

dataprofileid
integernullable

Numeric user id.

dataprofileusername
string

Username.

dataprofilename
stringnullable

Display name.

dataprofilebio
stringnullable

Short bio.

dataprofilelocation
stringnullable

Location the user lists.

dataprofileavatarUrl
stringnullable

Profile picture URL.

dataprofilejoinedAt
stringnullable

When the user joined (ISO-8601).

dataprofilepronouns
stringnullable

Pronouns, if listed.

dataprofilework
stringnullable

Work, if listed.

dataprofileeducation
stringnullable

Education, if listed.

dataprofileskills
stringnullable

Skills and languages, if listed.

dataprofilecurrentlyLearning
stringnullable

What the user is currently learning.

dataprofilecurrentlyHackingOn
stringnullable

What the user is currently hacking on.

dataprofileavailableFor
stringnullable

What the user is available for.

dataprofilepostsPublished
integernullable

Posts the user has published.

dataprofilecommentsWritten
integernullable

Comments the user has written.

dataprofiletagsFollowed
integernullable

Tags the user follows.

dataprofileisSubscriber
boolean

Whether the user has the subscriber badge.

dataprofileisCommunityCurator
boolean

Whether the user is a community curator.

Social links listed.

dataprofilelinks[]label
string

Link label, e.g. `GitHub`.

dataprofilelinks[]url
string

Link URL.

Organizations the user belongs to.

dataprofileorganizations[]username
string

Organization username.

dataprofileorganizations[]name
stringnullable

Organization name.

Public GitHub repositories the user chose to show.

dataprofilegithubRepositories[]name
string

Repository name.

dataprofilegithubRepositories[]url
string

Repository URL.

dataprofilegithubRepositories[]description
stringnullable

Description.

dataprofilegithubRepositories[]language
stringnullable

Main language.

dataprofilegithubRepositories[]stars
integernullable

Star count.

Badges the user has earned.

dataprofilebadges[]title
string

Badge title.

dataprofilebadges[]timesAwarded
integer

Times the badge was awarded. 1 when it was awarded once.

≥ 1

dataprofilebadges[]description
stringnullable

What the badge is for.

dataprofilebadges[]imageUrl
stringnullable

Badge image URL.

Posts the user pinned to the top of the profile, in the order shown. Empty when none are pinned.

dataprofilepinnedPosts[]id
integernullable

Numeric post id.

dataprofilepinnedPosts[]title
string

Post title.

dataprofilepinnedPosts[]url
string

Post URL on Dev.to.

dataprofilepinnedPosts[]publishedAt
stringnullable

When the post was published.

Tag names on the card.

dataprofilepinnedPosts[]tags[]
stringoptional
dataprofilepinnedPosts[]reactionsCount
integernullable

Reactions shown on the card.

dataprofilepinnedPosts[]commentsCount
integernullable

Comments shown on the card.

dataprofilepinnedPosts[]readingTimeMinutes
integernullable

Reading time in minutes shown on the card.

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/user/profile?username=ben" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Dev.to profile.