Stack Overflow hub

Stack Overflow User API

One profile with reputation, badges, accept rate, profile text and question, answer and vote counts.

GET /v1/stack-overflow/users/{memberId}

1 credit Failed requests are free

About this endpoint

GET /v1/stack-overflow/users/{memberId} returns one user. On found, data.user has id, accountId, name, url, imageUrl, type, reputation, reputationChange for the day, week, month, quarter and year, badges in gold, silver and bronze, acceptRate, location, websiteUrl, aboutHtml, joinedAt, lastSeenAt, lastModifiedAt, questionCount, answerCount, profileViews, votesCast, isEmployee and collectives.

memberId is the user id on the chosen site, not the network account id. -1 is the Community user, which owns automated edits and posts. A user id that does not exist is not_found with user null.

Stack Overflow User API FAQ

What is the difference between id and accountId?

id is the user's id on this site and is what the route takes. accountId is the network-wide account id, the same on every Stack Exchange site.

How many credits does a user lookup cost?

Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth.

What does -1 mean?

-1 is the Community user, which owns automated edits and posts. It is a real user id and returns a normal profile.

How do I get a user's posts?

Use the user's answers, questions and comments routes with the same memberId. Their tags, badges and reputation history have their own routes too.