Hugging Face Transformers Collections API

Use Collections to group repositories from the Hub (Models, Datasets, Spaces and Papers) on a dedicated page. You can learn more about it in the Collections [guide](https://huggingface.co/docs/hub/collections). Collections can also be managed using the Python client (see [guide](https://huggingface.co/docs/huggingface_hub/main/en/guides/collections)).

Operations 14

GET /api/collections/{namespace}/{slug}-{id} Get a collection #
PATCH /api/collections/{namespace}/{slug}-{id} Update a collection #
DELETE /api/collections/{namespace}/{slug}-{id} Delete a collection #
GET /api/collections/{namespace}/{slug} Get a collection #
PATCH /api/collections/{namespace}/{slug} Update a collection #
DELETE /api/collections/{namespace}/{slug} Delete a collection #
POST /api/collections/{namespace}/{slug}-{id}/items Add item #
POST /api/collections/{namespace}/{slug}/items Add item #
POST /api/collections/{namespace}/{slug}-{id}/items/batch Batch update items #
POST /api/collections/{namespace}/{slug}/items/batch Batch update items #
DELETE /api/collections/{namespace}/{slug}-{id}/items/{itemId} Delete item #
DELETE /api/collections/{namespace}/{slug}/items/{slug} Delete item #
POST /api/collections Create a collection #
GET /api/collections Get collections #

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/hugging-face-transformers-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

hugging-face-transformers-collections-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hub API Endpoints Collections API
  version: 0.0.1
  description: We have open endpoints that you can use to retrieve information from the Hub as well as perform certain actions such as creating model, dataset or Space repos.
servers:
- url: https://huggingface.co
  description: Hub
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (563 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/hugging-face-transformers/refs/heads/main/openapi/hugging-face-transformers-collections-api-openapi.yml