GroundsocialDocs

API · GitHub

GET /github/repos/{owner}/{repo}

A public GitHub repository: stars, forks, watchers, language, topics, license.

RequestGET /v1/github/repos/{owner}/{repo}
Operation idgithub.repo.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A public GitHub repository: stars, forks, watchers, language, topics, license.

Path parameters

NameTypeRequiredDescription
ownerstringyesRepository owner (user or organisation). Example: vercel.
repostringyesRepository name. Example: next.js.

Responses

StatusMeaningSchema
200The repository.GitHubRepoResponse
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404No public GitHub user, repository or issue by that name.Error
429Too many requests. Wait for Retry-After seconds.Error
503GitHub is temporarily unavailable. Retryable; nothing was charged.Error

GitHubRepoResponse fields

FieldTypeDescription
repoGitHubRepo

Errors use one shape everywhere; see Errors for every code and what to do.