GitHub Search Repos

1 credits/call
ae_github_search_repos

Search GitHub repositories by keywords, programming language, topic tags, popularity, or recent activity.

Productivity
1 credits/call

Pricing

1 credits/call
ConditionCharge
Each call1 credits/call

Parameters

Optional parameters use the platform defaults when omitted.

ParameterTypeRequiredDescriptionDefault
qstringYesThe query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers.—
pageintegerNoThe page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."1
sortenum (stars | forks | help-wanted-issues | updated)NoSorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results)—
orderenum (desc | asc)NoDetermines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`.desc
per_pageintegerNoThe number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."30

Invocation example

Copy the request and explore its response example.

POST/agent-api/v1/tool/executeX-Api-Key
Request coderequest.sh
curl --request POST \
  --url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_github_search_repos' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "order": "desc",
    "per_page": 15,
    "q": "stock monitor alert stars:>800 pushed:>2025-06-01",
    "sort": "stars"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "incomplete_results": false,
  "items": [
    {
      "allow_forking": true,
      "archive_url": "https://api.github.com/repos/TNT-Likely/PanWatch/{archive_format}{/ref}",
      "archived": false,
      "id": 1140582982,
      "name": "PanWatch",
      "url": "https://api.github.com/repos/TNT-Likely/PanWatch"
    }
  ],
  "total_count": 1
}

This example shows part of the response. Copied content is valid JSON.

Guides using this tool

See how this tool fits into real workflows