Search Issues
Search for issues across GitHub using GitHub’s search syntax.Query Parameters
Search query using GitHub search syntaxThe
is:issue qualifier is automatically added to your query.Examples:repo:owner/repo- Search in a specific repositoryauthor:username- Issues by a specific authorassignee:username- Issues assigned to a useris:open- Only open issuesis:closed- Only closed issueslabel:bug- Issues with the “bug” labelcreated:>2024-01-01- Issues created after a datein:title- Search in titles onlyin:body- Search in issue body
Page number for pagination (minimum: 1)
Number of results per page (minimum: 1, maximum: 100)
Response
Returns the standard GitHub search response object.Total number of issues matching the search
Whether the search results are incomplete
Array of issue objects matching GitHub’s issue format
Example Request
Example Response
Error Responses
Search Query Examples
Here are some common search patterns:Rate Limiting
This endpoint is subject to GitHub API rate limits:- Authenticated requests: 5,000 requests per hour
- Search API specific: 30 requests per minute
/lib/github.ts includes rate limit error handling via GitHubRateLimitError which provides:
resetAt- Unix timestamp when the rate limit resetslimit- Maximum requests allowedused- Number of requests used
Notes
- Results are automatically sorted by
updateddate in descending order - The
is:issuequalifier is automatically prepended to your search query to exclude pull requests - Maximum 100 results per page
- Page numbers start at 1 (values < 1 are normalized to 1)
- All timestamps are in ISO 8601 format (UTC)
- Authentication is required and managed via session cookies
- The search matches both open and closed issues unless specified otherwise