Get namespace metadata for timespan Run in API Explorer

GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}

Gets info about data for the given namespace and timespan.

Path parameters

  • namespace string Required

    Namespace to fetch data for

  • year integer Required

    Year to fetch data for

  • timespantype string Required

    Type of timespan to fetch data for

    Values are months or weeks.

  • timespan integer Required

    Timespan to fetch data for

Responses

GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}
curl \
 --request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "month": 42
}
{
  "week": 42
}