Skip to main content
POST
/
api
/
github
/
repos
/
pulls
/github/repos/pulls
curl --request POST \
  --url https://api.anysite.io/api/github/repos/pulls \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "repo": "<string>",
  "count": 2,
  "timeout": 300,
  "state": "open"
}
'
[
  {
    "id": 123,
    "number": 123,
    "@type": "@github_repo_pull",
    "title": "",
    "text": "<string>",
    "state": "",
    "is_draft": false,
    "is_merged": false,
    "merged_at": "<string>",
    "author": {
      "id": 123,
      "login": "<string>",
      "@type": "@github_repo_pull_author",
      "type": "",
      "image": "<string>",
      "web_url": ""
    },
    "head": {
      "@type": "@github_repo_pull_ref",
      "ref": "",
      "sha": ""
    },
    "base": {
      "@type": "@github_repo_pull_ref",
      "ref": "",
      "sha": ""
    },
    "labels": [],
    "author_association": "",
    "created_at": "",
    "updated_at": "",
    "closed_at": "<string>",
    "web_url": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
repo
string
required

Repository in 'owner/name' format or full GitHub URL

Minimum string length: 1
Examples:

"facebook/react"

"https://github.com/torvalds/linux"

count
integer
required

Number of pull requests to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
state
enum<string>
default:open

Filter pull requests by state

Available options:
open,
closed,
all

Response

Successful Response

id
integer
required
number
integer
required
@type
string
default:@github_repo_pull
title
string
default:""
text
string | null
state
string
default:""
is_draft
boolean
default:false
is_merged
boolean
default:false
merged_at
string | null
author
GithubRepoPullAuthor · object
head
GithubRepoPullRef · object
base
GithubRepoPullRef · object
labels
string[]
author_association
string
default:""
created_at
string
default:""
updated_at
string
default:""
closed_at
string | null
web_url
string
default:""