Preview the new Hovercard API

We're releasing a Hovercard API that enables you to retrieve information contained in someone's hovercard using either GraphQL or REST. Use the subject_type and subject_id parameters to find out more about someone in relation to their pull requests, issues, repositories, and organizations.

REST API

To access the new Get contextual information for a user endpoint during the preview period, you must provide a custom media type in the Accept header:

   application/vnd.github.hagar-preview+json

GraphQL API

We're introducing a new connection on User called hovercard which enables you to retrieve data contained in someone's hovercard.

To access this new API during the preview period, you must provide an Accept header as well:

   application/vnd.github.hagar-preview

During the preview period, we may change aspects of these APIs based on developer feedback. If we do, we will announce the changes here on the developer blog, but we will not provide any advance notice.

If you have any questions or feedback, please let us know!