# huggingface.search

A page of the models or Spaces (apps) of the Hugging Face Hub for words or an owner, most downloaded, liked, trending, updated or newest first: owner, likes, downloads, task, library or SDK, licence, tags and dates.

Hugging Face search, one of the Hugging Face scrapers.

| | |
| --- | --- |
| Id | `huggingface.search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/huggingface.search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | "model" \| "space" | no | What to list: `model` (default) or `space` (apps). Default: `"model"`. |
| `query` | string | no | Words the repository's id must contain. Leave it out to list everything. Limit: at least 1 characters, at most 200 characters. |
| `author` | string | no | Only the repositories of this user or organisation, e.g. `openai`, `meta-llama`. Limit: matches ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$. |
| `sort` | "downloads" \| "likes" \| "trending" \| "updated" \| "newest" | no | The order: `downloads` (default; most liked for Spaces), `likes`, `trending`, `updated` or `newest`. Default: `"downloads"`. |
| `max_results` | integer | no | Repositories a page; 100 at most. Limit: 1 to 100. Default: `20`. |
| `cursor` | string | no | The next_cursor a previous page returned, to read the page after it with the same query. Limit: at most 2000 characters. |
| `start` | integer | no | How many repositories the pages before this one held, so positions run on (leave 0 for the first page). Limit: 0 to 1000000. Default: `0`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `kind` | string | What the repository is: `model` or `space` (an app). |
| `repo_id` | string | The repository's id, `owner/name`. `huggingface.repo` takes it. |
| `url` | string | The repository's page on huggingface.co. |
| `author` | string or null | The user or organisation that owns it. |
| `name` | string | The repository's name, without its owner. |
| `title` | string or null | A Space's title, as its card states it. |
| `likes` | integer or null | How many people liked it. |
| `downloads` | integer or null | A model's downloads in the last 30 days, as the Hub counts them; null for a Space. |
| `pipeline_tag` | string or null | A model's task, e.g. `text-generation`, `fill-mask`. |
| `library` | string or null | The library a model is for, e.g. `transformers`, `diffusers`. |
| `sdk` | string or null | What a Space runs on: `gradio`, `streamlit`, `docker` or `static`. |
| `license` | string or null | The licence it declares, e.g. `apache-2.0`. |
| `tags` | array of string | The Hub's tags for it: frameworks, languages, papers (`arxiv:...`). |
| `gated` | boolean or null | True when its files are shown only to people who accept its conditions. |
| `created_at` | string (date-time) or null | When it was created, in UTC. |
| `updated_at` | string (date-time) or null | When it was last changed, in UTC. |
| `fetched_at` | string (date-time) | When the Hub answered, in UTC. |
| `position` | integer | Its place in the list, from 1, across the pages read with next_cursor. |
| `status` | string or null | A Space's state, e.g. `RUNNING`, `SLEEPING`. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/huggingface.search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"whisper","max_results":3}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "huggingface.search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "whisper",
    "max_results": 3
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "kind": "model",
      "repo_id": "argmaxinc/whisperkit-coreml",
      "url": "https://huggingface.co/argmaxinc/whisperkit-coreml",
      "author": "argmaxinc",
      "name": "whisperkit-coreml",
      "title": null,
      "likes": 276,
      "downloads": 101073863,
      "pipeline_tag": "automatic-speech-recognition",
      "library": "whisperkit",
      "sdk": null,
      "license": "mit",
      "tags": [
        "whisperkit",
        "coreml",
        "whisper"
      ],
      "gated": false,
      "created_at": "2024-02-28T08:05:21Z",
      "updated_at": "2026-08-19T16:57:48Z",
      "fetched_at": "2026-11-24T20:16:18.321171Z",
      "position": 1,
      "status": null
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `tags`: 8 items, the first 3 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Hugging Face scrapers](https://docs.enrichednow.com/results-and-statuses.md#hugging-face) are in their own section there.
