Get namespace metadata for timespan Run in API Explorer
Gets info about data for the given namespace and timespan.
Path parameters
-
Namespace to fetch data for
-
Year to fetch data for
-
Type of timespan to fetch data for
Values are
months
orweeks
. -
Timespan to fetch data for
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)
Monthmodel
{
"month": 42
}
{
"week": 42
}