> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/platforms/stack-overflow/users-memberid>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/stack-overflow/users-memberid.mdx>

---

# 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}` 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.

## Request

- **Endpoint:** `GET /v1/stack-overflow/users/{memberId}`
- **Credits:** 1 credit
Failed requests are free
- **Input:** by user id
- **Full reference:** [docs](https://www.socialfetch.dev/docs/api/v1/stack-overflow/users/memberid/get)
- **Platform page:** [/platforms/stack-overflow](https://www.socialfetch.dev/platforms/stack-overflow)

## 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.
