Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    Scraper APIHugging Face

    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.

    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; what a run costs is in Usage and units.

    Inputs

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

    Inputs of huggingface.repo
    FieldTypeDescription
    reporequiredstringThe 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"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.

    Record fields of huggingface.repo
    FieldTypeNotes
    kindstringWhat the repository is: model or space (an app).
    repo_idstringThe repository's id, owner/name. huggingface.repo takes it.
    urlstringThe repository's page on huggingface.co.
    authorstring or nullThe user or organisation that owns it.
    namestringThe repository's name, without its owner.
    titlestring or nullA Space's title, as its card states it.
    likesinteger or nullHow many people liked it.
    downloadsinteger or nullA model's downloads in the last 30 days, as the Hub counts them; null for a Space.
    pipeline_tagstring or nullA model's task, e.g. text-generation, fill-mask.
    librarystring or nullThe library a model is for, e.g. transformers, diffusers.
    sdkstring or nullWhat a Space runs on: gradio, streamlit, docker or static.
    licensestring or nullThe licence it declares, e.g. apache-2.0.
    tagsarray of stringThe Hub's tags for it: frameworks, languages, papers (arxiv:...).
    gatedboolean or nullTrue when its files are shown only to people who accept its conditions.
    created_atstring (date-time) or nullWhen it was created, in UTC.
    updated_atstring (date-time) or nullWhen it was last changed, in UTC.
    fetched_atstring (date-time)When the Hub answered, in UTC.
    parametersinteger or nullA model's number of parameters, as its weight files count them.
    statusstring or nullA Space's state, e.g. RUNNING, SLEEPING, RUNTIME_ERROR.
    linked_modelsarray of stringThe models a Space says it uses.

    Example request

    # Start a run and wait up to 60 seconds for it to finish
    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"}}'
    
    # Read its records, with the id the first call answered
    curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start a run, wait for it to end, and get its records
    result = client.scrape("huggingface.repo", {"repo": "openai/whisper-large-v3"})
    print(result.run.id, result.run.status, result.run.record_count)
    
    # Read its records: pages are fetched as you go
    for record in result.records:
        print(record)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start a run, wait for it to end, and get its records
    const { run, records } = await client.scrape("huggingface.repo", { repo: "openai/whisper-large-v3" });
    console.log(run.id, run.status, run.record_count);
    
    // Read its records: pages are fetched as you go
    for await (const record of records) console.log(record);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
    	defer cancel()
    
    	// Start a run, wait for it to end, and get its records
    	run, records, err := client.Scrape(ctx, "huggingface.repo", map[string]any{"repo": "openai/whisper-large-v3"})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RecordCount)
    
    	// Read its records: pages are fetched as you go
    	for records.Next() {
    		fmt.Println(string(records.Current()))
    	}
    	if err := records.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.ScrapeResult;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start a run, wait for it to end, and get its records
            ScrapeResult result = client.scrape("huggingface.repo", Map.of("repo", "openai/whisper-large-v3"));
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
    
            // Read its records: pages are fetched as you go
            for (Map<String, Object> record : result.records()) {
                System.out.println(record);
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow run huggingface.repo --input repo=openai/whisper-large-v3

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.

    The body on its own:

    JSON
    {
      "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 lists every status and the reasons every scraper shares; the reasons of the Hugging Face scrapers are in their own section there.