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