# GitHub API by APISH (`apish/github-api`) Actor

Repositories, commits, pull requests, people, trending lists and Used by dependents from GitHub as JSON, with one key and no personal access token, via APISH. Pay per credit; failed calls are free.

- **URL**: https://apify.com/apish/github-api.md
- **Developed by:** [APISH](https://apify.com/apish) (community)
- **Categories:** Jobs, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 credits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GitHub API by APISH

Get public GitHub data as clean, consistent JSON: gitHub gist, gitHub organization, gitHub organization members, gitHub organization repositories, gitHub repository (with languages and latest release), gitHub repository branches and more. 44 endpoints, one response shape, numbers parsed, absolute URLs.

### How to use

1. Pick an **Endpoint**. Each option shows what it returns and its price in credits.
2. Enter its **Parameters** as JSON, for example `{"url":"https://github.com/facebook/react"}`. All parameters are listed below.
3. Run. Each call becomes one row in the dataset. Use **Batch** to run the same endpoint for many inputs and **Pages per input** to follow pagination.

### Pricing

Pay per event: you pay per APISH credit the call used. The price of each endpoint is in the table below. Calls that fail on our side (server errors, timeouts, blocks) are free.

### Endpoints

| Endpoint | Returns | Required parameters | Credits |
|---|---|---|---|
| `/github/v1/gist` | GitHub gist | `id` | 1 |
| `/github/v1/organization` | GitHub organization | `handle` | 1 |
| `/github/v1/organization/members` | GitHub organization members | `handle` | 1 |
| `/github/v1/organization/repositories` | GitHub organization repositories | `handle` | 1 |
| `/github/v1/repository` | GitHub repository (with languages and latest release) | `url` | 1 |
| `/github/v1/repository/branches` | GitHub repository branches | `url` | 1 |
| `/github/v1/repository/commit` | GitHub commit | `url`, `sha` | 1 |
| `/github/v1/repository/commits` | GitHub repository commits | `url` | 1 |
| `/github/v1/repository/contents` | GitHub repository contents | `url` | 1 |
| `/github/v1/repository/contributors` | GitHub repository contributors | `url` | 1 |
| `/github/v1/repository/dependents` | Repository dependents (used by) | `url` | 1 |
| `/github/v1/repository/discussions` | Repository discussions | `url` | 1 |
| `/github/v1/repository/forks` | GitHub repository forks | `url` | 1 |
| `/github/v1/repository/issue` | GitHub issue or pull request | `url` | 1 |
| `/github/v1/repository/issues` | GitHub repository issues | `url` | 1 |
| `/github/v1/repository/languages` | Repository languages | `url` | 1 |
| `/github/v1/repository/license` | Repository license | `url` | 1 |
| `/github/v1/repository/pull` | GitHub pull request | `url` | 1 |
| `/github/v1/repository/pulls` | GitHub repository pull requests | `url` | 2 |
| `/github/v1/repository/readme` | GitHub repository README | `url` | 1 |
| `/github/v1/repository/releases` | GitHub repository releases | `url` | 1 |
| `/github/v1/repository/tags` | GitHub repository tags | `url` | 1 |
| `/github/v1/repository/tree` | Repository file tree | `url` | 1 |
| `/github/v1/repository/workflows` | Repository Actions workflows and runs | `url` | 1 |
| `/github/v1/search/commits` | Search commits | `q` | 1 |
| `/github/v1/search/issues` | GitHub issue and pull request search | — | 1 |
| `/github/v1/search/repositories` | GitHub repository search | — | 1 |
| `/github/v1/search/topics` | Search topics | `q` | 1 |
| `/github/v1/search/users` | GitHub user search | — | 1 |
| `/github/v1/topic` | Topic page | `topic` | 1 |
| `/github/v1/trending/developers` | GitHub trending developers | — | 1 |
| `/github/v1/trending/repositories` | GitHub trending repositories | — | 1 |
| `/github/v1/user` | GitHub user profile | `username` | 1 |
| `/github/v1/user/activity` | GitHub user public activity | `username` | 1 |
| `/github/v1/user/contributions` | GitHub contribution calendar and streaks | `username` | 1 |
| `/github/v1/user/followers` | GitHub user followers | `username` | 1 |
| `/github/v1/user/following` | Accounts a GitHub user follows | `username` | 1 |
| `/github/v1/user/gists` | GitHub user gists | `handle` | 1 |
| `/github/v1/user/organizations` | GitHub user organizations | `handle` | 1 |
| `/github/v1/user/packages` | User or organization packages | `handle` | 1 |
| `/github/v1/user/pull-requests` | Pull requests opened by a GitHub user | `username` | 1 |
| `/github/v1/user/repositories` | GitHub user repositories | `username` | 1 |
| `/github/v1/user/sponsors` | User sponsors | `handle` | 1 |
| `/github/v1/user/starred` | GitHub user stars | `handle` | 1 |

### Output

Each dataset row has `endpoint`, `params`, `status`, `credits_used` and the endpoint's data. Add `"raw": 1` to the parameters to also get the site's original record, or `"fields": "a,b.c"` to return only the fields you need.

### Endpoint details

#### GitHub gist

Endpoint `/github/v1/gist` · 1 credit per successful call.

One public gist with every file's name, language, size and content, its owner, forks and revision history.

Parameters:

- `id` (required): Gist id, or a gist.github.com link.

Example parameters: `{"id":"c385a3db3a1823b518f6acc34b7e66ec"}`

#### GitHub organization

Endpoint `/github/v1/organization` · 1 credit per successful call.

Public profile of an organization: name, description, blog, location, email, verified, public repos, followers, created date.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).

Example parameters: `{"handle":"vercel"}`

#### GitHub organization members

Endpoint `/github/v1/organization/members` · 1 credit per successful call.

Public members of an organization.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"handle":"vercel"}`

#### GitHub organization repositories

Endpoint `/github/v1/organization/repositories` · 1 credit per successful call.

An organization's repositories.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).
- `type` — one of `all`, `public`, `sources`, `forks`, `archived`, `template`: all (default), public, sources, forks, archived, template.
- `sort` — one of `created`, `updated`, `pushed`, `full_name`: created, updated, pushed, full_name.
- `direction` — one of `asc`, `desc`: asc or desc.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"handle":"vercel"}`

#### GitHub repository (with languages and latest release)

Endpoint `/github/v1/repository` · 1 credit per successful call.

Parameters:

- `url` (required): Repository URL or owner/name.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository branches

Endpoint `/github/v1/repository/branches` · 1 credit per successful call.

Branches with their head commit and protection flag.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `protected`: true to list only protected branches.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub commit

Endpoint `/github/v1/repository/commit` · 1 credit per successful call.

One commit with stats, files and patches.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `sha` (required): Commit SHA, branch or tag.

Example parameters: `{"url":"https://github.com/facebook/react","sha":"main"}`

#### GitHub repository commits

Endpoint `/github/v1/repository/commits` · 1 credit per successful call.

Commits with author, committer, message and dates.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `sha`: Branch, tag or commit to list from (default branch).
- `path`: Only commits touching this path.
- `author`: Login or email.
- `committer`: Login or email.
- `since`: YYYY-MM-DD or ISO time.
- `until`: YYYY-MM-DD or ISO time.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository contents

Endpoint `/github/v1/repository/contents` · 1 credit per successful call.

A directory listing, or one file decoded to text.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `path`: Path in the repository (default: root).
- `ref`: Branch, tag or commit.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository contributors

Endpoint `/github/v1/repository/contributors` · 1 credit per successful call.

Contributors with their contribution counts.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `anon`: true to include anonymous contributors.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### Repository dependents (used by)

Endpoint `/github/v1/repository/dependents` · 1 credit per successful call.

The repositories or packages that depend on a repository, as listed on its "Used by" page: owner, name, stars and forks of each, with the totals and the packages the repository publishes. 30 a page; pass `next_cursor` back as `cursor`, null on the last page.

Parameters:

- `url` (required): owner/repo or a github.com repository link.
- `type` — one of `repository`, `package`: Dependent repositories (default) or dependent packages.
- `package_id`: Only dependents of this published package (an id from `packages`).
- `cursor`: The `next_cursor` of the previous page.

Example parameters: `{"url":"expressjs/express"}`

#### Repository discussions

Endpoint `/github/v1/repository/discussions` · 1 credit per successful call.

A repository's Discussions: number, title, author, category, upvotes, comments, answered flag and creation time, plus the repository's discussion categories. Filter by category, text, answered state or open/closed; sort by latest activity, top or newest. Pass `next_page` back as `page`, null on the last page.

Parameters:

- `url` (required): owner/repo or a github.com repository link.
- `category`: Category slug (from `categories`).
- `q`: Search text.
- `sort` — one of `latest`, `top`, `new`: `latest` activity (default), `top` voted or `new`ly created.
- `answered` — one of `true`, `false`: Only answered or unanswered questions.
- `state` — one of `open`, `closed`, `all`: Open or closed discussions (default all).
- `page`: Page number.

Example parameters: `{"url":"vercel/next.js"}`

#### GitHub repository forks

Endpoint `/github/v1/repository/forks` · 1 credit per successful call.

Forks of the repository.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `sort` — one of `newest`, `oldest`, `stargazers`, `watchers`: newest (default), oldest, stargazers, watchers.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub issue or pull request

Endpoint `/github/v1/repository/issue` · 1 credit per successful call.

One issue or pull request (from its URL, or `url`=owner/repo plus `number`) with a page of comments. For a pull request, `include` adds `pull_request.files` (changed files with additions, deletions and patch), `pull_request.reviews` (reviewer, state, body, submitted_at) and `pull_request.check_runs` (name, status, conclusion; with `check_runs_total`) for the head commit.

Parameters:

- `url` (required): Issue or pull request URL, or owner/repo with `number`.
- `number`: Issue/PR number when `url` is owner/repo.
- `page`: Page number (100 per page); `next_page` is null on the last page.
- `include`: Pull requests only: comma-separated extras to add to `pull_request`: `files`, `reviews`, `checks`. Each adds to the call's cost. Ignored for issues.

Example parameters: `{"url":"https://github.com/facebook/react/issues/24502"}`

#### GitHub repository issues

Endpoint `/github/v1/repository/issues` · 1 credit per successful call.

A repository's issues and/or pull requests with labels, assignees, milestone, reactions and comment counts.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `state` — one of `open`, `closed`, `all`: open (default), closed, all.
- `type` — one of `issues`, `pulls`, `all`: issues (default), pulls, all.
- `labels`: Comma-separated label names.
- `sort` — one of `created`, `updated`, `comments`: created, updated, comments.
- `direction` — one of `asc`, `desc`: asc or desc.
- `since`: Only issues updated at or after this time (YYYY-MM-DD or ISO).
- `creator`: Login of the author.
- `assignee`: Login, `none` or `*`.
- `mentioned`: Login mentioned in the issue.
- `milestone`: Milestone number, `none` or `*`.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### Repository languages

Endpoint `/github/v1/repository/languages` · 1 credit per successful call.

Parameters:

- `url` (required): owner/repo or a github.com repository link.

Example parameters: `{"url":"torvalds/linux"}`

#### Repository license

Endpoint `/github/v1/repository/license` · 1 credit per successful call.

The repository's license file decoded, with its SPDX id, license name and links.

Parameters:

- `url` (required): owner/repo or a github.com repository link.
- `ref`: Branch, tag or commit (default: the default branch).

Example parameters: `{"url":"facebook/react"}`

#### GitHub pull request

Endpoint `/github/v1/repository/pull` · 1 credit per successful call.

One pull request: title, state (open, closed or merged), author, description, labels, assignees and requested reviewers, head and base branches, merge details (merged by, merge commit, mergeable state), commit, comment and review-comment counts, additions and deletions, the files changed (up to the first 100, each with status, additions, deletions and patch) and the reviews (reviewer, state, text, time).

Parameters:

- `url` (required): Pull request URL (`https://github.com/owner/repo/pull/123`), or `owner/repo` together with `number`.
- `number`: Pull request number, when `url` is only the repository.

Example parameters: `{"url":"https://github.com/facebook/react/pull/28000"}`

#### GitHub repository pull requests

Endpoint `/github/v1/repository/pulls` · 2 credits per successful call.

A repository's pull requests with head/base branches, draft and merge state.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `state` — one of `open`, `closed`, `all`: open (default), closed, all.
- `sort` — one of `created`, `updated`, `popularity`, `long-running`: created, updated, popularity, long-running.
- `direction` — one of `asc`, `desc`: asc or desc.
- `base`: Base branch name.
- `head`: Head as `user:branch`.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository README

Endpoint `/github/v1/repository/readme` · 1 credit per successful call.

The README, decoded to text.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `ref`: Branch, tag or commit.
- `path`: Directory whose README to read.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository releases

Endpoint `/github/v1/repository/releases` · 1 credit per successful call.

Releases with tag, name, body, author, dates and assets (download counts).

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### GitHub repository tags

Endpoint `/github/v1/repository/tags` · 1 credit per successful call.

Tags with their commit SHAs and archive links.

Parameters:

- `url` (required): Repository: `owner/repo` or a github.com URL (`repo` works too).
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"url":"https://github.com/facebook/react"}`

#### Repository file tree

Endpoint `/github/v1/repository/tree` · 1 credit per successful call.

Every file and folder of a repository (or one folder of it) at a branch, tag or commit: path, type, size, git sha and link. Very large repositories are cut at the source's limit (`truncated` is then true).

Parameters:

- `url` (required): owner/repo, a github.com repository link, or a github.com/owner/repo/tree/<ref>/<path> link.
- `ref`: Branch, tag or commit sha (default: the default branch).
- `path`: Only this folder.
- `recursive` — one of `true`, `false`: `true` (default) lists every level; `false` only the top level.
- `type` — one of `all`, `blob`, `tree`, `commit`: Only files (`blob`), folders (`tree`) or submodules (`commit`).

Example parameters: `{"url":"expressjs/express"}`

#### Repository Actions workflows and runs

Endpoint `/github/v1/repository/workflows` · 1 credit per successful call.

A repository's Actions workflows (name, file, state, badge) and its workflow runs, newest first: run number, event, status, conclusion, branch, commit, actor and times. Filter the runs by workflow, status, branch, event, actor or creation date. 50 runs a page; pass `next_page` back as `page`, null on the last page.

Parameters:

- `url` (required): owner/repo or a github.com repository link.
- `workflow`: Only runs of this workflow (its id or file name).
- `status` — one of `completed`, `action_required`, `cancelled`, `failure`, `neutral`, `skipped`, `stale`, `success`, `timed_out`, `in_progress`, `queued`, `requested`, `waiting`, `pending`: Run status or conclusion.
- `branch`: Only runs on this branch.
- `event`: Triggering event (push, pull_request, schedule, workflow_dispatch...).
- `actor`: Only runs started by this user.
- `created`: Creation date filter, e.g. 2026-10-01, >=2026-10-01 or 2026-10-01..2026-10-31.
- `page`: Page number (workflows are listed on page 1).

Example parameters: `{"url":"vercel/next.js"}`

#### Search commits

Endpoint `/github/v1/search/commits` · 1 credit per successful call.

Commit search across public repositories with GitHub's search qualifiers (repo:, author:, committer:, author-date:, merge:, is:public...): sha, message, repository, author and committer with dates. 100 a page, up to 1,000 results; pass `next_page` back as `page`.

Parameters:

- `q` (required): Search text with optional qualifiers.
- `sort` — one of `best-match`, `author-date`, `committer-date`: Sort order (default best match).
- `order` — one of `desc`, `asc`: Sort direction.
- `page`: Page number (1-10).

Example parameters: `{"q":"fix memory leak repo:vercel/next.js"}`

#### GitHub issue and pull request search

Endpoint `/github/v1/search/issues` · 1 credit per successful call.

Search issues and pull requests across GitHub (issues by default; type=pr for pull requests), with qualifiers as params.

Parameters:

- `q`: Search text (optional when a qualifier is given).
- `repo`: owner/repo.
- `org`: Organization.
- `user`: Owner login.
- `type` — one of `issue`, `pr`: issue or pr.
- `state` — one of `open`, `closed`: open or closed.
- `is`: merged, draft, locked...
- `label`: Label (comma-separated for several).
- `author`: Author login.
- `assignee`: Assignee login.
- `mentions`: Mentioned login.
- `language`: Repository language.
- `created`: e.g. >2026-01-01.
- `updated`: e.g. >2026-01-01.
- `closed`: e.g. 2026-01-01..2026-02-01.
- `comments`: e.g. >10.
- `reactions`: e.g. >50.
- `sort`: comments, reactions, interactions, created, updated.
- `order` — one of `asc`, `desc`: desc or asc.
- `page`: Page number (100 per page, 10 pages max).

Example parameters: `{"q":"memory leak","page":"1"}`

#### GitHub repository search

Endpoint `/github/v1/search/repositories` · 1 credit per successful call.

Search repositories; GitHub's qualifiers can be given as params (language=go, stars=>1000, topic=, user=, org=, created=, pushed=, license=, size=, is=, archived=, in\_=name,description...). Up to 1,000 results.

Parameters:

- `q`: Search text (optional when a qualifier is given).
- `language`: Language qualifier.
- `topic`: Topic qualifier.
- `user`: Owner login.
- `org`: Organization login.
- `stars`: Stars, e.g. >1000 or 10..50.
- `forks`: Forks, e.g. >100.
- `created`: Creation date, e.g. >2024-01-01.
- `pushed`: Last push date, e.g. >2026-01-01.
- `license`: License key, e.g. mit.
- `size`: Size in KB, e.g. <1000.
- `is`: public, private, template, sponsorable...
- `archived`: true or false.
- `in_`: Where q matches: name, description, readme, topics (comma-separated).
- `sort` — one of `stars`, `forks`, `help-wanted-issues`, `updated`: stars, forks, help-wanted-issues, updated (default: best match).
- `order` — one of `asc`, `desc`: desc (default) or asc.
- `page`: Page number (100 per page, 10 pages max).

Example parameters: `{"q":"http framework","page":"1"}`

#### Search topics

Endpoint `/github/v1/search/topics` · 1 credit per successful call.

GitHub topics matching a search: name, display name, descriptions, creator, release date, featured/curated flags, logo, aliases and related topics. 100 a page; pass `next_page` back as `page`.

Parameters:

- `q` (required): Search text.
- `featured` — one of `true`, `false`: Only featured (or not featured) topics.
- `curated` — one of `true`, `false`: Only curated (or not curated) topics.
- `page`: Page number (1-10).

Example parameters: `{"q":"react"}`

#### GitHub user search

Endpoint `/github/v1/search/users` · 1 credit per successful call.

Search users and organizations, with qualifiers as params.

Parameters:

- `q`: Search text (optional when a qualifier is given).
- `type` — one of `user`, `org`: user or org.
- `location`: Location qualifier.
- `language`: Language of their repositories.
- `followers`: Followers, e.g. >1000.
- `repos`: Repository count, e.g. >10.
- `created`: Join date, e.g. <2015-01-01.
- `in_`: login, name, email.
- `sort` — one of `followers`, `repositories`, `joined`: followers, repositories, joined.
- `order` — one of `asc`, `desc`: desc or asc.
- `page`: Page number (100 per page, 10 pages max).

Example parameters: `{"q":"react","page":"1"}`

#### Topic page

Endpoint `/github/v1/topic` · 1 credit per successful call.

A GitHub topic (description, logo, aliases, related topics) and its repositories, most starred first by default, with every repository field. 50 a page, up to 1,000; pass `next_page` back as `page`.

Parameters:

- `topic` (required): Topic name, or a github.com/topics/<name> link.
- `sort` — one of `stars`, `best-match`, `forks`, `updated`, `help-wanted-issues`: Sort of the repositories (default stars).
- `order` — one of `desc`, `asc`: Sort direction.
- `language`: Only repositories in this language.
- `page`: Page number.

Example parameters: `{"topic":"machine-learning"}`

#### GitHub trending developers

Endpoint `/github/v1/trending/developers` · 1 credit per successful call.

Parameters:

- `language`
- `since`

Example parameters: `{"language":"python","since":"daily"}`

#### GitHub trending repositories

Endpoint `/github/v1/trending/repositories` · 1 credit per successful call.

Parameters:

- `language`
- `since`: daily, weekly or monthly.

Example parameters: `{"language":"python","since":"daily"}`

#### GitHub user profile

Endpoint `/github/v1/user` · 1 credit per successful call.

Parameters:

- `username` (required): GitHub login.

Example parameters: `{"username":"torvalds"}`

#### GitHub user public activity

Endpoint `/github/v1/user/activity` · 1 credit per successful call.

Parameters:

- `username` (required)
- `page`

Example parameters: `{"username":"torvalds"}`

#### GitHub contribution calendar and streaks

Endpoint `/github/v1/user/contributions` · 1 credit per successful call.

Parameters:

- `username` (required)

Example parameters: `{"username":"torvalds"}`

#### GitHub user followers

Endpoint `/github/v1/user/followers` · 1 credit per successful call.

Parameters:

- `username` (required)
- `page`: Page number (100 per page).

Example parameters: `{"username":"torvalds"}`

#### Accounts a GitHub user follows

Endpoint `/github/v1/user/following` · 1 credit per successful call.

Parameters:

- `username` (required)
- `page`

Example parameters: `{"username":"sindresorhus"}`

#### GitHub user gists

Endpoint `/github/v1/user/gists` · 1 credit per successful call.

The user's public gists with their files.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).
- `since`: Only gists updated after this time.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"handle":"gaearon"}`

#### GitHub user organizations

Endpoint `/github/v1/user/organizations` · 1 credit per successful call.

The user's public organization memberships.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).

Example parameters: `{"handle":"gaearon"}`

#### User or organization packages

Endpoint `/github/v1/user/packages` · 1 credit per successful call.

Pass `next_page` back as `page`, null on the last page.

Parameters:

- `handle` (required): Username or organization name, or a profile link.
- `type` — one of `all`, `container`, `npm`, `maven`, `rubygems`, `nuget`, `docker`: Package ecosystem (default all).
- `q`: Search text.
- `sort` — one of `newest`, `downloads`, `least_downloads`: Sort order.
- `page`: Page number.

Example parameters: `{"handle":"github"}`

#### Pull requests opened by a GitHub user

Endpoint `/github/v1/user/pull-requests` · 1 credit per successful call.

Parameters:

- `username` (required)
- `state`: open, closed or all.
- `page`

Example parameters: `{"username":"torvalds"}`

#### GitHub user repositories

Endpoint `/github/v1/user/repositories` · 1 credit per successful call.

Parameters:

- `username` (required)
- `sort`: updated, created, pushed or full_name.
- `page`

Example parameters: `{"username":"torvalds"}`

#### User sponsors

Endpoint `/github/v1/user/sponsors` · 1 credit per successful call.

A maintainer's GitHub Sponsors page: current and past sponsor counts, monthly and one-time tiers in USD, goal, and the public sponsors (login, type, avatar). Pass `next_page` back as `page`, null on the last page.

Parameters:

- `handle` (required): Username or github.com/sponsors/<user> link.
- `filter` — one of `active`, `inactive`: Current (`active`, default) or past sponsors.
- `page`: Page number.

Example parameters: `{"handle":"sindresorhus"}`

#### GitHub user stars

Endpoint `/github/v1/user/starred` · 1 credit per successful call.

Repositories the user starred, with when.

Parameters:

- `handle` (required): GitHub login (`username` or a github.com URL work too).
- `sort` — one of `created`, `updated`: created or updated.
- `direction` — one of `asc`, `desc`: asc or desc.
- `page`: Page number (100 per page); `next_page` is null on the last page.

Example parameters: `{"handle":"torvalds"}`

### Support

Questions, bugs or a missing field? Open an issue in this Actor's Issues tab and we will reply there.

Public data only: nothing behind a login. You are responsible for how you use the data you collect.

# Actor input Schema

## `endpoint` (type: `string`):

Which GitHub endpoint to call. Each option shows what it returns and its price in credits.

## `params` (type: `object`):

Query parameters for the endpoint, as JSON. See the README for every endpoint's parameters. Example: {"url":"https://github.com/facebook/react"}

## `batch` (type: `array`):

Run the same endpoint for many inputs: a list of parameter objects. Each item is one call. Leave empty to use Parameters.

## `maxPages` (type: `integer`):

For paginated endpoints: follow next_cursor up to this many pages per input. 1 = first page only.

## Actor input object example

```json
{
  "endpoint": "/github/v1/repository",
  "params": {
    "url": "https://github.com/facebook/react"
  },
  "batch": [],
  "maxPages": 1
}
```

# Actor output Schema

## `results` (type: `string`):

One row per call: endpoint, params, status, credits_used and the data.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "endpoint": "/github/v1/repository",
    "params": {
        "url": "https://github.com/facebook/react"
    },
    "batch": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("apish/github-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "endpoint": "/github/v1/repository",
    "params": { "url": "https://github.com/facebook/react" },
    "batch": [],
}

# Run the Actor and wait for it to finish
run = client.actor("apish/github-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "endpoint": "/github/v1/repository",
  "params": {
    "url": "https://github.com/facebook/react"
  },
  "batch": []
}' |
apify call apish/github-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apish/github-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5IaEBFefRn2xLOklx/builds/RJ4o6uh3jkPnWdAR6/openapi.json
