# GitHub data APIs for AI agents > morigraph has 16 GitHub data APIs that Claude, ChatGPT, Cursor, Codex or your own code can call, including repository, issue and PR search, issue comments and repository contributors. You need no GitHub developer account or API key, only one morigraph connection. Calls cost from 0.024 credits, about $2.40 for 1,000 calls, paid from one balance. ## How to call it Every data API is run by one tool, `data_api`, with the API's id and its arguments. The example is GitHub Repository. In your assistant (MCP). Connect once, then ask in plain words: ```sh claude mcp add --transport http --scope user morigraph https://morigraph.com/mcp Use morigraph's GitHub Repository data API with {"url":"https://github.com/facebook/react"} and summarise what comes back. ``` From a terminal or script (CLI): ```sh npx @morigraph/cli@latest login morigraph call data_api --json-args '{"api":"github.repository","input":{"url":"https://github.com/facebook/react"}}' ``` From your own code (HTTP API): ```sh curl https://api.morigraph.com/v1/tools/data_api \ -H "Authorization: Bearer $MORIGRAPH_API_KEY" \ -H "Content-Type: application/json" \ -d '{"api":"github.repository","input":{"url":"https://github.com/facebook/react"}}' ``` ## GitHub Repository `github.repository` · 0.024 credits a call (about $2.40 for 1,000) Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps). | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | GitHub repository URL (e.g. https://github.com/facebook/react). | Returns: `archived`, `avatarUrl`, `createdUtc`, `defaultBranch`, `description`, `fork`, `forks`, `fullName`, `homepage`, `id`, `language`, `license`, `name`, `openIssues`, `owner`, `private`, `profileUrl`, `pushedAt`, `size`, `stars`, `topics`, `updatedAt`, `url`, `watchers` ``` data_api({"api":"github.repository","input":{"url":"https://github.com/facebook/react"}}) ``` ## GitHub Issue and PR Search `github.search_issues` · 0.048 credits a call (about $4.80 for 1,000) Search issues and pull requests across GitHub with GitHub's own search syntax (repo:, is:pr, is:issue, author:, label:, created:...), with each result's author, state, labels, counts and body. Use it to find who opens issues and pull requests on a repository. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Rows per page, 1-100 (GitHub's own page-size limit). Keep it the same while walking pages, because it sets the page size. | | `order` | desc \| asc | no | Sort direction when sort is set. Defaults to desc. | | `page` | integer | no | 1-based page of results. Request page + 1 while hasMore is true. | | `query` | string | yes | GitHub issue search query with any of GitHub's qualifiers, e.g. "repo:openai/whisper is:pr", "is:issue label:bug author:octocat", "repo:ggml-org/llama.cpp is:pr is:merged created:>2026-01-01". | | `sort` | comments \| created \| updated \| reactions | no | Sort by number of comments, creation date, last update, or reactions. Omit for best match. | Returns: `author`, `authorAssociation`, `authorAvatarUrl`, `authorId`, `authorType`, `body`, `closedUtc`, `comments`, `createdUtc`, `draft`, `hasMore`, `id`, `isPullRequest`, `issues`, `labels`, `mergedUtc`, `number`, `reactions`, `repo`, `state`, `title`, `total`, `updatedUtc`, `url` ``` data_api({"api":"github.search_issues","input":{"query":"repo:openai/whisper is:pr"}}) ``` ## GitHub Issue Comments `github.issue_comments` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 List the comments on a GitHub issue or pull request by its URL, oldest first, with each commenter's login, their relationship to the repository, reactions and the comment text. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response's nextCursor. | | `limit` | integer | no | Rows per page, 1-100 (GitHub's own page-size limit). Each call returns one full page of this size; use nextCursor for the next page. | | `since` | string | no | Only comments updated on or after this date (YYYY-MM-DD). | | `url` | string | yes | URL of a GitHub issue or pull request, e.g. https://github.com/openai/whisper/pull/1838. | Returns: `author`, `authorAssociation`, `authorAvatarUrl`, `authorId`, `authorType`, `body`, `comments`, `createdUtc`, `id`, `nextCursor`, `reactions`, `updatedUtc`, `url` ``` data_api({"api":"github.issue_comments","input":{"limit":10,"url":"https://github.com/openai/whisper/pull/1838"}}) ``` ## GitHub Repository Contributors `github.repository_contributors` · 0.024 credits a call (about $2.40 for 1,000) List the people who have committed to a GitHub repository by repository URL, ordered by number of commits, with each contributor's login, profile URL and commit count. Look each one up with github.user for their profile, website and socials. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Rows per page, 1-100 (GitHub's own page-size limit). Keep it the same while walking pages, because it sets the page size. | | `page` | integer | no | 1-based page of contributors. Request page + 1 while hasMore is true. | | `url` | string | yes | GitHub repository URL, e.g. https://github.com/openai/whisper. | Returns: `avatarUrl`, `contributions`, `contributors`, `hasMore`, `id`, `login`, `siteAdmin`, `type`, `url` ``` data_api({"api":"github.repository_contributors","input":{"limit":10,"url":"https://github.com/openai/whisper"}}) ``` ## GitHub Repository Forks `github.repository_forks` · 0.024 credits a call (about $2.40 for 1,000) List the forks of a GitHub repository by repository URL, with each fork's owner, description, stars, language and last push. Sort by newest, oldest or most starred. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Rows per page, 1-100 (GitHub's own page-size limit). Keep it the same while walking pages, because it sets the page size. | | `page` | integer | no | 1-based page of forks. Request page + 1 while hasMore is true. | | `sort` | newest \| oldest \| stargazers \| watchers | no | Order of the forks. Defaults to newest. | | `url` | string | yes | GitHub repository URL, e.g. https://github.com/openai/whisper. | Returns: `archived`, `createdUtc`, `defaultBranch`, `description`, `forks`, `fullName`, `hasMore`, `homepage`, `id`, `language`, `name`, `openIssues`, `owner`, `ownerAvatarUrl`, `ownerType`, `ownerUrl`, `pushedUtc`, `size`, `stars`, `topics`, `updatedUtc`, `url`, `watchers` ``` data_api({"api":"github.repository_forks","input":{"url":"https://github.com/openai/whisper"}}) ``` ## GitHub Repository Issues `github.repository_issues` · 0.024 credits a call (about $2.40 for 1,000) List a GitHub repository's issues and pull requests by repository URL (GitHub lists pull requests as issues), with each one's author, state, labels, counts and body. Filter by state, sort and update date. | Argument | Type | Required | What it is | |---|---|---|---| | `limit` | integer | no | Rows per page, 1-100 (GitHub's own page-size limit). Keep it the same while walking pages, because it sets the page size. | | `order` | desc \| asc | no | Sort direction. Defaults to desc. | | `page` | integer | no | 1-based page of issues. Request page + 1 while hasMore is true. | | `since` | string | no | Only issues updated on or after this date (YYYY-MM-DD). | | `sort` | created \| updated \| comments | no | Sort by creation date, last update, or number of comments. Defaults to created. | | `state` | open \| closed \| all | no | Which issues to list. Defaults to open. | | `url` | string | yes | GitHub repository URL, e.g. https://github.com/openai/whisper. | Returns: `author`, `authorAssociation`, `authorAvatarUrl`, `authorId`, `authorType`, `body`, `closedUtc`, `comments`, `createdUtc`, `draft`, `hasMore`, `id`, `isPullRequest`, `issues`, `labels`, `mergedUtc`, `number`, `reactions`, `repo`, `state`, `title`, `updatedUtc`, `url` ``` data_api({"api":"github.repository_issues","input":{"url":"https://github.com/openai/whisper"}}) ``` ## GitHub Repository README `github.repository_readme` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Get a GitHub repository's README by repository URL, as the Markdown text the maintainers wrote, with its file name, path and size. Use it to learn what a project does, which models and tools it uses, and how to reach its authors. | Argument | Type | Required | What it is | |---|---|---|---| | `url` | string | yes | GitHub repository URL, e.g. https://github.com/openai/whisper. The README of the default branch is returned. | Returns: `content`, `downloadUrl`, `name`, `path`, `sha`, `size`, `url` ``` data_api({"api":"github.repository_readme","input":{"url":"https://github.com/openai/whisper"}}) ``` ## GitHub Trending Developers `github.trending_developers` · 0.024 credits a call (about $2.40 for 1,000) List trending GitHub developers (rank, username, name, avatar, and their most popular repository), optionally filtered by programming language and time range. | Argument | Type | Required | What it is | |---|---|---|---| | `language` | string | no | Programming language to filter trending developers (e.g. javascript, python, go). | | `since` | daily \| weekly \| monthly | no | Trending range: daily, weekly, or monthly (defaults to daily). | Returns: `avatarUrl`, `developers`, `language`, `name`, `popularRepo`, `popularRepoDescription`, `popularRepoUrl`, `rank`, `since`, `url`, `username` ``` data_api({"api":"github.trending_developers","input":{"language":"go","since":"weekly"}}) ``` ## GitHub Trending Repositories `github.trending_repositories` · 0.024 credits a call (about $2.40 for 1,000) List GitHub Trending repositories (rank, stars, stars gained today, language, and description), filterable by language and time window. | Argument | Type | Required | What it is | |---|---|---|---| | `language` | string | no | Filter by programming language (e.g. "go", "typescript"). Omit for all languages. | | `since` | daily \| weekly \| monthly | no | Trending window. | Returns: `description`, `forks`, `fullName`, `language`, `name`, `owner`, `rank`, `repos`, `since`, `stars`, `starsToday`, `url` ``` data_api({"api":"github.trending_repositories","input":{"language":"python","since":"daily"}}) ``` ## GitHub User `github.user` · 0.024 credits a call (about $2.40 for 1,000), at most 0.064 Fetch a GitHub user's public profile by handle (name, bio, company, location, followers, and repo counts). | Argument | Type | Required | What it is | |---|---|---|---| | `handle` | string | yes | GitHub username. | Returns: `avatarUrl`, `bio`, `blog`, `company`, `createdUtc`, `followers`, `following`, `id`, `location`, `login`, `name`, `profileUrl`, `publicGists`, `publicRepos`, `twitterUsername`, `type` ``` data_api({"api":"github.user","input":{"handle":"torvalds"}}) ``` ## GitHub User Activity `github.user_activity` · 0.024 credits a call (about $2.40 for 1,000) List a GitHub user's public contribution activity by handle (grouped monthly summaries of commits, pull requests, and issues with repository links) for a given year. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response (pages backward by month). | | `handle` | string | yes | GitHub username. | | `year` | string | no | Year of contribution activity to return (defaults to the current year). | Returns: `activity`, `month`, `nextCursor`, `noActivity`, `summary`, `username`, `year` ``` data_api({"api":"github.user_activity","input":{"handle":"kentcdodds"}}) ``` ## GitHub User Contributions `github.user_contributions` · 0.024 credits a call (about $2.40 for 1,000) Fetch a GitHub user's contribution graph for a year (total contributions plus per-day counts and heatmap intensity). | Argument | Type | Required | What it is | |---|---|---|---| | `handle` | string | yes | GitHub username. | | `year` | integer | no | Calendar year of the contribution graph. Defaults to the current year. | Returns: `count`, `dateUtc`, `days`, `intensity`, `total`, `username`, `year` ``` data_api({"api":"github.user_contributions","input":{"handle":"torvalds","year":2024}}) ``` ## GitHub User Followers `github.user_followers` · 0.024 credits a call (about $2.40 for 1,000) List a GitHub user's followers by handle (each follower's login, type, avatar, and profile URL) with pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response (page number, defaults to 1). | | `handle` | string | yes | GitHub username. | Returns: `avatarUrl`, `followers`, `id`, `login`, `nextCursor`, `siteAdmin`, `type`, `url` ``` data_api({"api":"github.user_followers","input":{"handle":"torvalds"}}) ``` ## GitHub User Following `github.user_following` · 0.024 credits a call (about $2.40 for 1,000) List the GitHub users a given user follows by handle (each account's login, type, avatar, and profile URL) with pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response (page number, defaults to 1). | | `handle` | string | yes | GitHub username. | Returns: `avatarUrl`, `following`, `id`, `login`, `nextCursor`, `siteAdmin`, `type`, `url` ``` data_api({"api":"github.user_following","input":{"handle":"kentcdodds"}}) ``` ## GitHub User Pull Requests `github.user_pull_requests` · 0.024 credits a call (about $2.40 for 1,000) List a GitHub user's public pull requests by handle (title, repository, state, creation date, and URL) with optional date filtering and pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Pagination cursor from a previous response (page number, defaults to 1). | | `handle` | string | yes | GitHub username. | | `since` | string | no | Only include pull requests created on or after this date (YYYY-MM-DD). | | `until` | string | no | Only include pull requests created on or before this date (YYYY-MM-DD). | Returns: `createdUtc`, `hasMore`, `nextCursor`, `pullRequests`, `repo`, `state`, `title`, `url` ``` data_api({"api":"github.user_pull_requests","input":{"handle":"torvalds"}}) ``` ## GitHub User Repositories `github.user_repositories` · 0.024 credits a call (about $2.40 for 1,000) List a GitHub user's public repositories (name, description, language, stars, and forks) with sorting and cursor pagination. | Argument | Type | Required | What it is | |---|---|---|---| | `cursor` | string | no | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it back to fetch the next page. | | `direction` | asc \| desc | no | Sort direction, ascending or descending, paired with sort. | | `handle` | string | yes | GitHub username. | | `sort` | created \| updated \| pushed \| full_name | no | Repository ordering. | | `type` | owner \| all \| member | no | Which repositories to include: owner (default), all, or member. | Returns: `archived`, `avatarUrl`, `createdUtc`, `defaultBranch`, `description`, `fork`, `forks`, `fullName`, `hasMore`, `homepage`, `id`, `language`, `license`, `name`, `nextCursor`, `openIssues`, `owner`, `private`, `profileUrl`, `pushedAt`, `repos`, `size`, `stars`, `topics`, `updatedAt`, `url`, `watchers` ``` data_api({"api":"github.user_repositories","input":{"handle":"torvalds"}}) ``` ## Do I need a GitHub API key or developer account? No. morigraph supplies the access. You connect morigraph once to your assistant, or use one morigraph API key from your own code, and call any of the 16 APIs on this page. ## What does GitHub data cost through morigraph? Between 0.024 and 0.048 credits a call depending on the API, where a credit is about 10 cents. That is from about $2.40 for 1,000 calls. You pay per call from one balance, with no separate subscription. ## Can Claude, ChatGPT or Cursor get GitHub data? Yes. Add morigraph as an MCP server, sign in once, then ask in plain words. Your assistant finds the right API with one search and runs it with one call. ## Which GitHub data APIs are available? GitHub Repository, GitHub Issue and PR Search, GitHub Issue Comments, GitHub Repository Contributors, GitHub Repository Forks, GitHub Repository Issues, GitHub Repository README, GitHub Trending Developers, GitHub Trending Repositories and GitHub User, and 6 more listed on this page. --- Canonical page: https://morigraph.com/tools/data/github/ Prices read from the catalogue on 2026-11-27. These APIs return public data; how you may use it depends on the platform's terms and applicable law. All data APIs: https://morigraph.com/tools/data.md · Connect: https://morigraph.com/connect.md · Site overview: https://morigraph.com/llms.txt