100 free credits. No credit card required. Get a key

GitHub repository search API

Search repositories with GitHub qualifiers, sorted by stars, forks or updated.

GET /v1/github/search/repos1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/github/search/repos?q=vector%20database%20language:rust",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"total_count": 483,
"incomplete_results": false,
"items": [
{
"id": 268163609,
"name": "qdrant",
"full_name": "qdrant/qdrant",
"owner": {
"login": "qdrant",
"id": 73504361,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjczNTA0MzYx",
"avatar_url": "https://avatars.githubusercontent.com/u/73504361?v=4",
"html_url": "https://github.com/qdrant",
"type": "Organization",
"site_admin": false,
"gravatar_id": "",
"url": "https://api.github.com/users/qdrant",
"followers_url": "https://api.github.com/users/qdrant/followers",
"following_url": "https://api.github.com/users/qdrant/following{/other_user}",
"gists_url": "https://api.github.com/users/qdrant/gists{/gist_id}",
"starred_url": "https://api.github.com/users/qdrant/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/qdrant/subscriptions",
"…": "5 more fields"
},
"private": false,
"html_url": "https://github.com/qdrant/qdrant",
"description": "Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the …",
"fork": false,
"homepage": "https://qdrant.tech",
"language": "Rust",
"stargazers_count": 35729,
"watchers_count": 35729,
"forks_count": 2850,
"open_issues_count": 878,
"…": "68 more fields"
},
{
"id": 628230315,
"name": "pgvecto.rs",
"full_name": "tensorchord/pgvecto.rs",
"owner": {
"login": "tensorchord",
"id": 100543303,
"node_id": "O_kgDOBf4rRw",
"avatar_url": "https://avatars.githubusercontent.com/u/100543303?v=4",
"html_url": "https://github.com/tensorchord",
"type": "Organization",
"site_admin": false,
"gravatar_id": "",
"url": "https://api.github.com/users/tensorchord",
"followers_url": "https://api.github.com/users/tensorchord/followers",
"following_url": "https://api.github.com/users/tensorchord/following{/other_user}",
"gists_url": "https://api.github.com/users/tensorchord/gists{/gist_id}",
"starred_url": "https://api.github.com/users/tensorchord/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tensorchord/subscriptions",
"…": "5 more fields"
},
"private": false,
"html_url": "https://github.com/tensorchord/pgvecto.rs",
"description": "Scalable, Low-latency and Hybrid-enabled Vector Search in Postgres. Revolutionize Vector S…",
"fork": false,
"homepage": "https://docs.vectorchord.ai/getting-started/overview.html",
"language": "Rust",
"stargazers_count": 2189,
"watchers_count": 2189,
"forks_count": 87,
"open_issues_count": 77,
"…": "68 more fields"
},
"… 28 more"
],
"page": 1,
"per_page": 30,
"has_more": true,
"next_cursor": "eyJzIjoic3I6dmVjdG9yIGRhdGFiYXNlIGxhbmd1YWdlOnJ1c3Q6OmRlc2MiLCJwIjoyLCJuIjozMH0"
}

Parameters

NameTypeDescription
qquery · requiredstringGitHub repository search query. Example: language:rust stars:>5000.
sortquery"stars" | "forks" | "help-wanted-issues" | "updated"Sort field (default: best match). One of stars, forks, help-wanted-issues, updated.
orderquery"asc" | "desc"desc (default) or asc. One of asc, desc.
sincequerystringOnly items on or after this date (YYYY-MM-DD or ISO 8601).
untilquerystringOnly items on or before this date (that whole UTC day for YYYY-MM-DD).
per_pagequeryintegerItems per page, 1-100 (default 30).
pagequeryinteger1-indexed page number (default 1).
afterquerystringCursor: the previous page’s next_cursor (instead of page).
Response fields

200 with a GitHubRepoSearchResponse, in GitHub’s own REST v3 objects.

FieldTypeDescription
total_countinteger
incomplete_resultsboolean
itemsGitHubRepo[]
pageinteger1-indexed page this is.
per_pageinteger
has_moreboolean
next_cursorstring | nullPass as after for the next page; null at the end.
Status codes
StatusMeaning
200Matching repositories.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404No public GitHub user, repository or issue by that name.
429Too many requests. Wait for Retry-After seconds.
503GitHub is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

GitHub is a trademark of GitHub, Inc. We are not affiliated with or endorsed by GitHub.