List repository issues

GET {{baseUrl}}/repos/:owner/:repo/issues?milestone=<string>&state=open&assignee=<string>&creator=<string>&mentioned=<string>&labels=<string>&sort=created&direction=desc&since=<string>&per_page=30&page=1

List issues in a repository.

Note: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, Issues endpoints may return both issues and pull requests in the response. You can identify pull requests by the pull_request key. Be aware that the id of a pull request returned from Issues endpoints will be an issue id. To find out the pull request id, use the [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoint.

Request Params

KeyDatatypeRequiredDescription
milestonestringIf an integer is passed, it should refer to a milestone by its number field. If the string * is passed, issues with any milestone are accepted. If the string none is passed, issues without milestones are returned.
statestringIndicates the state of the issues to return. Can be either open, closed, or all.
assigneestringCan be the name of a user. Pass in none for issues with no assigned user, and * for issues assigned to any user.
creatorstringThe user that created the issue.
mentionedstringA user that's mentioned in the issue.
labelsstringA list of comma separated label names. Example: bug,ui,@high
sortstringWhat to sort results by. Can be either created, updated, comments.
directionstringOne of asc (ascending) or desc (descending).
sincestringOnly show notifications updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
per_pagenumberResults per page (max 100)
pagenumberPage number of the results to fetch.

RESPONSES

status: OK

[{&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDU6SXNzdWUx&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/issues/1347&quot;,&quot;repository_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World&quot;,&quot;labels_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}&quot;,&quot;comments_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/issues/1347/comments&quot;,&quot;events_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/issues/1347/events&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat/Hello-World/issues/1347&quot;,&quot;number&quot;:1347,&quot;state&quot;:&quot;open&quot;,&quot;title&quot;:&quot;Found a bug&quot;,&quot;body&quot;:&quot;I&#39;m having a problem with this.&quot;,&quot;user&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;labels&quot;:[{&quot;id&quot;:208045946,&quot;node_id&quot;:&quot;MDU6TGFiZWwyMDgwNDU5NDY=&quot;,&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/labels/bug&quot;,&quot;name&quot;:&quot;bug&quot;,&quot;description&quot;:&quot;Something isn&#39;t working&quot;,&quot;color&quot;:&quot;f29513&quot;,&quot;default&quot;:true}],&quot;assignee&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;assignees&quot;:[{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false}],&quot;milestone&quot;:{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/milestones/1&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat/Hello-World/milestones/v1.0&quot;,&quot;labels_url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/milestones/1/labels&quot;,&quot;id&quot;:1002604,&quot;node_id&quot;:&quot;MDk6TWlsZXN0b25lMTAwMjYwNA==&quot;,&quot;number&quot;:1,&quot;state&quot;:&quot;open&quot;,&quot;title&quot;:&quot;v1.0&quot;,&quot;description&quot;:&quot;Tracking milestone for version 1.0&quot;,&quot;creator&quot;:{&quot;login&quot;:&quot;octocat&quot;,&quot;id&quot;:1,&quot;node_id&quot;:&quot;MDQ6VXNlcjE=&quot;,&quot;avatar_url&quot;:&quot;https://github.com/images/error/octocat_happy.gif&quot;,&quot;gravatar_id&quot;:&quot;&quot;,&quot;url&quot;:&quot;https://api.github.com/users/octocat&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat&quot;,&quot;followers_url&quot;:&quot;https://api.github.com/users/octocat/followers&quot;,&quot;following_url&quot;:&quot;https://api.github.com/users/octocat/following{/other_user}&quot;,&quot;gists_url&quot;:&quot;https://api.github.com/users/octocat/gists{/gist_id}&quot;,&quot;starred_url&quot;:&quot;https://api.github.com/users/octocat/starred{/owner}{/repo}&quot;,&quot;subscriptions_url&quot;:&quot;https://api.github.com/users/octocat/subscriptions&quot;,&quot;organizations_url&quot;:&quot;https://api.github.com/users/octocat/orgs&quot;,&quot;repos_url&quot;:&quot;https://api.github.com/users/octocat/repos&quot;,&quot;events_url&quot;:&quot;https://api.github.com/users/octocat/events{/privacy}&quot;,&quot;received_events_url&quot;:&quot;https://api.github.com/users/octocat/received_events&quot;,&quot;type&quot;:&quot;User&quot;,&quot;site_admin&quot;:false},&quot;open_issues&quot;:4,&quot;closed_issues&quot;:8,&quot;created_at&quot;:&quot;2011-04-10T20:09:31Z&quot;,&quot;updated_at&quot;:&quot;2014-03-03T18:58:10Z&quot;,&quot;closed_at&quot;:&quot;2013-02-12T13:22:01Z&quot;,&quot;due_on&quot;:&quot;2012-10-09T23:39:01Z&quot;},&quot;locked&quot;:true,&quot;active_lock_reason&quot;:&quot;too heated&quot;,&quot;comments&quot;:0,&quot;pull_request&quot;:{&quot;url&quot;:&quot;https://api.github.com/repos/octocat/Hello-World/pulls/1347&quot;,&quot;html_url&quot;:&quot;https://github.com/octocat/Hello-World/pull/1347&quot;,&quot;diff_url&quot;:&quot;https://github.com/octocat/Hello-World/pull/1347.diff&quot;,&quot;patch_url&quot;:&quot;https://github.com/octocat/Hello-World/pull/1347.patch&quot;},&quot;closed_at&quot;:null,&quot;created_at&quot;:&quot;2011-04-22T13:33:48Z&quot;,&quot;updated_at&quot;:&quot;2011-04-22T13:33:48Z&quot;,&quot;author_association&quot;:&quot;collaborator&quot;}]