Hugging Face Transformers Spaces API

Get information from all Spaces on the Hub.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 40

1 of 40 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/spaces/{namespace}/{repo}/treesize/{rev}/{path} Get folder size #
GET /api/spaces/{namespace}/{repo}/lfs-files List Large files #
POST /api/spaces/{namespace}/{repo}/lfs-files/batch Delete Large files #
DELETE /api/spaces/{namespace}/{repo}/lfs-files/{sha} Delete Large file #
POST /api/spaces/{namespace}/{repo}/lfs-files/duplicate Duplicate xet files #
GET /api/spaces/{namespace}/{repo}/commits/{rev} List commits #
GET /api/spaces/{namespace}/{repo}/refs List references #
GET /api/spaces/{namespace}/{repo}/compare/{compare} Get a compare rev #
POST /api/spaces/{namespace}/{repo}/paths-info/{rev} List paths info #
POST /api/spaces/{namespace}/{repo}/preupload/{rev} Check upload method #
GET /api/spaces/{namespace}/{repo}/xet-write-token/{rev} Xet write token #
GET /api/spaces/{namespace}/{repo}/xet-read-token/{rev} Xet read token #
POST /api/spaces/{namespace}/{repo}/commit/{rev} Commit #
POST /api/spaces/{namespace}/{repo}/tag/{rev} Create tag #
DELETE /api/spaces/{namespace}/{repo}/tag/{rev} Delete a tag #
POST /api/spaces/{namespace}/{repo}/branch/{rev} Create branch #
DELETE /api/spaces/{namespace}/{repo}/branch/{rev} Delete a branch #
POST /api/spaces/{namespace}/{repo}/resource-group Add resource group #
GET /api/spaces/{namespace}/{repo}/resource-group Get resource group #
POST /api/spaces/{namespace}/{repo}/super-squash/{rev} Squash ref #
PUT /api/spaces/{namespace}/{repo}/settings Update repo settings #
GET /api/spaces/{namespace}/{repo}/tree/{rev}/{path} List folder content #
GET /api/spaces/{namespace}/{repo}/notebook/{rev}/{path} Get notebook URL #
GET /api/spaces/{namespace}/{repo}/scan Get security status #
GET /api/spaces/{namespace}/{repo}/jwt Generate JWT #
GET /api/trending Get trending observed #
GET /api/spaces/hardware List space hardware conformant #
POST /api/spaces/{namespace}/{repo}/secrets Upsert secret #
DELETE /api/spaces/{namespace}/{repo}/secrets Delete secret #
GET /api/spaces/{namespace}/{repo}/secrets List secrets #
POST /api/spaces/{namespace}/{repo}/variables Upsert variable #
DELETE /api/spaces/{namespace}/{repo}/variables Delete variable #
GET /api/spaces/{namespace}/{repo}/variables List variables #
GET /spaces/{namespace}/{repo}/resolve/{rev}/{path} Resolve a file #
GET /api/resolve-cache/spaces/{namespace}/{repo}/{rev}/{path} Resolve a file #
PUT /api/spaces/{namespace}/{repo}/volumes Set Space volumes #
DELETE /api/spaces/{namespace}/{repo}/volumes Delete Space volumes #
GET /api/spaces/{namespace}/{repo}/logs/{logType} Stream logs #
GET /api/spaces/{namespace}/{repo}/events Stream events #
GET /api/spaces/{namespace}/{repo}/metrics Stream metrics #

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:hugging-face-transformers-spaces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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-spaces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hub API Endpoints Spaces 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 (143 KB total) ---
# Full source: https://artifacts.apis.io/hugging-face-transformers/openapi/hugging-face-transformers-spaces-api-openapi.yml