Search Repositories
Search for repositories based on various criteria.Query Parameters
Keyword to search for
Limit search to repositories with keyword as topic
Include search of keyword within repository description
Search only for repos that the user with the given id owns or contributes to
Include private repositories this user has access to
Show only archived, non-archived or all repositories
Type of repository to search for. Supported values:
fork, source, mirror, collaborativeSort repos by attribute. Supported values:
alpha, created, updated, size, git_size, lfs_size, stars, forks, idSort order:
asc (ascending) or desc (descending)Page number of results to return (1-based)
Page size of results
Response
Indicates if the search was successful
Array of repository objects matching the search criteria
Repository ID
Repository name
Full repository name including owner
Repository description
Whether the repository is private
Whether the repository is a fork
Number of stars
Number of forks
Create Repository
Create a new repository for the authenticated user.Request Body
Name of the repository to create (unique)
Description of the repository
Whether the repository is private
Whether the repository should be auto-initialized
Gitignores to use
License to use
Readme template to use
Default branch name (used when initializing)
Trust model. Supported values:
default, collaborator, committer, collaboratorcommitterCreate Organization Repository
Create a new repository in an organization.Path Parameters
Name of the organization
Request Body
Same as Create Repository endpoint.Get Repository
Get a repository by owner and repository name.Path Parameters
Owner of the repository
Name of the repository
Response
Repository ID
Repository name
Full repository name (owner/repo)
Repository description
Whether the repository is private
Whether the repository is a fork
Web URL to view the repository
HTTPS clone URL
SSH clone URL
Default branch name
Get Repository by ID
Get a repository by its ID.Path Parameters
ID of the repository
Update Repository
Edit a repository’s properties. Only fields that are set will be changed.Path Parameters
Owner of the repository
Name of the repository
Request Body
New name for the repository
New description
Repository website URL
Make repository private or public
Set default branch
Archive or unarchive the repository
Enable or disable issues
Enable or disable wiki
Enable or disable pull requests
Delete Repository
Delete a repository permanently.Path Parameters
Owner of the repository
Name of the repository to delete
Deleting a repository is permanent and cannot be undone. All issues, pull requests, releases, and other data will be deleted.
Generate Repository from Template
Create a repository from a template repository.Path Parameters
Owner of the template repository
Name of the template repository
Request Body
Name of the new repository
Owner of the new repository (defaults to authenticated user)
Description of the new repository
Whether the new repository should be private
Include git content from template
Include topics from template
Include git hooks from template
Include webhooks from template
Include avatar from template
Include labels from template
List Repository Activity Feeds
Get activity feeds for a repository.Path Parameters
Owner of the repository
Name of the repository
Query Parameters
Date of activities to find (format: YYYY-MM-DD)
Page number of results
Page size of results