Get Stack Exchange User Profile
stackexchange_get_userFetch a Stack Exchange user profile by numeric user ID: reputation, badge counts, top tags by answer score, and account metadata. Useful for credibility context on an answer author — pass the authorUserId from any question or answer in stackexchange_get_thread output. Returns profile fields plus up to 10 top tags by answer score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Stack Exchange site — use the api_site_parameter value (e.g. "stackoverflow", "superuser"). Defaults to "stackoverflow". Call stackexchange_list_sites to discover valid values. | stackoverflow |
| userId | Yes | Numeric user ID — use the authorUserId field from a question or answer in stackexchange_get_thread output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | No | Direct URL to the user profile. | |
| error | No | Present when the call failed. Absent on success. | |
| userId | No | Numeric user ID on this Stack Exchange site. | |
| topTags | No | Top tags by answer score (up to 10). Empty array for new users with no answers. | |
| location | No | User-provided location string when available. | |
| quotaMax | No | Maximum API quota calls per day (300 keyless, ~10,000 with API key). | |
| reputation | No | User reputation score. | |
| websiteUrl | No | User-provided website URL when available. | |
| answerCount | No | Total number of answers posted when provided by the API. | |
| badgeCounts | No | Badge counts when provided by the API. | |
| displayName | No | Display name shown on the site. | |
| questionCount | No | Total number of questions posted when provided by the API. | |
| quotaRemaining | No | Remaining API quota calls for the current day. |