Find an API

Search public APIs with auth details & Postman guides

← All APIs

GitHub v3 REST API

github · Developer Tools

Developer Tools No Auth Free & Open collaboration developer_tools

GitHub's v3 REST API.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET List issues assigned to the authenticated user

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 v3 conside

https://api.apis.guru/v2/specs/github.com/ghes-2.18/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

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-2.18/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-2.18/1.1.4/issues",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-2.18/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-2.18/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-2.18/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-2.18/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 Get all commonly used licenses

Get all commonly used licenses

https://api.apis.guru/v2/specs/github.com/ghes-2.18/1.1.4/licenses?page=1&featured=true&per_page=30

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-2.18/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-2.18/1.1.4/licenses",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-2.18/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-2.18/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-2.18/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-2.18/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));
GET Get Octocat

Get the octocat as ASCII art

https://api.apis.guru/v2/specs/github.com/ghes-2.18/1.1.4/octocat?s=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/github.com/ghes-2.18/1.1.4/octocat?s=example"
import requests
params = {
    "s": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/github.com/ghes-2.18/1.1.4/octocat",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/github.com/ghes-2.18/1.1.4/octocat');
url.searchParams.set('s', 'example');

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-2.18/1.1.4/octocat")
	q := baseURL.Query()
	q.Set("s", "example")
	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-2.18/1.1.4/octocat")
uri.query = URI.encode_www_form({
  "s" => "example"
})

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-2.18/1.1.4/octocat?" . http_build_query([
    "s" => "example"
]);
$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

Get Postman ↗
  1. 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

Open documentation ↗