GitHub v3 REST API
github · Developer Tools
GitHub's v3 REST API.
Authentication
Sample Requests
List issues assigned to the authenticated user across all visible repositories including owned repositories, member repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not necessarily assigned to you. **Note**: GitHub's REST API considers
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues?orgs=true&page=1&sort=created&owned=true&pulls=true&since=example&state=open&collab=true&filter=assigned&labels=example&per_page=30&direction=desc"
import requests
params = {
"orgs": "true",
"page": "1",
"sort": "created",
"owned": "true",
"pulls": "true",
"since": "example",
"state": "open",
"collab": "true",
"filter": "assigned",
"labels": "example",
"per_page": "30",
"direction": "desc"
}
response = requests.get(
"https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues');
url.searchParams.set('orgs', 'true');
url.searchParams.set('page', '1');
url.searchParams.set('sort', 'created');
url.searchParams.set('owned', 'true');
url.searchParams.set('pulls', 'true');
url.searchParams.set('since', 'example');
url.searchParams.set('state', 'open');
url.searchParams.set('collab', 'true');
url.searchParams.set('filter', 'assigned');
url.searchParams.set('labels', 'example');
url.searchParams.set('per_page', '30');
url.searchParams.set('direction', 'desc');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues")
q := baseURL.Query()
q.Set("orgs", "true")
q.Set("page", "1")
q.Set("sort", "created")
q.Set("owned", "true")
q.Set("pulls", "true")
q.Set("since", "example")
q.Set("state", "open")
q.Set("collab", "true")
q.Set("filter", "assigned")
q.Set("labels", "example")
q.Set("per_page", "30")
q.Set("direction", "desc")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues")
uri.query = URI.encode_www_form({
"orgs" => "true",
"page" => "1",
"sort" => "created",
"owned" => "true",
"pulls" => "true",
"since" => "example",
"state" => "open",
"collab" => "true",
"filter" => "assigned",
"labels" => "example",
"per_page" => "30",
"direction" => "desc"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/issues?" . http_build_query([
"orgs" => "true",
"page" => "1",
"sort" => "created",
"owned" => "true",
"pulls" => "true",
"since" => "example",
"state" => "open",
"collab" => "true",
"filter" => "assigned",
"labels" => "example",
"per_page" => "30",
"direction" => "desc"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Get all commonly used licenses
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses?page=1&featured=true&per_page=30"
import requests
params = {
"page": "1",
"featured": "true",
"per_page": "30"
}
response = requests.get(
"https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses');
url.searchParams.set('page', '1');
url.searchParams.set('featured', 'true');
url.searchParams.set('per_page', '30');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses")
q := baseURL.Query()
q.Set("page", "1")
q.Set("featured", "true")
q.Set("per_page", "30")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses")
uri.query = URI.encode_www_form({
"page" => "1",
"featured" => "true",
"per_page" => "30"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/licenses?" . http_build_query([
"page" => "1",
"featured" => "true",
"per_page" => "30"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));List all notifications for the current user, sorted by most recently updated.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications?all=false&page=1&since=example&before=example&per_page=50&participating=false"
import requests
params = {
"all": "false",
"page": "1",
"since": "example",
"before": "example",
"per_page": "50",
"participating": "false"
}
response = requests.get(
"https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications');
url.searchParams.set('all', 'false');
url.searchParams.set('page', '1');
url.searchParams.set('since', 'example');
url.searchParams.set('before', 'example');
url.searchParams.set('per_page', '50');
url.searchParams.set('participating', 'false');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications")
q := baseURL.Query()
q.Set("all", "false")
q.Set("page", "1")
q.Set("since", "example")
q.Set("before", "example")
q.Set("per_page", "50")
q.Set("participating", "false")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications")
uri.query = URI.encode_www_form({
"all" => "false",
"page" => "1",
"since" => "example",
"before" => "example",
"per_page" => "50",
"participating" => "false"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/github.com/ghes-3.6/1.1.4/notifications?" . http_build_query([
"all" => "false",
"page" => "1",
"since" => "example",
"before" => "example",
"per_page" => "50",
"participating" => "false"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with GitHub v3 REST API?
GitHub v3 REST API is a Developer Tools API. Developers commonly use developer tools APIs for:
- automating code review and quality checks
- integrating CI/CD pipelines and build systems
- managing feature flags and A/B tests
- monitoring errors and application performance
- generating and validating test data
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. GitHub v3 REST API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide