# DVP Data API API

> The Docker DVP Data API allows [Docker Verified Publishers](https://docs.docker.com/docker-hub/publish/) to view image pull analytics data for their namespaces. Analytics data can be retrieved as raw data, or in a summary format. #### Summary data In your summary data CSV, you will have access to the data points listed below. You can request summary data for a complete week (Monday through Sunday) or for a complete month (available on the first day of the following month). There are two levels of summary data: - Repository-level, a summary of every namespace and repository - Tag- or digest-level, a summary of every namespace, repository, and reference (tag or digest) The summary data formats contain the following data points: - Unique IP address count - Pulls by tag count - Pulls by digest count - Version check count #### Raw data In your raw data CSV you will have access to the data points listed below. You can request raw data for a complete week (Monday through Sunday) or for a complete month (available on the first day of the following month). **Note:** each action is represented as a single row. - Type (industry) - Host (cloud provider) - Country (geolocation) - Timestamp - Namespace - Repository - Reference (digest is always included, tag is provided when available) - HTTP request method - Action, one of the following: - Pull by tag - Pull by digest - Version check - User-Agent.

DVP Data API is a development API from docker.com. Requests are authenticated with a bearer token. It is served over HTTPS. Its OpenAPI description documents 8 endpoints.

## At a glance

- Category: [Development](https://www.openparable.com/apis/category/development)
- Provider: docker.com
- Authentication: Bearer token
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://hub.docker.com/api/publisher/analytics/v1
- Documentation: https://docker.com/
- OpenAPI description: https://api.apis.guru/v2/specs/docker.com/dvp/1.0.0/openapi.json
- Version: 1.0.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://hub.docker.com/api/publisher/analytics/v1/" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Endpoints

- `GET /` — Get namespaces and repos
- `GET /namespaces/{namespace}` — Get namespace
- `GET /namespaces/{namespace}/pulls/exports/years` — Get years with data
- `GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}` — Get timespans with data
- `GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}` — Get namespace metadata for timespan
- `GET /namespaces/{namespace}/pulls/exports/years/{year}/{timespantype}/{timespan}/{dataview}` — Get namespace data for timespan
- `POST /v2/users/2fa-login` — Second factor authentication.
- `POST /v2/users/login` — Create an authentication token

## Questions

### Does the DVP Data API API need an API key?

Yes. The DVP Data API API uses Bearer token authentication; the documentation explains how to get credentials.

### Does the DVP Data API API support HTTPS?

Yes, the DVP Data API API is served over HTTPS.

### How many endpoints does the DVP Data API API have?

Its OpenAPI description lists 8 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the DVP Data API API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

## Similar development APIs

- [Cloudflare](https://www.openparable.com/apis/cloudflare): Manage DNS, CDN, Workers and other services; documented with an official OpenAPI 3.0 spec
- [Azure DevOps](https://www.openparable.com/apis/azure-devops): The Azure DevOps basic components of a REST API request/response pair
- [IPify](https://www.openparable.com/apis/ipify): A simple IP Address API
- [App Store Connect API](https://www.openparable.com/apis/app-store-connect): The data structure that represents an app store connect api resource.
- [StackExchange](https://www.openparable.com/apis/stackexchange): Q&A forum for developers
- [IPinfo](https://www.openparable.com/apis/ipinfo): Another simple IP Address API
- [IBM Text to Speech](https://www.openparable.com/apis/ibm-text-to-speech): Convert text to speech
- [SiteIntel](https://www.openparable.com/apis/siteintel): Extract metadata, tech stack, emails, and screenshots from any URL
- [DigitalOcean Status](https://www.openparable.com/apis/digitalocean-status): Status of all DigitalOcean services
- [Netlify](https://www.openparable.com/apis/netlify): Netlify is a hosting service for the programmable web
- [Docker Hub](https://www.openparable.com/apis/docker-hub): Interact with Docker Hub
- [MineSkin API](https://www.openparable.com/apis/mineskin): Client implementations: Java: https://github.com/InventivetalentDev/MineskinClient NodeJS: https://github.com/InventivetalentDev/mineskin-client Examples: https://github.com/MineSkin/examples

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/dvp-data (OpenParable). Cite the canonical URL above.
