Sources › Social media › GitHub User › Search Repositories

GitHub User Search Repositories API
Cari repositori dengan sintaks pencarian GitHub.
Request
https://api.zapi.ink/v1/social-media:github-user/search-reposSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 30 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| q | string | query | Yes | Search query, GitHub search syntax Example: language:rust stars:>1000 |
| sort | enum: stars | forks | help-wanted-issues | updated | query | No | Sort field. Default best match Example: stars |
| order | enum: asc | desc | query | No | Sort direction. Default desc Example: desc |
| page | number | query | No | Page number. Default 1 (GitHub caps search at 1000 results) Example: 1 |
| perPage | number | query | No | Results per page. Default 30, max 100 Example: 30 |
Code examples
curl -X GET "https://api.zapi.ink/v1/social-media:github-user/search-repos?q=language%3Arust+stars%3A%3E1000&sort=stars&order=desc&page=1&perPage=30" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/social-media:github-user/search-repos?q=language%3Arust+stars%3A%3E1000&sort=stars&order=desc&page=1&perPage=30", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/social-media:github-user/search-repos", params={"q":"language:rust stars:>1000","sort":"stars","order":"desc","page":"1","perPage":"30"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "social-media:github-user", "data": { "ok": true, "page": 1, "count": 30, "items": [ { "id": 1197021090, "url": "https://github.com/ultraworkers/claw-code", "name": "claw-code", "forks": 109281, "owner": "ultraworkers", "stars": 194982, "isFork": false, "license": "MIT", "fullName": "ultraworkers/claw-code", "language": "Rust", "pushedAt": "2026-08-06T11:18:35Z", "watchers": 194982, "createdAt": "2026-03-31T08:58:08Z", "updatedAt": "2026-08-06T10:51:28Z", "isArchived": false, "openIssues": 35, "description": "An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.", "defaultBranch": "main" }, { "id": 1031912724, "url": "https://github.com/farion1231/cc-switch", "name": "cc-switch", "forks": 8491, "owner": "farion1231", "stars": 125017, "isFork": false, "topics": [ "ai-tools", "claude-code", "codex" ], "license": "MIT", "fullName": "farion1231/cc-switch", "homepage": "https://ccswitch.io", "language": "Rust", "pushedAt": "2026-08-06T09:07:16Z", "watchers": 125017, "createdAt": "2025-08-04T14:16:16Z", "updatedAt": "2026-08-06T11:19:49Z", "isArchived": false, "openIssues": 2051, "description": "A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io", "defaultBranch": "main" }, { "id": 299354207, "url": "https://github.com/rustdesk/rustdesk", "name": "rustdesk", "forks": 18303, "owner": "rustdesk", "stars": 119741, "isFork": false, "topics": [ "android", "anydesk", "dart" ], "license": "AGPL-3.0", "fullName": "rustdesk/rustdesk", "homepage": "https://rustdesk.com", "language": "Rust", "pushedAt": "2026-08-06T10:53:58Z", "watchers": 119741, "createdAt": "2020-09-28T15:36:08Z", "updatedAt": "2026-08-06T11:15:32Z", "isArchived": false, "openIssues": 125, "description": "An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.", "defaultBranch": "master" } ], "query": "language:rust stars:>10000", "total": 244, "hasMore": true, "nextPage": 2, "totalReachable": 244 }, "timestamp": "2026-05-27T13:36:09Z" }
Frequently asked questions
How do I call the GitHub User Search Repositories API?
Send a GET request to https://api.zapi.ink/v1/social-media:github-user/search-repos?q=language%3Arust+stars%3A%3E1000 with your Zapi key in the x-api-key header. Parameters — required: q; optional: sort, order, page, perPage. The response is JSON in the { project, data, timestamp } envelope.
What does the GitHub User Search Repositories API return?
Cari repositori dengan sintaks pencarian GitHub. The example response has the fields ok, page, count, items, query, total, hasMore, nextPage. Each item in items has fields such as id, url, name, forks, owner, stars, isFork, license.
Is the GitHub User Search Repositories API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the GitHub User Search Repositories API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "github-user" and endpoint "search-repos".
What other GitHub User API endpoints are there?
It has 7 endpoints. Besides Search Repositories: User Profile, Get Trending Repos, Get Trending Developers, Get Repository, Get Organization, Search Users.