All integrationsGet an API key
Hugging Face
Search models, datasets and spaces; run inference endpoints.
AI and models
How an agent reaches it
MCPREST APICLI
How you authenticate
OAuth
API key
Connection details
- Base URL
- https://huggingface.co/api
- Pagination
- link_header
- MCP server
- https://huggingface.co/mcp
Common endpoints
| who am I | GET /whoami-v2 |
| search models | GET /models?search={q}&limit=20 |
| search datasets | GET /datasets?search={q} |
Worth knowing
- Public model and dataset metadata needs no credential.
- Serverless inference is a different host (api-inference.huggingface.co) and cold-starts with a 503 plus estimated_time.