# Get namespaces and repos


[API catalog](/reference/api/) · [Publisher analytics overview](/reference/api/dvp/latest/) · [Product manual](https://docs.docker.com/docker-hub/repos/manage/trusted-content/insights-analytics/) · [OpenAPI specification](/reference/api/dvp/latest.yaml)

API version: 1.0.0



`GET /`

Gets a list of your namespaces and repos which have data available.

## Connection and access

[API connection and authentication guidance](/reference/api/dvp/latest/#authentication)


Server: `https://hub.docker.com/api/publisher/analytics/v1`

Effective security: alternatives are OR; schemes within an alternative are AND. An empty array declares no HTTP authentication requirement.

```json
[
  {
    "HubAuth": []
  }
]
```
## Example request

Replace placeholders and provide the required credentials or request body.

```console
curl \
  --request GET \
  --header "Authorization: Bearer ${TOKEN}" \
  --header 'Accept: application/json' \
  'https://hub.docker.com/api/publisher/analytics/v1/'
```

## Parameters

## Request and responses

### Response 200 application/json

Success


Schema:

```json
{
  "$ref": "#/components/schemas/NamespaceData"
}
```




Schema example:
```json
{
  "namespaces": [
    "myorganization"
  ]
}
```


## Complete operation contract

```json
{
  "description": "Gets a list of your namespaces and repos which have data available.",
  "operationId": "getNamespaces",
  "responses": {
    "200": {
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/NamespaceData"
          }
        }
      },
      "description": "Success"
    }
  },
  "summary": "Get namespaces and repos",
  "tags": [
    "discovery"
  ]
}
```

## Referenced schemas

- [#/components/schemas/NamespaceData](/reference/api/dvp/latest/schemas/NamespaceData/)




