# huggingface.repo

One model or Space (app) of the Hugging Face Hub: owner, likes, downloads, task, library or SDK, licence, tags, parameters, state, and when it was created and last changed.

Hugging Face model or Space, one of the Hugging Face scrapers.

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

Start it with `POST /v1/scrapers/huggingface.repo/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 |
| --- | --- | --- | --- |
| `repo` | string | yes | The repository's id (`openai/whisper-large-v3`) or the address of its page on huggingface.co. Limit: at least 1 characters, at most 400 characters. |
| `kind` | "model" \| "space" | no | What it is: `model` (default) or `space` (an app). Default: `"model"`. |

## 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. |
| `parameters` | integer or null | A model's number of parameters, as its weight files count them. |
| `status` | string or null | A Space's state, e.g. `RUNNING`, `SLEEPING`, `RUNTIME_ERROR`. |
| `linked_models` | array of string | The models a Space says it uses. |

## 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.repo/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"repo":"openai/whisper-large-v3"}}'
```

## 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.repo",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "repo": "openai/whisper-large-v3"
  },
  "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": "openai/whisper-large-v3",
      "url": "https://huggingface.co/openai/whisper-large-v3",
      "author": "openai",
      "name": "whisper-large-v3",
      "title": null,
      "likes": 6849,
      "downloads": 3189842,
      "pipeline_tag": "automatic-speech-recognition",
      "library": "transformers",
      "sdk": null,
      "license": "apache-2.0",
      "tags": [
        "transformers",
        "pytorch",
        "jax"
      ],
      "gated": false,
      "created_at": "2023-11-07T18:41:14Z",
      "updated_at": "2024-08-12T10:20:10Z",
      "fetched_at": "2026-11-24T20:16:18.319120Z",
      "parameters": 1543490560,
      "status": null,
      "linked_models": []
    }
  ],
  "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`: 114 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.
