get

Search repositories.

get

Search code.

get

Search users.

/events

get

List public events.

/feeds

get

List Feeds. GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticating user.

/meta

get

This gives some information about GitHub.com, the service.

/rate_limit

get

Get your current rate limit status Note: Accessing this endpoint does not count against your rate limit.

/issues

get

List issues. List all issues across all the authenticated user's visible repositories.

/notifications

get

List your notifications. List all notifications for the current user, grouped by repository.

put

Mark as read. Marking a notification as "read" removes it from the default view on GitHub.com.

get

View a single thread.

patch
get

Get a Thread Subscription.

put

Set a Thread Subscription. This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned).

delete

Delete a Thread Subscription.

/gists

get

List the authenticated user's gists or if called anonymously, this will return all public gists.

post

Create a gist.

get

List all public gists.

get

List the authenticated user's starred gists.

get

Get a single gist.

patch

Edit a gist.

delete

Delete a gist.

get

Check if a gist is starred.

put

Star a gist.

delete

Unstar a gist.

post

Fork a gist.

get

List comments on a gist.

post

Create a comment

get

Get a single comment.

patch

Edit a comment.

delete

Delete a comment.

/orgs/{orgId}

get

Get an Organization.

patch

Edit an Organization.

get

List public events for an organization.

get

List issues. List all issues for a given organization for the authenticated user.

get

Members list. List all users who are members of an organization. A member is a user that belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list.

delete

Remove a member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.

get

Public members list. Members of an organization can choose to have their membership publicized or not.

get

Check public membership.

put

Publicize a user's membership.

delete

Conceal a user's membership.

get

List teams.

post

Create team. In order to create a team, the authenticated user must be an owner of orgId.

get

List repositories for the specified org.

post

Create a new repository for the authenticated user. OAuth users must supply repo scope.

/teams/{teamsId}

get

Get team.

patch

Edit team. In order to edit a team, the authenticated user must be an owner of the org that the team is associated with.

delete

Delete team. In order to delete a team, the authenticated user must be an owner of the org that the team is associated with.

get

List team members. In order to list members in a team, the authenticated user must be a member of the team.

get

Get team member. In order to get if a user is a member of a team, the authenticated user must be a member of the team.

put

Add team member. In order to add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with.

delete

Remove team member. In order to remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE This does not delete the user, it just remove them from the team.

/repositories

get

List all public repositories. This provides a dump of every public repository, in the order that they were created. Note: Pagination is powered exclusively by the since parameter. is the Link header to get the URL for the next page of repositories.

/repos/{ownerId}/{repoId}

get

Get repository.

patch

Edit repository.

delete

Delete a Repository. Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.

get

Get list of repository events.

get

List languages. List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language.

post

Create a Blob.

get

Get a Blob. Since blobs can be any arbitrary binary data, the input and responses for the blob API takes an encoding parameter that can be either utf-8 or base64. If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it.

post

Create a Commit.

get

Get a Commit.

get

Get all References

post

Create a Reference

get

Get list of subdirectories.

get

Get a Reference.

patch

Update a Reference

delete

Delete a Reference.

post

Create a Tag Object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you only have to create the tag reference - this call would be unnecessary.

get

Get a Tag.

post

Create a Tree. The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out.

get

Get a Tree.

get

Get the README. This method returns the preferred README for a repository.

get

List Stargazers.

get

List watchers.

get

Get list of tags.

get

Get list of teams

get

List Stargazers. New implementation.

get

Get list of contributors.

get

Get list of branches

get

Get Branch

get

List issues for a repository.

post

Create an issue. Any user with pull access to a repository can create an issue.

get

List issue events for a repository.

get

Get a single event.

get

Get a single issue

patch

Edit an issue. Issue owners and users with push access can edit an issue.

get

List comments on an issue.

post

Create a comment.

get

List issue events for a repository.

get

Get a single event.

get

List labels on an issue.

post

Add labels to an issue.

put

Replace all labels for an issue. Sending an empty array ([]) will remove all Labels from the Issue.

delete

Remove all labels from an issue.

delete

Remove a label from an issue.

get

List comments in a repository.

get

Get a single comment.

patch

Edit a comment.

delete

Delete a comment.

get

List your notifications in a repository List all notifications for the current user.

put

Mark notifications as read in a repository. Marking all notifications in a repository as "read" removes them from the default view on GitHub.com.

get

Get a Repository Subscription.

put

Set a Repository Subscription

delete

Delete a Repository Subscription.

get

List assignees. This call lists all the available assignees (owner collaborators) to which issues may be assigned.

get

Check assignee. You may also check to see if a particular user is an assignee for a repository.

get

List all labels for this repository.

post

Create a label.

get

Get a single label.

patch

Update a label.

delete

Delete a label.

get

List milestones for a repository.

post

Create a milestone.

get

Get a single milestone.

patch

Update a milestone.

delete

Delete a milestone.

get

Get labels for every issue in a milestone.

get

List pull requests.

post

Create a pull request.

get

Get a single pull request.

patch

Update a pull request.

get

List pull requests files.

get

List commits on a pull request.

get

Get if a pull request has been merged.

put

Merge a pull request (Merge Buttonâ„¢)

get

List comments on a pull request.

post

Create a comment.

#TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ ) description: | Alternative Input. Instead of passing commit_id, path, and position you can reply to an existing Pull Request Comment like this:

    body
       Required string
    in_reply_to
       Required number - Comment id to reply to.
get

List comments in a repository. By default, Review Comments are ordered by ascending ID.

get

Get a single comment.

patch

Edit a comment.

delete

Delete a comment.

get

List. When authenticating as an organization owner of an organization-owned repository, all organization owners are included in the list of collaborators. Otherwise, only users with access to the repository are returned in the collaborators list.

get

Check if user is a collaborator

put

Add collaborator.

delete

Remove collaborator.

get

List commit comments for a repository. Comments are ordered by ascending ID.

get

Get a single commit comment.

patch

Update a commit comment.

delete

Delete a commit comment

get

List commits on a repository.

get

Get a single commit.

get

List comments for a single commitList comments for a single commit.

post

Create a commit comment.

get

Get contents. This method returns the contents of a file or directory in a repository. Files and symlinks support a custom media type for getting the raw content. Directories and submodules do not support custom media types. Note: This API supports files up to 1 megabyte in size. Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/"

put

Create a file.

delete

Delete a file. This method deletes a file in a repository.

get

Get archive link. This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly.

get

List downloads for a repository.

post

Create a new download (Part 1: Create the resource). For part 2 see http://developer.github.com/v3/repos/downloads/#create-a-new-download-part-2-upload-file-to-s3

get

Get a single download.

delete

Delete a download.

get

List forks.

post

Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wait a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support.

get

Get list of keys.

post

Create a key.

get

Get a key

patch

Edit a key.

delete

Delete a key.

get

Get list of hooks.

post

Create a hook.

get

Get single hook.

patch

Edit a hook.

delete

Delete a hook.

post

Test a push hook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated. Note: Previously /repos/:owner/:repo/hooks/:id/test

post

Perform a merge.

get

List Statuses for a specific Ref.

post

Create a Status.

get

Get contributors list with additions, deletions, and commit counts.

get

Get the last year of commit activity data. Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday.

get

Get the number of additions and deletions per week. Returns a weekly aggregate of the number of additions and deletions pushed to a repository.

get

Get the weekly commit count for the repo owner and everyone else.

get

Get the number of commits per hour in each day. Each array contains the day number, hour number, and number of commits 0-6 Sunday - Saturday 0-23 Hour of day Number of commits

For example, [2, 14, 25] indicates that there were 25 total commits, during the 2.00pm hour on Tuesdays. All times are based on the time zone of individual commits.

/user

get

Get the authenticated user.

patch

Update the authenticated user.

get

List public and private organizations for the authenticated user.

get

Get a single user.

get

List events that a user has received.

get

List public events that a user has received.

get

List all public organizations for a user.

get

List events performed by a user. If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.

get

List public events performed by a user.

get

List events for an organization.

get

List repositories being starred.

get

List repositories being watched by a user.

get

List email addresses for a user. In the final version of the API, this method will return an array of hashes with extended information for each email address indicating if the address has been verified and if it's the user's primary email address for GitHub. Until API v3 is finalized, use the application/vnd.github.v3 media type to get other response format.

post

Add email address(es). You can post a single email address or an array of addresses.

delete

Delete email address(es). You can include a single email address or an array of addresses.

get

List who the authenticated user is following.

get

Check if you are following a user.

put

Follow a user. Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope.

delete

Unfollow a user. Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope.

get

List your public keys. Lists the current user's keys. Management of public keys via the API requires that you are authenticated through basic auth, or OAuth with the 'user' scope.

post

Create a public key.

get

Get a single public key.

patch

Update a public key.

delete

Delete a public key.

get

List repositories being starred by the authenticated user.

get

Check if you are starring a repository.

put

Star a repository.

delete

Unstar a repository

get

List repositories being watched by the authenticated user.

get

Check if you are watching a repository.

put

Watch a repository.

delete

Stop watching a repository

get

List issues. List all issues across owned and member repositories for the authenticated user.

get

List repositories for the authenticated user. Note that this does not include repositories owned by organizations which the user can access. You can list user organizations and list organization repositories separately.

post

Create a new repository for the authenticated user. OAuth users must supply repo scope.

/users

get

Get all users. This provides a dump of every user, in the order that they signed up for GitHub. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users.

get

List a user's followers.

get

Check if one user follows another.

get

List public keys for a user. Lists the verified public keys for a user. This is accessible by anyone.

get

List a user's gists.

get

List all public organizations for a user.

get

List public repositories for the specified user.

/gitignore/templates

get

Listing available templates. List all templates available to pass as an option when creating a repository.

get

Get a single template.

/markdown

post
post

/networks/{ownerId}/{repoId}/events

get

List public events for a network of repositories.