Get pull data for multiple repos Run in API Explorer

GET /repos/pulls

Gets pull for the given repos.

Query parameters

  • repos array[string] Required

    Repositories to fetch data for (maximum of 50 repositories per request).

  • 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
    • repos object
      Hide repos attribute Show repos attribute object
      • * object Additional properties
        Hide * attribute Show * 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
GET /repos/pulls
curl \
 --request GET 'https://hub.docker.com/api/publisher/analytics/v1/repos/pulls?repos=string' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "repos": {
    "additionalProperty1": {
      "pulls": [
        {
          "start": "string",
          "end": "string",
          "repo": "string",
          "namespace": "string",
          "pullCount": 42,
          "ipCount": 42,
          "country": "string"
        }
      ]
    },
    "additionalProperty2": {
      "pulls": [
        {
          "start": "string",
          "end": "string",
          "repo": "string",
          "namespace": "string",
          "pullCount": 42,
          "ipCount": 42,
          "country": "string"
        }
      ]
    }
  }
}