Social Fetch
GitHub

Get GitHub repository

Get a single GitHub repository by URL.

Use this endpoint for one repository when you have a full `owner/repo` URL. To list every public repository for a user, use the profile repositories list endpoint instead.

GET/v1/github/repositories
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
1
url*stringquery

Full public GitHub repository URL.

min 1 chars · max 4096 chars

Response fields
41

Endpoint-specific response payload.

datalookupStatus
string

Whether the repository was found.

one of: found, not_found

Repository metadata when available.

datarepositoryplatformRepoId
string

GitHub repository id as a string.

datarepositorynodeId
stringoptional

GitHub node id when available.

datarepositoryname
string

Repository name without the owner prefix.

datarepositoryfullName
string

Full repository name in `owner/repo` form.

Repository owner.

datarepositoryownerplatformUserId
string

GitHub user or organization id as a string.

datarepositoryownerhandle
string

GitHub login (username).

datarepositoryowneravatarUrl
stringnullable

Avatar image URL for the owner.

datarepositoryownerprofileUrl
string

Canonical public GitHub profile URL for the owner.

min 1 chars

datarepositoryowneraccountType
string

Whether the owner is a user or organization.

one of: User, Organization

datarepositoryisPrivate
boolean

Whether the repository is private.

datarepositoryprofileUrl
string

Canonical public GitHub repository URL.

min 1 chars

datarepositorydescription
stringnullable

Repository description when available.

datarepositoryisFork
boolean

Whether the repository is a fork.

datarepositoryhomepage
stringnullable

Homepage URL when set on the repository.

datarepositorylanguage
stringnullable

Primary programming language when reported.

datarepositoryforksCount
integernullable

Fork count when available.

≥ 0

datarepositorystarsCount
integernullable

Star count when available.

≥ 0

datarepositorywatchersCount
integernullable

Watcher count when available.

≥ 0

datarepositorysizeKb
integernullable

Repository size in kilobytes when available.

≥ 0

datarepositorydefaultBranch
stringnullable

Default branch name when available.

datarepositoryopenIssuesCount
integernullable

Open issue count when available.

≥ 0

Repository topic tags when available.

datarepositorytopics[]
stringoptional

License metadata when available.

datarepositorylicensekey
string

License key identifier.

datarepositorylicensename
string

Human-readable license name.

datarepositorylicensespdxId
stringnullable

SPDX license identifier when available.

datarepositoryarchived
boolean

Whether the repository is archived.

datarepositorydisabled
boolean

Whether the repository is disabled.

datarepositoryvisibility
stringnullable

Repository visibility label when available.

datarepositorypushedAt
stringnullable

Last push timestamp (ISO 8601) when available.

datarepositorycreatedAt
stringnullable

Creation timestamp (ISO 8601) when available.

datarepositoryupdatedAt
stringnullable

Last update timestamp (ISO 8601) when available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/github/repositories?url=https://github.com/torvalds/linux" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Repository lookup result. Check `data.lookupStatus` for `found` or `not_found`.

On this page

No Headings