get_user
Get a Hardcover user's profile. With no arguments, returns your own profile (the owner of the API token) including your user id; otherwise look someone up by id, username, or name (name resolves to the top search match). Read-only.
Instructions
Get a Hardcover user's profile. With no arguments, returns your own profile (the owner of the API token) including your user id; otherwise look someone up by id, username, or name (name resolves to the top search match). Read-only. Returns bio, book/follower counts, and privacy. Optional sections: include_library (recent library entries, each with the book's community 'rating' and the user's own 'user_rating'; a private user's comes back empty unless you follow them), include_following / include_followers (who they follow / who follows them, newest first), and include_stats (your own profile only: totals per status, average rating, books read in stats_year, default this year). For activity use get_activity_feed; to follow someone use set_following. Fails if the token is missing or invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Hardcover user ID. | |
| name | No | Display name to search for (resolves to the top match). | |
| username | No | Hardcover username (e.g. 'adam'). | |
| stats_year | No | Year for books_read_this_year (default: current year). | |
| follow_limit | No | Max people per follow list (default 25, max 100). | |
| include_stats | No | Your own profile only: include reading statistics (default false). | |
| library_limit | No | Max library entries to return (default 10, max 50). | |
| library_status | No | Only library entries with this status. | |
| include_library | No | If true, include recent library entries (default false). | |
| include_followers | No | Include who follows the user (default false). | |
| include_following | No | Include who the user follows (default false). |