> **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-badges>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/platforms/stack-overflow/users-memberid-badges.mdx>

---

# Stack Overflow User Badges API

Every badge one user has earned, with its rank, type, award count and link.

`GET /v1/stack-overflow/users/{memberId}/badges` returns the badges a user has earned. Each row has `id`, `name`, `rank` (`bronze`, `silver` or `gold`), `type` (`named` or `tag_based`), `awardCount` and `url`.

Sort by `rank` (the default), `name`, `type` or `awarded`. Page with `page.nextCursor` while `page.hasMore` is true, and check `limitReached` when a sort other than awarded stops at the ceiling. A user with no badges is `found` with an empty list; a user id that does not exist is `not_found`.

## Request

- **Endpoint:** `GET /v1/stack-overflow/users/{memberId}/badges`
- **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/badges/get)
- **Platform page:** [/platforms/stack-overflow](https://www.socialfetch.dev/platforms/stack-overflow)

## FAQ

### What does awardCount mean?

awardCount is how many times the user has earned that badge. A tag-based badge can be earned more than once, once per tag.

### How many credits does a page 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. Each paginated page is a separate billed request.

### What is a tag_based badge?

A tag_based badge is earned in one tag, for example a bronze badge for a tag you answer often. Named badges are not tied to a tag.

### Can I sort by when a badge was earned?

Use sort=awarded. The default rank sort groups the badges by rank instead.
