---
title: "Search docs"
method: GET
path: "/api/docs/search"
tags: ["docs"]
---

# Search docs

`GET /api/docs/search`

Search any Hugging Face documentation

## Query parameters

- `q` string, required
- `product` 'hub' | 'transformers' | 'diffusers' | 'datasets' | 'gradio' | 'trackio' | 'smolagents' | 'huggingface_hub' | 'cli' | 'huggingface.js' | 'transformers.js' | 'inference-providers' | 'inference-endpoints' | 'peft' | 'accelerate' | 'optimum' | 'optimum-habana' | 'optimum-neuron' | 'optimum-intel' | 'optimum-executorch' | 'optimum-tpu' | 'tokenizers' | 'llm-course' | 'context-course' | 'robotics-course' | 'mcp-course' | 'smol-course' | 'agents-course' | 'deep-rl-course' | 'computer-vision-course' | 'evaluate' | 'tasks' | 'dataset-viewer' | 'trl' | 'openenv' | 'simulate' | 'sagemaker' | 'timm' | 'safetensors' | 'tgi' | 'setfit' | 'audio-course' | 'lerobot' | 'reachy_mini' | 'autotrain' | 'tei' | 'bitsandbytes' | 'cookbook' | 'sentence_transformers' | 'ml-games-course' | 'diffusion-course' | 'ml-for-3d-course' | 'chat-ui' | 'leaderboards' | 'lighteval' | 'argilla' | 'distilabel' | 'microsoft-azure' | 'kernels' | 'google-cloud' | 'xet'
- `limit` integer

## Response `200`

Search results

- object[]
  - `id` string, required
  - `_vectors` object, required
    - `embeddings` number[], required
  - `heading1` string, required
  - `text` string, required
  - `product` string, required
  - `source_page_url` string, required
  - `source_page_title` string, required
  - `heading2` string
  - `heading3` string
  - `heading4` string
  - `heading5` string

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/revisions/3ecb8973dbb5/schema)
