---
updatedAt: 2026-05-28T12:50:37.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/artifactory/llms.txt
---

# Get Repositories by Type and Project

Returns a list of minimal repository details for all repositories of the specified type. Filter the results using `type` (repository type), `packageType`, and `project`; each query segment is optional per the usage URL (you may omit filters to list broadly).

**Since:** 2.2.0 (`packageType` option introduced in 6.2.0)

**Note:** Federated repositories are supported from Artifactory 7.18.3 and require an Enterprise X or Enterprise+ subscription.

**Security:** Requires admin privileges, or a scoped token with `artifact:*:r` or `system:info:r`.

**Produces:** `application/json` and `application/vnd.org.jfrog.artifactory.repositories.RepositoryDetailsList+json` (handbook lists this vendor list form alongside JSON).


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Artifactory Repositories API",
    "description": "REST API for managing repositories in JFrog Artifactory, including local, remote, virtual, and federated repositories.\n\nAdditional repository settings may exist in future product releases; clients should accept unknown JSON properties and tolerate fields not listed in this specification.\n\nAdditional examples of repository configuration are available at:\nhttps://docs.jfrog.com/integrations/docs/configuration-json-files#repository-configuration-json\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}/artifactory/api",
      "description": "JFrog Platform",
      "variables": {
        "jfrog_url": {
          "default": "myserver.jfrog.io",
          "description": "Your JFrog Platform hostname (e.g., mycompany.jfrog.io)"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Repositories",
      "description": "Repository management operations"
    }
  ],
  "paths": {
    "/repositories": {
      "get": {
        "tags": [
          "Repositories"
        ],
        "summary": "Get Repositories by Type and Project",
        "description": "Returns a list of minimal repository details for all repositories of the specified type. Filter the results using `type` (repository type), `packageType`, and `project`; each query segment is optional per the usage URL (you may omit filters to list broadly).\n\n**Since:** 2.2.0 (`packageType` option introduced in 6.2.0)\n\n**Note:** Federated repositories are supported from Artifactory 7.18.3 and require an Enterprise X or Enterprise+ subscription.\n\n**Security:** Requires admin privileges, or a scoped token with `artifact:*:r` or `system:info:r`.\n\n**Produces:** `application/json` and `application/vnd.org.jfrog.artifactory.repositories.RepositoryDetailsList+json` (handbook lists this vendor list form alongside JSON).\n",
        "operationId": "getRepositoriesByTypeAndProject",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "local",
                "remote",
                "virtual",
                "federated",
                "distribution"
              ]
            },
            "description": "Repository type filter"
          },
          {
            "name": "packageType",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "bower",
                "cargo",
                "chef",
                "cocoapods",
                "composer",
                "conan",
                "cran",
                "debian",
                "docker",
                "gems",
                "gitlfs",
                "go",
                "gradle",
                "helm",
                "ivy",
                "maven",
                "nuget",
                "opkg",
                "p2",
                "pub",
                "puppet",
                "pypi",
                "rpm",
                "sbt",
                "swift",
                "terraform",
                "vagrant",
                "yum",
                "generic"
              ]
            },
            "description": "Package type filter"
          },
          {
            "name": "project",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "Project key filter"
          }
        ],
        "responses": {
          "200": {
            "description": "JSON array of minimal repository records (`key`, `type`, `description`, `url`, `packageType`, etc.).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "packageType": {
                        "type": "string"
                      }
                    }
                  }
                },
                "examples": {
                  "sampleList": {
                    "summary": "Sample repository list (from handbook)",
                    "value": [
                      {
                        "key": "libs-releases-local",
                        "type": "LOCAL",
                        "description": "Local repository for in-house libraries",
                        "url": "http://localhost:8081/artifactory/libs-releases-local",
                        "packageType": "Generic"
                      },
                      {
                        "key": "libs-snapshots-local",
                        "type": "LOCAL",
                        "description": "Local repository for in-house snapshots",
                        "url": "http://localhost:8081/artifactory/libs-snapshots-local",
                        "packageType": "Maven"
                      }
                    ]
                  }
                }
              },
              "application/vnd.org.jfrog.artifactory.repositories.RepositoryDetailsList+json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      },
                      "packageType": {
                        "type": "string"
                      }
                    }
                  }
                },
                "examples": {
                  "sampleList": {
                    "summary": "Same payload as JSON array (vendor list type)",
                    "value": [
                      {
                        "key": "libs-releases-local",
                        "type": "LOCAL",
                        "description": "Local repository for in-house libraries",
                        "url": "http://localhost:8081/artifactory/libs-releases-local",
                        "packageType": "Generic"
                      },
                      {
                        "key": "libs-snapshots-local",
                        "type": "LOCAL",
                        "description": "Local repository for in-house snapshots",
                        "url": "http://localhost:8081/artifactory/libs-snapshots-local",
                        "packageType": "Maven"
                      }
                    ]
                  }
                }
              }
            }
          },
          "401": {
            "description": "Bad Credentials — the provided authentication is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Permission Denied — the user does not have the necessary permissions to perform this action.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "BasicAuth": []
    },
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BasicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-JFrog-Art-Api"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "description": "Standard Artifactory error JSON: HTTP status and message per error entry.\n",
        "type": "object",
        "required": [
          "errors"
        ],
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "status",
                "message"
              ],
              "properties": {
                "status": {
                  "type": "integer"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        },
        "example": {
          "errors": [
            {
              "status": 404,
              "message": "File not found."
            }
          ]
        }
      }
    }
  }
}
```