Get years with data Run in API Explorer

GET /namespaces/{namespace}/pulls/exports/years

Gets a list of years that have data for the given namespace.

Path parameters

  • namespace string Required

    Namespace to fetch data for

Responses

  • 200 application/json

    Success

    Hide response attribute Show response attribute object
    • years array[object]
      Hide years attribute Show years attribute object
      • year integer
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
    }
  ]
}