---
title: "Get contextual information for a user"
method: GET
path: "/users/{username}/hovercard"
tags: ["users"]
---

# Get contextual information for a user

`GET /users/{username}/hovercard`

Provides hovercard information. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.

  The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository, you would use a `subject_type` value of `repository` and a `subject_id` value of `1300192` (the ID of the `Spoon-Knife` repository).

OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `username` string, required

## Query parameters

- `subject_type` 'organization' | 'repository' | 'issue' | 'pull_request'
- `subject_id` string

## Response `200`

Response

- Hovercard — Hovercard
  - `contexts` object[], required
    - `message` string, required
    - `octicon` string, required

## Other responses

- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
