Get namespace data for timespan Run in API Explorer

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

Gets a list of URLs that can be used to download the pull 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

  • dataview string Required

    Type of data to fetch

    Values are raw, summary, repo-summary, or namespace-summary.

Responses

  • 200 application/json

    Success

    Hide response attribute Show response attribute object
    • data array[object]

      List of urls to download the data. When the data is large, the data will be split into multiple files.

      Hide data attributes Show data attributes object
      • url string
      • size integer(int64)
GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}/{dataview}
curl \
 --request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}/{dataview}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": [
    {
      "url": "string",
      "size": 42
    }
  ]
}