Repositories
curl --request GET \
--url https://api.example.com/api/v1/scrape/github/user/repositories \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/github/user/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/github/user/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/scrape/github/user/repositories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/scrape/github/user/repositories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/github/user/repositories")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/github/user/repositories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyGitHub Scraper
Repositories
Retrieves a user’s public repositories with repo metadata like description, language, stars, forks, topics, license, visibility, default branch, and timestamps. Pass username, handle, or url. Supports pagination with cursor, plus GitHub’s type, sort, and direction parameters.
GET
/
api
/
v1
/
scrape
/
github
/
user
/
repositories
Repositories
curl --request GET \
--url https://api.example.com/api/v1/scrape/github/user/repositories \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/github/user/repositories"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/github/user/repositories', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/scrape/github/user/repositories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/scrape/github/user/repositories"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/github/user/repositories")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/github/user/repositories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
handle | string | No | GitHub username/handle of the user you want the repositories for |
url | string | No | GitHub user URL, e.g. https://github.com/kentcdodds. |
type | string | No | Repository type. Defaults to owner. GitHub also supports all and member. |
sort | string | No | Sort by created, updated, pushed, or full_name. Defaults to updated. |
direction | string | No | Sort direction: ascending or descending. |
cursor | number | No | Cursor from the previous response. Defaults to 1. |
Response Example
{
"success": true,
"data": {
"success": true,
"repositories": [
{
"id": 320393623,
"node_id": "MDEwOlJlcG9zaXRvcnkzMjAzOTM2MjM=",
"name": "kentcdodds.com",
"full_name": "kentcdodds/kentcdodds.com",
"owner": {
"id": 1500684,
"login": "kentcdodds",
"avatar_url": "https://avatars.githubusercontent.com/u/1500684?v=4",
"url": "https://github.com/kentcdodds",
"type": "User"
},
"private": false,
"url": "https://github.com/kentcdodds/kentcdodds.com",
"description": "My personal website",
"fork": false,
"homepage": "https://kentcdodds.com",
"language": "MDX",
"forks_count": 654,
"stars_count": 2485,
"watchers_count": 2485,
"size": 53677,
"default_branch": "main",
"open_issues_count": 4,
"topics": [
"kentcdodds"
],
"license": {
"key": "other",
"name": "Other",
"spdx_id": "NOASSERTION"
},
"archived": false,
"disabled": false,
"visibility": "public",
"pushed_at": "2026-05-20T20:16:24Z",
"created_at": "2020-12-10T21:24:32Z",
"updated_at": "2026-05-21T16:43:37Z"
}
],
"cursor": 2
}
}
Last modified on September 21, 2026

