GitHub Search Issues And Pull Requests

1 credits/call
ae_github_search_issues_and_pull_requests

Find specific issues or pull requests across GitHub repositories using keywords, labels, language, state (open/closed), and other filters.

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 issues and pull requests](https://docs.github.com/search-github/searching-on-github/searching-issues-and-pull-requests)" 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 (comments | reactions | reactions-+1 | reactions--1 | reactions-smile | reactions-thinking_face | reactions-heart | reactions-tada | interactions | created | updated)NoSorts the results of your query by the number of `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, or `interactions`. You can also sort results by how recently the items were `created` or `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
search_typeenum (semantic | hybrid)NoThe type of search to perform on issues. When not specified, the default is lexical search. - `semantic` — performs a pure semantic (vector) search using embedding-based understanding. - `hybrid` — combines semantic search with lexical search for best results. Semantic and hybrid search require authentication and are rate limited to 10 requests per minute. Only applies to issue searches (`/search/issues`).—
advanced_searchstringNoSet to `true` to use advanced search. Example: `http://api.github.com/search/issues?q={query}&advanced_search=true`—

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_issues_and_pull_requests' \
  --header "X-Api-Key: $AGENTEARTH_API_KEY" \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "params": {
    "q": "WorkingDirectory specifier is:pr repo:systemd/systemd is:merged"
  }
}'
Response exampleresponse.json
JSONPartial content
{
  "incomplete_results": false,
  "items": [
    {
      "comments_url": "https://api.github.com/repos/systemd/systemd/issues/42704/comments",
      "events_url": "https://api.github.com/repos/systemd/systemd/issues/42704/events",
      "html_url": "https://github.com/systemd/systemd/pull/42704",
      "id": 4723405935,
      "title": "core: add absolute-path properties to varlink StartTransient",
      "url": "https://api.github.com/repos/systemd/systemd/issues/42704"
    }
  ],
  "total_count": 6
}

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