How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

GitHub User API

The GitHub Users API (part of the REST API) lets applications read and, for the authenticated account, manage user-related data on GitHub. It can fetch public profiles for any user or the authenticated users private profile details, list a users public repositories and organizations, and view activity like followers and following.

GitHub User API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 6 JSON Schema definitions.

Tagged areas include User. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and 6 JSON Schemas.

This API exposes 47 operations across 32 paths, and defines 24 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

47 operations 32 paths 24 schemas 9 DELETE27 GET2 PATCH7 POST2 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com/
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 47

Across 32 paths, the API surfaces 47 operations — 9 DELETE, 27 GET, 2 PATCH, 7 POST, 2 PUT. Each is listed below with its method, path, parameters, and response codes.

Users 47

Interact with and view information about users and also current user.

GET
/user
Get the authenticated user
users/get-authenticated → 200304403401
PATCH
/user
Update the authenticated user
users/update-authenticated body → 200304404403401422
GET
/user/blocks
List users blocked by the authenticated user
users/list-blocked-by-authenticated-user 2 params → 200304404403401
GET
/user/blocks/{username}
Check if a user is blocked by the authenticated user
users/check-blocked 1 param → 204404304403401
PUT
/user/blocks/{username}
Block a user
users/block 1 param → 204304404403401422
DELETE
/user/blocks/{username}
Unblock a user
users/unblock 1 param → 204304403401404
PATCH
/user/email/visibility
Set primary email visibility for the authenticated user
users/set-primary-email-visibility-for-authenticated-user body → 200304404403401422
GET
/user/emails
List email addresses for the authenticated user
users/list-emails-for-authenticated-user 2 params → 200304404403401
POST
/user/emails
Add an email address for the authenticated user
users/add-email-for-authenticated-user body → 201422304404403401
DELETE
/user/emails
Delete an email address for the authenticated user
users/delete-email-for-authenticated-user body → 204304404403401422
GET
/user/followers
List followers of the authenticated user
users/list-followers-for-authenticated-user 2 params → 200304403401
GET
/user/following
List the people the authenticated user follows
users/list-followed-by-authenticated-user 2 params → 200304403401
GET
/user/following/{username}
Check if a person is followed by the authenticated user
users/check-person-is-followed-by-authenticated 1 param → 204404304403401
PUT
/user/following/{username}
Follow a user
users/follow 1 param → 204304404403401422
DELETE
/user/following/{username}
Unfollow a user
users/unfollow 1 param → 204304404403401
GET
/user/gpg_keys
List GPG keys for the authenticated user
users/list-gpg-keys-for-authenticated-user 2 params → 200304404403401
POST
/user/gpg_keys
Create a GPG key for the authenticated user
users/create-gpg-key-for-authenticated-user body → 201422304404403401
GET
/user/gpg_keys/{gpg_key_id}
Get a GPG key for the authenticated user
users/get-gpg-key-for-authenticated-user 1 param → 200404304403401
DELETE
/user/gpg_keys/{gpg_key_id}
Delete a GPG key for the authenticated user
users/delete-gpg-key-for-authenticated-user 1 param → 204404422304403401
GET
/user/keys
List public SSH keys for the authenticated user
users/list-public-ssh-keys-for-authenticated-user 2 params → 200304404403401
POST
/user/keys
Create a public SSH key for the authenticated user
users/create-public-ssh-key-for-authenticated-user body → 201422304404403401
GET
/user/keys/{key_id}
Get a public SSH key for the authenticated user
users/get-public-ssh-key-for-authenticated-user 1 param → 200404304403401
DELETE
/user/keys/{key_id}
Delete a public SSH key for the authenticated user
users/delete-public-ssh-key-for-authenticated-user 1 param → 204304404403401
GET
/user/public_emails
List public email addresses for the authenticated user
users/list-public-emails-for-authenticated-user 2 params → 200304404403401
GET
/user/social_accounts
List social accounts for the authenticated user
users/list-social-accounts-for-authenticated-user 2 params → 200304404403401
POST
/user/social_accounts
Add social accounts for the authenticated user
users/add-social-account-for-authenticated-user body → 201422304404403401
DELETE
/user/social_accounts
Delete social accounts for the authenticated user
users/delete-social-account-for-authenticated-user body → 204422304404403401
GET
/user/ssh_signing_keys
List SSH signing keys for the authenticated user
users/list-ssh-signing-keys-for-authenticated-user 2 params → 200304404403401
POST
/user/ssh_signing_keys
Create a SSH signing key for the authenticated user
users/create-ssh-signing-key-for-authenticated-user body → 201422304404403401
GET
/user/ssh_signing_keys/{ssh_signing_key_id}
Get an SSH signing key for the authenticated user
users/get-ssh-signing-key-for-authenticated-user 1 param → 200404304403401
DELETE
/user/ssh_signing_keys/{ssh_signing_key_id}
Delete an SSH signing key for the authenticated user
users/delete-ssh-signing-key-for-authenticated-user 1 param → 204304404403401
GET
/user/{account_id}
Get a user using their ID
users/get-by-id 1 param → 200404
GET
/users
List users
users/list 2 params → 200304
GET
/users/{username}
Get a user
users/get-by-username 1 param → 200404
POST
/users/{username}/attestations/bulk-list
List attestations by bulk subject digests
users/list-attestations-bulk 4 params body → 200
POST
/users/{username}/attestations/delete-request
Delete attestations in bulk
users/delete-attestations-bulk 1 param body → 200404
DELETE
/users/{username}/attestations/digest/{subject_digest}
Delete attestations by subject digest
users/delete-attestations-by-subject-digest 2 params → 200204404
DELETE
/users/{username}/attestations/{attestation_id}
Delete attestations by ID
users/delete-attestations-by-id 2 params → 200204403404
GET
/users/{username}/attestations/{subject_digest}
List attestations
users/list-attestations 6 params → 200201204404
GET
/users/{username}/followers
List followers of a user
users/list-followers-for-user 3 params → 200
GET
/users/{username}/following
List the people a user follows
users/list-following-for-user 3 params → 200
GET
/users/{username}/following/{target_user}
Check if a user follows another user
users/check-following-for-user 2 params → 204404
GET
/users/{username}/gpg_keys
List GPG keys for a user
users/list-gpg-keys-for-user 3 params → 200
GET
/users/{username}/hovercard
Get contextual information for a user
users/get-context-for-user 3 params → 200404422
GET
/users/{username}/keys
List public keys for a user
users/list-public-keys-for-user 3 params → 200
GET
/users/{username}/social_accounts
List social accounts for a user
users/list-social-accounts-for-user 3 params → 200
GET
/users/{username}/ssh_signing_keys
List SSH signing keys for a user
users/list-ssh-signing-keys-for-user 3 params → 200

Schemas 24

The contract defines 24 schemas that model the data the API accepts and returns. The most detailed are private-user (43 properties), private-user_2 (42 properties), public-user (40 properties), public-user_2 (39 properties). Each schema is shown below with its type and property counts.

gpg-key
object
A unique encryption key
15 properties 14 required
email
object
Email
4 properties 4 required
basic-error
object
Basic Error
4 properties
public-user
object
Public User
40 properties 31 required
validation-error
object
Validation Error
3 properties 2 required
private-user
object
Private User
43 properties 37 required
key
object
Key
8 properties 7 required
social-account
object
Social media account
2 properties 2 required
empty-object
object
An object without any properties.
key-simple
object
Key Simple
4 properties 2 required
simple-user
object
A GitHub user.
22 properties 18 required
hovercard
object
Hovercard
1 property 1 required
ssh-signing-key
object
A public SSH key used to sign Git commits
4 properties 4 required
gpg-key_2
object
A unique encryption key
15 properties 14 required
email_2
object
Email
4 properties 4 required
basic-error_2
object
Basic Error
4 properties
public-user_2
object
Public User
39 properties 31 required
validation-error_2
object
Validation Error
3 properties 2 required
private-user_2
object
Private User
42 properties 37 required
key_2
object
Key
7 properties 7 required
social-account_2
object
Social media account
2 properties 2 required
key-simple_2
object
Key Simple
2 properties 2 required
simple-user_2
object
A GitHub user.
21 properties 18 required
ssh-signing-key_2
object
A public SSH key used to sign Git commits
4 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-users-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
GitHub Git Database API
Where this information came from

This is an independent, third-party profile of GitHub User API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.