> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Hugging Face Hub

> Search the Hugging Face Hub's models, datasets, Spaces and papers, and read paper pages and daily papers.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/huggingface.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=11d5ae17d94aef550ed129be5b0f7ba1)

[Web Catalog · AI](https://docs.webrouter.net/data-apis.md?category=ai)

Key for some calls

Endpoints

7

Auth

Key in header

[Vendor docs](https://huggingface.co/docs/hub/api) · [Pricing](https://huggingface.co/pricing) · Serves `huggingface.co`

## Setup

| Variable | | What it is |
| - | - | - |
| `HF_TOKEN` | some calls | a Hugging Face user access token (huggingface.co/settings/tokens); public data works without one |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Public reads need no token; a token adds private and gated repos and raises rate limits.
* Rate limits are counted over 5-minute windows per user or organization; a 429 carries RateLimit headers.
* This entry covers the Hub only; Hugging Face Inference Providers route to other companies' models and are not listed here.

## Endpoints

GET

Search repositories by text

Full-text search across model, dataset and Space repositories.

[Open](#huggingface-repos-search)

GET

Quick search the Hub

Name-based quick search across models, datasets, Spaces, orgs, users, papers and collections.

[Open](#huggingface-quicksearch)

GET

Search papers

Hybrid semantic and full-text search over Hugging Face paper pages.

[Open](#huggingface-papers-search)

GET

Get a paper

One paper page by its id.

[Open](#huggingface-papers-get)

GET

List daily papers

The curated daily papers feed, by day, week or month.

[Open](#huggingface-papers-daily)

GET

Semantic search for Spaces

Find Spaces (hosted demos and apps) by meaning, optionally by category.

[Open](#huggingface-spaces-search)

GET

Get the token's user

The user and organizations behind the token, and the token's scopes.

[Open](#huggingface-whoami)

### Search repositories by text

GET

`/api/search/full-text`

`huggingface.repos.search`

Full-text search across model, dataset and Space repositories.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search text, up to 250 characters. Example `speech recognition`</td></tr>
    <tr><td>`type`</td><td>string</td><td>query</td><td>Restrict to one repo type. One of `dataset`, `model`, `space`, `bucket`, `kernel`, `container`</td></tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Extra filter, up to 600 characters.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, 1 to 100; default 20.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to skip; default 0.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.repos.search", {'q': 'speech recognition'})
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.repos.search", params={"q": "speech recognition"})
```

### Quick search the Hub

GET

`/api/quicksearch`

`huggingface.quicksearch`

Name-based quick search across models, datasets, Spaces, orgs, users, papers and collections.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search text. Example `whisper`</td></tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Kinds to return: model, dataset, space, org, user, paper, collection, bucket, container, kernel, blog.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per kind, 1 to 20.
      </td>
    </tr>

    <tr>
      <td>
        `pipelines`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated pipeline types, e.g. text-generation, automatic-speech-recognition.
      </td>
    </tr>

    <tr>
      <td>
        `library`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only models of this library, e.g. transformers.
      </td>
    </tr>

    <tr>
      <td>
        `namespace`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only this user or organization.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.quicksearch", {'q': 'whisper'})
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.quicksearch", params={"q": "whisper"})
```

### Search papers

GET

`/api/papers/search`

`huggingface.papers.search`

Hybrid semantic and full-text search over Hugging Face paper pages.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search text, up to 250 characters. Example `mixture of experts`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results, 1 to 120.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md) · Same job: [arXiv](https://docs.webrouter.net/data-apis/arxiv.md#arxiv-query), [Crossref](https://docs.webrouter.net/data-apis/crossref.md#crossref-works-search), [Europe PMC](https://docs.webrouter.net/data-apis/europepmc.md#europepmc-search), [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-google-scholar), [NIH RePORTER](https://docs.webrouter.net/data-apis/nih-reporter.md#nih-reporter-publications-search), [OpenAlex](https://docs.webrouter.net/data-apis/openalex.md#openalex-works-list)

```python Python theme={null}
router.call_data_api("huggingface.papers.search", {'q': 'mixture of experts'})
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.papers.search", params={"q": "mixture of experts"})
```

### Get a paper

GET

`/api/papers/{paperId}`

`huggingface.papers.get`

One paper page by its id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`paperId` required</td><td>string</td><td>path</td><td>Paper id (the arXiv id). Example `2307.09288`</td></tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.papers.get", {'paperId': '2307.09288'})
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.papers.get", params={"paperId": "2307.09288"})
```

### List daily papers

GET

`/api/daily_papers`

`huggingface.papers.daily`

The curated daily papers feed, by day, week or month.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `date`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A day, YYYY-MM-DD.
      </td>
    </tr>

    <tr>
      <td>
        `week`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A week, YYYY-Www (e.g. 2026-W45).
      </td>
    </tr>

    <tr>
      <td>
        `month`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A month, YYYY-MM.
      </td>
    </tr>

    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order; default publishedAt. One of `publishedAt`, `trending`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Papers per page, 1 to 100; default 50.
      </td>
    </tr>

    <tr>
      <td>
        `p`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 0.
      </td>
    </tr>

    <tr>
      <td>
        `submitter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only papers submitted by this user.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.papers.daily")
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.papers.daily")
```

### Semantic search for Spaces

GET

`/api/spaces/semantic-search`

`huggingface.spaces.search`

Find Spaces (hosted demos and apps) by meaning, optionally by category.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>What the Space should do. Example `remove image background`</td></tr>

    <tr>
      <td>
        `category`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A category such as image-generation, ocr, speech-synthesis, text-summarization (see the docs for the full list).
      </td>
    </tr>

    <tr>
      <td>
        `includeNonRunning`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include Spaces that are not running.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.spaces.search", {'q': 'remove image background'})
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.spaces.search", params={"q": "remove image background"})
```

### Get the token's user

GET

`/api/whoami-v2`

`huggingface.whoami`

Needs&#x20;

`HF_TOKEN`

The user and organizations behind the token, and the token's scopes.

Input

No inputs.

[Vendor docs](https://huggingface.co/.well-known/openapi.md)

```python Python theme={null}
router.call_data_api("huggingface.whoami")
```

```text MCP theme={null}
call_data_api(endpoint="huggingface.whoami")
```

> [!NOTE]
>
> * Needs HF\_TOKEN.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.