Social Fetch
GitHub

List GitHub profile repositories

List repositories for a GitHub user or organization.

An empty `data.repositories` array with `lookupStatus: "found"` means the profile resolved but this page returned no repositories.

GET/v1/github/profiles/{handle}/repositories
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
5
handle*stringpath

GitHub username whose public repositories should be listed.

min 1 chars · max 39 chars

cursorstringoptionalquery

Pagination cursor returned by a previous response.

min 1 chars

typestringoptionalquery

Repository type filter. Defaults to owner.

one of: owner, all, member

sortstringoptionalquery

Sort field for repositories.

one of: created, updated, pushed, full_name

directionstringoptionalquery

Sort direction.

one of: asc, desc

Response fields
44

Endpoint-specific response payload.

datalookupStatus
string

Whether the profile resolved for this request.

one of: found, not_found

Public repositories for the requested profile page.

datarepositories[]platformRepoId
string

GitHub repository id as a string.

datarepositories[]nodeId
stringoptional

GitHub node id when available.

datarepositories[]name
string

Repository name without the owner prefix.

datarepositories[]fullName
string

Full repository name in `owner/repo` form.

Repository owner.

datarepositories[]ownerplatformUserId
string

GitHub user or organization id as a string.

datarepositories[]ownerhandle
string

GitHub login (username).

datarepositories[]owneravatarUrl
stringnullable

Avatar image URL for the owner.

datarepositories[]ownerprofileUrl
string

Canonical public GitHub profile URL for the owner.

min 1 chars

datarepositories[]owneraccountType
string

Whether the owner is a user or organization.

one of: User, Organization

datarepositories[]isPrivate
boolean

Whether the repository is private.

datarepositories[]profileUrl
string

Canonical public GitHub repository URL.

min 1 chars

datarepositories[]description
stringnullable

Repository description when available.

datarepositories[]isFork
boolean

Whether the repository is a fork.

datarepositories[]homepage
stringnullable

Homepage URL when set on the repository.

datarepositories[]language
stringnullable

Primary programming language when reported.

datarepositories[]forksCount
integernullable

Fork count when available.

≥ 0

datarepositories[]starsCount
integernullable

Star count when available.

≥ 0

datarepositories[]watchersCount
integernullable

Watcher count when available.

≥ 0

datarepositories[]sizeKb
integernullable

Repository size in kilobytes when available.

≥ 0

datarepositories[]defaultBranch
stringnullable

Default branch name when available.

datarepositories[]openIssuesCount
integernullable

Open issue count when available.

≥ 0

Repository topic tags when available.

datarepositories[]topics[]
stringoptional

License metadata when available.

datarepositories[]licensekey
string

License key identifier.

datarepositories[]licensename
string

Human-readable license name.

datarepositories[]licensespdxId
stringnullable

SPDX license identifier when available.

datarepositories[]archived
boolean

Whether the repository is archived.

datarepositories[]disabled
boolean

Whether the repository is disabled.

datarepositories[]visibility
stringnullable

Repository visibility label when available.

datarepositories[]pushedAt
stringnullable

Last push timestamp (ISO 8601) when available.

datarepositories[]createdAt
stringnullable

Creation timestamp (ISO 8601) when available.

datarepositories[]updatedAt
stringnullable

Last update timestamp (ISO 8601) when available.

Pagination state for the current page.

datapagenextCursor
stringnullable

Opaque cursor for the next page, or null when there is no next page.

datapagehasMore
boolean

Whether another page of results is 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/profiles/torvalds/repositories" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Lookup result. Check `data.lookupStatus` for `found` or `not_found`.

On this page

No Headings