Get user's namespaces Run in API Explorer

GET /namespaces

Get metadata associated with the namespaces the user has access to, including extra repos associated with the namespaces.

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.

  • 401

    Authentication failed or second factor required

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