Ansible Roles Collections API

Modern v3 collections (Galaxy NG / Pulp).

Operations 4

GET /api/v3/collections/ List collections #
GET /api/v3/collections/{namespace}/{name}/ Retrieve a collection #
GET /api/v3/collections/{namespace}/{name}/versions/ List collection versions #
GET /api/v3/collections/{namespace}/{name}/versions/{version}/ Retrieve a collection version #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ansible-roles-collections-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ansible-roles-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ansible Galaxy Roles & Ansible Galaxy Roles Collections API
  version: '1'
  description: 'The Ansible Galaxy public REST API for discovering and consuming community

    Ansible content. The legacy v1 surface covers community roles (search by

    keyword, author, tag; download by version), users, namespaces, and import

    tracking. The modern v3 surface is the Galaxy NG / Pulp API used by

    Ansible collections (the modern packaging format that bundles roles,

    modules, plugins, and playbooks).

    '
  contact:
    name: Ansible Galaxy
    url: https://galaxy.ansible.com
servers:
- url: https://galaxy.ansible.com
  description: Public Ansible Galaxy
security: []
tags:
- name: Collections
  description: Modern v3 collections (Galaxy NG / Pulp).
paths:
  /api/v3/collections/:
    get:
      tags:
      - Collections
      summary: List collections
      operationId: listCollections
      responses:
        '200':
          $ref: '#/components/responses/PagedList'
  /api/v3/collections/{namespace}/{name}/:
    get:
      tags:
      - Collections
      summary: Retrieve a collection
      operationId: getCollection
      parameters:
      - $ref: '#/components/parameters/Namespace'
      - $ref: '#/components/parameters/Name'
      responses:
        '200':
          description: A collection.
  /api/v3/collections/{namespace}/{name}/versions/:
    get:
      tags:
      - Collections
      summary: List collection versions
      operationId: listCollectionVersions
      parameters:
      - $ref: '#/components/parameters/Namespace'
      - $ref: '#/components/parameters/Name'
      responses:
        '200':
          $ref: '#/components/responses/PagedList'
  /api/v3/collections/{namespace}/{name}/versions/{version}/:
    get:
      tags:
      - Collections
      summary: Retrieve a collection version
      operationId: getCollectionVersion
      parameters:
      - $ref: '#/components/parameters/Namespace'
      - $ref: '#/components/parameters/Name'
      - name: version
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: A specific version of a collection.
components:
  parameters:
    Name:
      name: name
      in: path
      required: true
      schema:
        type: string
    Namespace:
      name: namespace
      in: path
      required: true
      schema:
        type: string
  schemas:
    PagedList:
      type: object
      properties:
        count:
          type: integer
        next:
          type: string
          nullable: true
        next_link:
          type: string
          nullable: true
        previous:
          type: string
          nullable: true
        previous_link:
          type: string
          nullable: true
        results:
          type: array
          items:
            type: object
            additionalProperties: true
  responses:
    PagedList:
      description: A paginated list response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PagedList'
  securitySchemes:
    TokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Galaxy / Automation Hub token, sent as `Authorization: Token <value>`.'