Skip to content

GitHub API: Search repositories

Finds public GitHub repositories by keywords, with an optional language filter and sort order. Returns up to 100 matches.

github.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by GitHub.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Sort optionalsort

Order of results, such as stars.

best_match (default)

One of best_match, stars, recently_updated.

Query, requiredquery

Keywords to search for, such as invoice pdf generator.

invoice pdf generator

Language optionallanguage

Repository language, such as Python. Use any for no language filter.

any (default)

Max Results optionalmax_results

Maximum repositories to return, such as 20.

20 (default)

Whole number from 1 to 100.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "repositories": [    {      "name": "InvoiceGenerator",      "forks": 125,      "owner": "by-cx",      "stars": 184,      "full_name": "by-cx/InvoiceGenerator",      "description": "Library to generate PDF invoices.",      "project_link": "https://github.com/by-cx/InvoiceGenerator",      "main_language": "Python",      "repository_id": 2173993,      "last_updated_date": "2026-08-12"    },    {      "name": "react-invoice-generator",      "forks": 273,      "owner": "tuanpham-dev",      "stars": 678,      "full_name": "tuanpham-dev/react-invoice-generator",      "description": "React Invoice Generator allows you quickly make invoices and export them as PDF",      "project_link": "https://github.com/tuanpham-dev/react-invoice-generator",      "main_language": "TypeScript",      "repository_id": 276736432,      "last_updated_date": "2026-10-13"    },    {      "name": "invoice-generator",      "forks": 228,      "owner": "johnuberbacher",      "stars": 295,      "full_name": "johnuberbacher/invoice-generator",      "description": "An Invoice creator project built with React. Uses jspdf-react to capture the data from the modal and convert it from canvas -> pdf.",      "project_link": "https://github.com/johnuberbacher/invoice-generator",      "main_language": "JavaScript",      "repository_id": 403724136,      "last_updated_date": "2026-10-15"    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
github.com/search_repositories
Returns
name, owner, description, stars, forks, main_language, last_updated_date, project_link, full_name, repository_id

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method github.com/search_repositories with the inputs above.

Ask your agent

  • Find the top 15 most starred Rust repositories about async web frameworks
  • I need public repos for a markdown to PDF converter sorted by recently updated, max 50
  • Show me JavaScript libraries for drag and drop kanban boards, best matches first
  • On GitHub, look up Go repositories related to distributed key value stores ordered by stars
  • Give me 30 Python projects for parsing invoice PDFs with the most forks listed first
  • Looks up a public GitHub repository by name, owner/name, or link and returns its stars, forks, release, commit and contributor facts.

    github.com/get_repository
  • Lists public issues or pull requests for a GitHub project, with state, label and sort options. A bare project name matches the most-starred repository with that name.

    github.com/list_issues
  • Lists up to 25 public repositories trending on GitHub, in page order, optionally filtered by programming language and time period.

    github.com/list_trending_repositories
  • Lists published, non-draft releases of a public GitHub project, newest first. A bare project name matches the most-starred repository.

    github.com/list_releases
  • Finds Rust crates on crates.io by keywords, sorted by relevance, total downloads, recent downloads, or newest creation.

    crates.io/search_crates
  • Searches PyPI by keywords and returns matching packages in relevance order, each with its latest version and that version's release date. Returns up to 100 results.

    pypi.org/search_packages
  • Finds public Hugging Face models by search words, with an optional task and sort order. License is null when the model does not publish one.

    huggingface.co/search_models
  • Finds public Reddit posts by topic, optionally in one community, for a time window and sort order. Returns up to 100 posts in Reddit search order with score, comment count, text and link.

    reddit.com/search_posts