Code Repository Search and Trending

GitHub repository search and trending API

Search public GitHub repositories by keyword, language, topics, stars and dates, or paste the ones you follow, and get one clean row each: stars, forks, open issues, license, topics, languages, releases and dates.

From USD 0.70 per 1,000 repositoriesFailed items are freeOn the Apify Store since · Checked
First row of our recorded run
Repositorymicrosoft/markitdown
LanguagePython
Stars195,502
Forks14,775

Example output

One row per repository. A real row from a cloud run on 15 November 2026 (a search of organization repositories, sorted by stars):

Example output · recorded 15 November 2026
RepositoryLanguageStarsForksLicenceLast push
microsoft/markitdownPython195,50214,775MIT2026-11-07T00:14:01Z
microsoft/vscodeTypeScript195,39743,847MIT2026-11-15T15:43:38Z
vercel/next.jsJavaScript143,52832,802MIT2026-11-15T13:40:13Z
microsoft/PowerToysC141,0028,745MIT2026-11-15T15:40:12Z
microsoft/generative-ai-for-beginnersJupyter Notebook123,57766,452MIT2026-11-12T03:43:22Z

5 rows of our recorded run; Size, default branch and update time left out; search rows carry no language breakdown. Trending rows add starsGained, starsPerDay and a note that the ranking is an approximation. Rows that are not ok explain the problem. Download as JSON, CSV or Excel, or read them through the API.

What you give it, what you get back

Code Repository Search and Trending reads the official GitHub REST API with your own free token. It has three modes: search, repos (names or links you paste) and trending.

Why its full name ends in "(Approximation)": trending mode is not GitHub's own trending page. It builds its own list from the official API: repositories created in the last day, 7 days or 30 days, ranked by all their stars, not by stars gained per day. The two lists can differ, and every trending row says so. Search and repos rows are GitHub's data as it is.

What you get back

  • Search. Keywords plus filters (language, topics, stars, created and last-push dates, forks, archived), sorted by stars, forks, last update or best match.
  • Repository details. Paste owner/repo names or links and get one row each, with the language breakdown and the number of releases.
  • Trending (approximation). New repositories ranked by stars, with stars gained and stars per day.
  • No personal data. The owner appears only as a public login and type; emails in descriptions are hidden.

What you give it

The fields you will most likely change:

FieldWhat it doesDefault
githubTokenYour GitHub token, stored as a secret input.empty
modesearch, repos or trending.search
querySearch keywords, such as web scraping.empty
repositoriesowner/repo names or links (repos mode).empty
trendingPerioddaily, weekly or monthly.weekly
languagePrimary language, such as Python.empty
minStarsLowest star count.empty
maxResultsStop after this many, up to 2,000.500

A small input to start from:

{
  "githubToken": "<YOUR_GITHUB_TOKEN>",
  "mode": "trending",
  "trendingPeriod": "weekly"
}

Who it is for

  • Developers who look for the most used libraries for a language or topic.
  • Analysts who compare projects by language, topic, license or age.
  • Writers who collect new, fast-growing repositories for a weekly roundup.

Fields

Every field of the recorded rows, with its type and the first value from the run of 15 November 2026.

FieldTypeRecorded value
statusstringok
modestringsearch
ranknumber1
fullNamestringmicrosoft/markitdown
ownerTypestringOrganization
urlstringhttps://github.com/microsoft/markitdown
descriptionstringPython tool for converting files and office documents to Ma…
languagestringPython
starsnumber195,502
forksnumber14,775
openIssuesnumber815
licensestringMIT
topicslistautogen, autogen-extension, langchain, markdown, microsoft-office, openai, pdf
createdAtstring2024-11-13T19:56:40Z
pushedAtstring2026-11-07T00:14:01Z
isArchivedyes/nono
isForkyes/nono
fetchedAtstring2026-11-15T15:48:54.152Z

Price by Apify plan

From USD 0.70 per 1,000 repositories. You pay per result, and the price depends on your Apify plan.

Code Repository Search and Trending: price per 1,000 repositories
Apify planUSD per 1,000 repositories
Free1.00
Bronze0.90
Silver0.80
Gold0.70

Free, never charged

  • demo runs without a token
  • repositories not found or private
  • invalid names
  • failed rows

Apify also charges a small start event per run, at its own platform price.

Ways to run it

The same tool and the same results, three ways. You need an Apify account.

In Apify Console, no code

  1. Create a free fine-grained GitHub token (about 2 minutes) with read-only access to public repositories and no extra permissions, and paste it into "GitHub token".
  2. Choose a mode, type your keywords or repositories and click Start. Without a token the run is a free demo with at most 10 repositories.
  3. Open the Output tab: one row per repository.

Code Repository Search and Trending on the Apify Store

From the API

One call runs the tool and returns the results. Replace <YOUR_API_TOKEN> with your token from Apify Console (Settings, API and Integrations). Send {} for a short demo run.

curl -X POST "https://api.apify.com/v2/acts/tan-solutions~github-repos/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"githubToken":"<YOUR_GITHUB_TOKEN>","mode":"trending","trendingPeriod":"weekly"}'

From an AI agent, through MCP

Apify's MCP server offers this tool alone to your MCP client at https://mcp.apify.com?tools=tan-solutions/github-repos. The client signs in to Apify on first connect, or sends your token in an Authorization: Bearer header.

{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=tan-solutions/github-repos"
    }
  }
}

On a schedule

Get the new repositories of the past 7 days, ranked by stars, every Monday. In Apify Console: Schedules, Create new, cron 0 7 * * 1 (every Monday at 07:00 UTC), then add this tool with your input. Or as one API call (y2fTKLddoRtl4GrOx is this tool's Actor ID):

curl -X POST "https://api.apify.com/v2/schedules?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "github-repos-schedule",
  "cronExpression": "0 7 * * 1",
  "timezone": "UTC",
  "isEnabled": true,
  "isExclusive": true,
  "actions": [
    {
      "type": "RUN_ACTOR",
      "actorId": "y2fTKLddoRtl4GrOx",
      "runInput": {
        "body": "{\"githubToken\":\"<YOUR_GITHUB_TOKEN>\",\"mode\":\"trending\",\"trendingPeriod\":\"weekly\"}",
        "contentType": "application/json"
      }
    }
  ]
}'

Limits

  • GitHub search returns at most 1,000 results per query; the tool splits bigger searches by creation date, up to 2,000 repositories.
  • With a token GitHub allows about 30 searches per minute and 5,000 other requests per hour. On a long wait the run stops cleanly and keeps its rows.
  • Language breakdown and releases count add one call per repository each.
  • Repositories, not people: do not use it for recruiting or contact lists.

URL to Markdown

Turns web pages into clean Markdown with title and metadata, ready for search indexes and knowledge bases.

From USD 1.00 per 1,000 converted pages

All data tools

Questions

Do I need a token?

For real runs, yes. The calls count against your own free GitHub limits, and GitHub charges nothing for them.

What does "(Approximation)" mean?

Only trending mode is approximate: our own list from the official API, new repositories ranked by stars, so it can differ from GitHub's trending page.

The run failed with "401 Bad credentials".

The token is wrong, expired or revoked. Create a new one.

Not affiliated with GitHub: this Actor is not affiliated with, endorsed by or sponsored by GitHub, Inc. Built and run by Tan Solutions.

Need a field this tool does not return?

Tell us what you need and what you use it for. Real requests decide what we add next.