Get pull data for multiple repos Run in API Explorer
Gets pull for the given repos.
Query parameters
-
Repositories to fetch data for (maximum of 50 repositories per request).
-
Timespan type for fetching data
Values are
months
orweeks
. -
Relative period of the period to fetch data
Values are
last-2-months
,last-3-months
,last-6-months
, orlast-12-months
. -
Field to group the data by
Values are
repo
ornamespace
.
GET
/repos/pulls
curl \
--request GET 'https://hub.docker.com/api/publisher/analytics/v1/repos/pulls?repos=string' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"repos": {
"additionalProperty1": {
"pulls": [
{
"start": "string",
"end": "string",
"repo": "string",
"namespace": "string",
"pullCount": 42,
"ipCount": 42,
"country": "string"
}
]
},
"additionalProperty2": {
"pulls": [
{
"start": "string",
"end": "string",
"repo": "string",
"namespace": "string",
"pullCount": 42,
"ipCount": 42,
"country": "string"
}
]
}
}
}