Get namespace Run in API Explorer

GET /namespaces/{namespace}

Gets metadata associated with specified namespace, including extra repos associated with the namespace.

Path parameters

  • namespace string Required

    Namespace to fetch data for

Responses

  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • namespace string
    • extraRepos array[string]
    • datasets array[object]
      Hide datasets attributes Show datasets attributes object
      • name string

        Value is pulls.

      • views array[string]

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

      • timespans array[string]

        Values are months or weeks.

GET /namespaces/{namespace}
curl \
 --request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "namespace": "string",
  "extraRepos": [
    "string"
  ],
  "datasets": [
    {
      "name": "pulls",
      "views": [
        "raw"
      ],
      "timespans": [
        "months"
      ]
    }
  ]
}