Get years with data Run in API Explorer
Gets a list of years that have data for the given namespace.
GET
/namespaces/{namespace}/pulls/exports/years
curl \
--request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}/pulls/exports/years' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"years": [
{
"year": 42
}
]
}