Get timespans with data Run in API Explorer
Gets a list of timespans of the given type that have data for the given namespace and year.
Path parameters
-
Namespace to fetch data for
-
Year to fetch data for
-
Type of timespan to fetch data for
Values are
months
orweeks
.
GET
/namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}
curl \
--request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
Monthdata
{
"months": [
{
"month": 42
}
]
}
{
"weeks": [
{
"week": 42
}
]
}