Skip to main content

Get repository information

Fetches basic metadata about a GitHub repository.
GET /api/github-info?owner={owner}&repo={repo}

Query parameters

owner
string
required
Repository owner (username or organization)
repo
string
required
Repository name

Response

name
string
Repository name
fullName
string
Full repository name (owner/repo)
description
string
Repository description
stars
number
Number of stars
forks
number
Number of forks
language
string
Primary programming language
owner
object
Repository owner details

Example request

curl "https://repolyze.ossium.live/api/github-info?owner=vercel&repo=next.js"

Example response

{
  "name": "next.js",
  "fullName": "vercel/next.js",
  "description": "The React Framework",
  "stars": 120000,
  "forks": 25000,
  "language": "TypeScript",
  "owner": {
    "login": "vercel",
    "avatarUrl": "https://avatars.githubusercontent.com/u/14985020"
  }
}

Error responses

{
  "error": "Missing owner or repo"
}
{
  "error": "Failed to fetch repository"
}

Caching

This endpoint uses server-side caching with a 5-minute TTL and HTTP cache headers:
Cache-Control: public, s-maxage=300, stale-while-revalidate=600
Responses are cached for 5 minutes and can serve stale content for up to 10 minutes while revalidating.

Analyze Repository

Full repository analysis with AI insights

Get Branches

List all repository branches

Build docs developers (and LLMs) love