Skip to content
AnyMeta.
AnyMetaGitHubPull Requests

List pull requests

Lists pull requests in a public repository with state, branch, sorting, and pagination filters.

GET/github/repos/{owner}/{repo}/pullsNo authentication required
Upstream documentation

Path parameters2

Path parameters
NameTypeDescription
owner*string

The repository owner login. The value is case-insensitive.

repo*string

The repository name without the .git suffix. The value is case-insensitive.

Query parameters7

Query parameters
NameTypeDescription
statestring

Filter by state.

"open""closed""all"

Default:"open"

headstring

Head account and branch, such as user:feature.

basestring

The target branch name.

sortstring

Sort field.

"created""updated""popularity""long-running"

Default:"created"

directionstring

Sort direction.

"asc""desc"
per_pageinteger

The number of results to return per page.

Default:30

Minimum: 1Maximum: 100
pageinteger

The page number to fetch.

Default:1

Minimum: 1

Headers2

Headers
NameTypeDescription
If-None-Matchstring

An ETag for conditional requests.

If-Modified-Sincestring

An HTTP date for conditional requests.

Responses

application/json
SchemaGithubPullRequest[]
Array itemGithubIssue & object

The original GitHub response.