GitHub Repository Search — Stars & Topics avatar

GitHub Repository Search — Stars & Topics

Pricing

from $1.00 / 1,000 repository results

Go to Apify Store
GitHub Repository Search — Stars & Topics

GitHub Repository Search — Stars & Topics

Search GitHub repositories and extract stars, forks, languages, topics, owners, activity, and URLs for developer and open-source research.

Pricing

from $1.00 / 1,000 repository results

Rating

0.0

(0)

Developer

Muhammad Afzal

Muhammad Afzal

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

11 days ago

Last modified

Share

GitHub Repo Search — Stars, Language & Topics

Search GitHub repositories by keyword, language, topic, stars, and date. Returns structured JSON with repository metadata including stars, forks, watchers, topics, license, and activity timestamps. No login or API token required (optional token for higher rate limits).

Free-plan limit: Apify free-plan users receive at most 5 repository records per run. Paid and agentic-payment runs may use the configured maxResults value.

Features

  • Full-text search — Search across repository names, descriptions, and READMEs
  • Structured filters — Filter by programming language, GitHub topics, owner/org, star range, fork count, license, creation date, and last push date
  • Direct repo lookup — Fetch metadata for specific repositories by URL (bypasses search)
  • Sort options — Sort by stars, forks, recent activity, or GitHub best-match
  • No API token required — Works with unauthenticated GitHub API access (10 search requests/min). Add a token for 30 search requests/min and 5000 req/hr
  • Clean, flat output — One consistent record shape for every repository
  • Smart rate-limit handling — Automatically waits and retries on rate limit, with graceful degradation
  • MCP-optimized — Semantic field names and structured output ready for AI agent consumption

Use Cases

  • Developer-tool market research — Find popular libraries in a language, sorted by stars
  • Dependency & ecosystem tracking — Map projects using a specific framework or library
  • Trending discovery — Find new repos created recently, ranked by stars
  • Lead generation — Identify maintainers and organizations active in a topic
  • OSS intelligence — Track repository growth, activity, and licensing
  • AI training datasets — Build large structured repository datasets

Input

FieldTypeDescriptionDefault
searchQuerystringKeywords to search repo names, descriptions, and READMEs"web scraping"
languagestringFilter by programming language (python, typescript, rust, etc.)"" (all)
topicstringFilter by GitHub topics (comma-separated, all must match)""
userOrgstringRestrict to a user or organization login""
minStarsintegerMinimum star count0
maxStarsintegerMaximum star count"" (no limit)
minForksintegerMinimum fork count0
licenseselectFilter by license (mit, apache-2.0, gpl-3.0, etc.)"any"
createdAfterstringRepos created on or after this date (YYYY-MM-DD)""
pushedAfterstringRepos pushed on or after this date (YYYY-MM-DD)""
excludeForksbooleanSkip forked repositoriestrue
excludeArchivedbooleanSkip archived repositoriestrue
sortselectSort by: stars, forks, updated, best-match"stars"
orderselectSort direction: desc or asc"desc"
startRepoUrlsarrayDirect repo URLs to fetch (bypasses search)[]
maxResultsintegerMaximum repositories to return (free-plan runs are capped at 5; paid and agentic-payment runs can use up to 1000)100
githubTokenstringOptional GitHub token for higher rate limits""

Quick Start

Search for popular Python web scraping libraries:

{
"searchQuery": "web scraping",
"language": "python",
"minStars": 100,
"sort": "stars",
"maxResults": 50
}

Find trending TypeScript repos from 2025:

{
"searchQuery": "",
"language": "typescript",
"createdAfter": "2025-01-01",
"minStars": 50,
"sort": "stars",
"maxResults": 100
}

Fetch specific repositories by URL:

{
"startRepoUrls": [
"https://github.com/facebook/react",
"https://github.com/vuejs/vue",
"https://github.com/angular/angular"
],
"maxResults": 3
}

Output

Each dataset record contains:

FieldTypeDescription
repoNamestringRepository name without owner prefix
fullNamestringFull name as owner/repo
descriptionstring|nullRepository description
urlstringGitHub HTML URL
ownerstringOwner login (user or org)
ownerTypestring"User" or "Organization"
ownerUrlstringOwner's GitHub profile URL
starsnumberStar count (stargazers)
forksnumberFork count
watchersnumberSubscriber count
openIssuesnumberOpen issues + PRs count
languagestring|nullPrimary programming language
topicsstring[]GitHub topic tags
licensestring|nullSPDX license key
licenseNamestring|nullFull license name
isArchivedbooleanWhether repo is archived
isForkbooleanWhether repo is a fork
homepagestring|nullExternal homepage URL
defaultBranchstringDefault branch name
sizeKbnumberRepository size in KB
createdAtstringISO 8601 creation timestamp
updatedAtstringISO 8601 last metadata update
pushedAtstringISO 8601 last push timestamp
hasWikibooleanWiki enabled
hasDiscussionsbooleanDiscussions enabled
totalResultsnumberTotal matching repos on GitHub
incompleteResultsbooleanWhether GitHub truncated results
scrapedAtstringISO 8601 extraction timestamp
sourceUrlstringAPI URL that produced this record

Pricing

This Actor uses pay-per-event pricing. These are the current Apify Store event prices:

EventPrice (USD)When it is charged
result-item$0.001Repository Result — Single repository record in the default dataset. Includes repo metadata: name, stars, forks, language, topics, license, and timestamps.
apify-actor-start$0.00005Actor Start — Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). — Charged once per run.

Apify platform usage for this Actor run is included alongside the event prices above; no separate per-run platform-usage fee is passed to users.

This covers Apify platform usage for this Actor run. Other Apify products or usage outside this Actor run may still follow your account plan.

Rate Limits

GitHub's REST API enforces rate limits:

ModeSearch requestsCore requests
Unauthenticated10/min60/hr
With token30/min5,000/hr

The actor automatically:

  • Detects rate-limit responses (HTTP 403 with x-ratelimit-remaining: 0)
  • Calculates the wait time from the x-ratelimit-reset header
  • Waits and retries the same page
  • Adds appropriate delays between page requests (2.1s with token, 6.2s without)

Getting a GitHub Token (Optional)

  1. Go to github.com/settings/tokens
  2. Generate a new token (classic)
  3. No scopes needed for public repository data
  4. Paste the token into the githubToken input field

Your token is used only to call the GitHub API and is never stored.

Export & Integration

Export scraped data, run the scraper via API, schedule and monitor runs, or integrate with other tools. Results are available as JSON, CSV, Excel, or via the Apify API.

Notes

  • GitHub caps any single search at 1,000 results. Use multiple queries with different filters for broader coverage.
  • The incompleteResults field indicates if GitHub's search timed out — some matching repos may be missing.
  • The totalResults field shows how many total repos match the query on GitHub (may be much larger than the number returned).