Hugging Face GraphQL Schema
This conceptual GraphQL schema models the Hugging Face AI platform, covering the full surface area of its public APIs: the Hub API for managing models, datasets, and spaces; the Inference API for running ML pipelines; Inference Endpoints for dedicated deployments; and the Dataset Viewer API for querying hosted datasets.
Overview
Hugging Face GraphQL Schema is a GraphQL API specification published by Hugging Face on the APIs.io network.
This conceptual GraphQL schema models the Hugging Face AI platform, covering the full surface area of its public APIs: the Hub API for managing models, datasets, and spaces; the Inference API for running ML pipelines; Inference Endpoints for dedicated deployments; and the Dataset Viewer API for querying hosted datasets.
The specification includes 6 reference links.
Endpoint
References
- Hub API Documentation https://huggingface.co/docs/hub/api
- Inference API Documentation https://huggingface.co/docs/api-inference/index
- Inference Endpoints Documentation https://huggingface.co/docs/inference-endpoints/api_reference
- Dataset Viewer Documentation https://huggingface.co/docs/dataset-viewer/index
- GitHub Organization https://github.com/huggingface
- Hub Python SDK https://huggingface.co/docs/huggingface_hub/index
Related API Specs
Work with this as data
Every GraphQL schema 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 graphql
4 MCP tools reach this
find_graphqlBrowse and filter every GraphQL schema in the catalog.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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/graphql/hugging-face-graphql"
curl "https://apis.io/api/v1/graphql?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.