Get pull data Run in API Explorer

GET /namespaces/{namespace}/repos/{repo}/pulls

Gets pulls for the given repo.

Path parameters

  • namespace string Required

    Namespace to fetch data for

  • repo string Required

    Repository to fetch data for

Query parameters

  • timespan string

    Timespan type for fetching data

    Values are months or weeks.

  • period string

    Relative period of the period to fetch data

    Values are last-2-months, last-3-months, last-6-months, or last-12-months.

  • group string

    Field to group the data by

    Values are repo or namespace.

Responses

  • 200 application/json

    Success

    Hide response attribute Show response attribute object
    • pulls array[object]
      Hide pulls attributes Show pulls attributes object
      • start string
      • end string
      • repo string
      • namespace string
      • pullCount integer
      • ipCount integer
      • country string
  • 404

    Not found - repo doesn't exist or user does not have permission to access it

GET /namespaces/{namespace}/repos/{repo}/pulls
curl \
 --request GET 'https://hub.docker.com/api/publisher/analytics/v1/namespaces/{namespace}/repos/{repo}/pulls' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "pulls": [
    {
      "start": "string",
      "end": "string",
      "repo": "string",
      "namespace": "string",
      "pullCount": 42,
      "ipCount": 42,
      "country": "string"
    }
  ]
}