Getting started with the REST API - GitHub Docs
Use the GitHub CLI api subcommand to make your API request. For more information, see the GitHub CLI api documentation. In your request, specify the following ...
Use the GitHub CLI api subcommand to make your API request. For more information, see the GitHub CLI api documentation. In your request, specify the following ...
Authenticating with a GitHub App · Store your GitHub App's client ID as a configuration variable. In the following example, replace APP_CLIENT_ID with the name ...
The API's response also includes a list of GitHub's domain names, and the public keys used by GitHub to sign commits made through the web UI. The values shown in the documentation's response are example values. You must always query the API directly to get the latest values.
Mar 10, 2026 · Create integrations, retrieve data, and automate your workflows with the GitHub REST API.
Curl examples below omit these standard headers for brevity. ## Path and query parameters * **`per_page`** (integer) The number of results per page (max 100). For more information, see "Using pagination in the REST API."
The REST API reference documentation for each endpoint states whether the endpoint works with GitHub Apps and states what permissions are required in order for ...
The API's response also includes a list of GitHub's domain names, and the public keys used by GitHub to sign commits made through the web UI. The values shown in the documentation's response are example values. You must always query the API directly to get the latest values.
Nov 28, 2022 · Introduction This article describes how to quickly get started with the GitHub REST API using GitHub CLI, curl, or JavaScript. For a more detailed guide, see Getting started with the REST API.
A header with no content is returned. Code samples for "Get the last year of commit activity". Request example. get/ ...
For example: application/zip GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API.
Learn how to use the GitHub REST API, follow best practices, and troubleshoot problems.
Mar 10, 2026 ... Code samples for "Get the authenticated user" · Request examples · Response with public and private profile information.
For example: application/zip GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API.
Use the REST API to manage pull requests and pull request reviews.
Response including the workflow run ID and URLs. Code samples for "Create a workflow dispatch event". Request example. post/repos/{ ...
If you want to write a script using JavaScript to interact with GitHub's REST API, GitHub recommends that you use the Octokit.js SDK. Octokit.js is maintained by GitHub. The SDK implements best practices and makes it easier for you to interact with the REST API via JavaScript. Octokit.js works with all modern browsers, Node.js, and Deno.
Code samples for "List projects for organization". If you access GitHub at ... Request example. get/orgs/{org}/projectsV2. cURL. JavaScript. GitHub CLI. Copy ...