GitHub API by APISH avatar

GitHub API by APISH

Pricing

$4.00 / 1,000 credits

Go to Apify Store
GitHub API by APISH

GitHub API by APISH

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.

Pricing

$4.00 / 1,000 credits

Rating

0.0

(0)

Developer

APISH

APISH

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

11 days ago

Last modified

Features

Limited permissions

Share

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

EndpointReturnsRequired parametersCredits
/github/v1/gistGitHub gistid1
/github/v1/organizationGitHub organizationhandle1
/github/v1/organization/membersGitHub organization membershandle1
/github/v1/organization/repositoriesGitHub organization repositorieshandle1
/github/v1/repositoryGitHub repository (with languages and latest release)url1
/github/v1/repository/branchesGitHub repository branchesurl1
/github/v1/repository/commitGitHub commiturl, sha1
/github/v1/repository/commitsGitHub repository commitsurl1
/github/v1/repository/contentsGitHub repository contentsurl1
/github/v1/repository/contributorsGitHub repository contributorsurl1
/github/v1/repository/dependentsRepository dependents (used by)url1
/github/v1/repository/discussionsRepository discussionsurl1
/github/v1/repository/forksGitHub repository forksurl1
/github/v1/repository/issueGitHub issue or pull requesturl1
/github/v1/repository/issuesGitHub repository issuesurl1
/github/v1/repository/languagesRepository languagesurl1
/github/v1/repository/licenseRepository licenseurl1
/github/v1/repository/pullGitHub pull requesturl1
/github/v1/repository/pullsGitHub repository pull requestsurl2
/github/v1/repository/readmeGitHub repository READMEurl1
/github/v1/repository/releasesGitHub repository releasesurl1
/github/v1/repository/tagsGitHub repository tagsurl1
/github/v1/repository/treeRepository file treeurl1
/github/v1/repository/workflowsRepository Actions workflows and runsurl1
/github/v1/search/commitsSearch commitsq1
/github/v1/search/issuesGitHub issue and pull request search—1
/github/v1/search/repositoriesGitHub repository search—1
/github/v1/search/topicsSearch topicsq1
/github/v1/search/usersGitHub user search—1
/github/v1/topicTopic pagetopic1
/github/v1/trending/developersGitHub trending developers—1
/github/v1/trending/repositoriesGitHub trending repositories—1
/github/v1/userGitHub user profileusername1
/github/v1/user/activityGitHub user public activityusername1
/github/v1/user/contributionsGitHub contribution calendar and streaksusername1
/github/v1/user/followersGitHub user followersusername1
/github/v1/user/followingAccounts a GitHub user followsusername1
/github/v1/user/gistsGitHub user gistshandle1
/github/v1/user/organizationsGitHub user organizationshandle1
/github/v1/user/packagesUser or organization packageshandle1
/github/v1/user/pull-requestsPull requests opened by a GitHub userusername1
/github/v1/user/repositoriesGitHub user repositoriesusername1
/github/v1/user/sponsorsUser sponsorshandle1
/github/v1/user/starredGitHub user starshandle1

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 newly 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: 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"}

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"}

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"}

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/
  • 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"}

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

Parameters:

  • language
  • since

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

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/
  • 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.