Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Members of an organization can choose to have their membership publicized or not.
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
Simple User
Example:octocat
Example:1
Example:MDQ6VXNlcjE=
Example:https://github.com/images/error/octocat_happy.gif
Example:41d064eb2195891e12d0413f63227ea7
Example:https://api.github.com/users/octocat
Example:https://github.com/octocat
Example:https://api.github.com/users/octocat/followers
Example:https://api.github.com/users/octocat/following{/other_user}
Example:https://api.github.com/users/octocat/gists{/gist_id}
Example:https://api.github.com/users/octocat/starred{/owner}{/repo}
Example:https://api.github.com/users/octocat/subscriptions
Example:https://api.github.com/users/octocat/orgs
Example:https://api.github.com/users/octocat/repos
Example:https://api.github.com/users/octocat/events{/privacy}
Example:https://api.github.com/users/octocat/received_events
Example:User
Example:"2020-07-09T00:17:55Z"
Response if user is a public member
The user can publicize their own membership. (A user cannot publicize the membership for another user.)
Note that you’ll need to set Content-Length
to zero when calling out to this endpoint. For more information, see “HTTP verbs.”
Response
Response
Indicates the state of the memberships to return. Can be either active
or pending
. If not specified, the API returns both active and pending memberships.
Allowed values:activepending
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Response
Org Membership
Example:https://api.github.com/orgs/octocat/memberships/defunkt
The state of the member in the organization. The pending
state indicates the user has not yet accepted an invitation.
Allowed values:activepending
Example:active
The user’s membership type in the organization.
Allowed values:adminmemberbilling_manager
Example:admin
Example:https://api.github.com/orgs/octocat
Organization Simple
Simple User