Skip to the content

Scraper API

Hugging Face

huggingface.searchAvailable

Hugging Face search

A page of models or Spaces: owner, likes, downloads, task, library or SDK, licence, tags and dates.

Give it Words, an owner, or both, a kind of repository and an order.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
7
Record
19 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/huggingface.search/runs

{
"input": {
"query": "whisper",
"max_results": 3
}
}

sent, and answered

a record of the run19 fields

{
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"
… 10 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 19 fields are set down here; the whole record is below.

huggingface.co
The page Hugging Face search reads, as a browser shows it
The page this scraper reads, photographed in a browser on 24 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Find the leading models
List models for a task, most downloaded first, with their downloads, likes and license.
Follow an organisation
List everything an author publishes, newest first, to see what it ships.
Spot trending apps
List Spaces with sort set to trending and read their sdk and likes: what people try this week.

What you send

Words, an owner, or both, a kind of repository and an order. These are its 7 inputs, as its schema has them.

kindstring Optional
model (default) or space (apps).Default model
querystring Optional
Words the repository's id must contain.
authorstring Optional
Only this user's or organisation's repositories.
sortstring Optional
downloads, likes, trending, updated or newest.Default downloads
max_resultsinteger Optional
Repositories a page, up to 100.Default 20
cursorstring Optional
The next page: next_cursor from the run before.
startinteger Optional
How many records the pages before held, so positions run on.Default 0

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
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}}'

# 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.search", {
    "query": "whisper",
    "max_results": 3,
})
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.search", { query: "whisper", max_results: 3 });
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.search", map[string]any{"query": "whisper", "max_results": 3})
	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.search", Map.of("query", "whisper", "max_results", 3));
        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.search --input query=whisper --input max_results=3

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

What comes back

A page of models or Spaces: owner, likes, downloads, task, library or SDK, licence, tags and dates. A record has 19 fields. One we could not read is null, never an empty string or a zero.

A record huggingface.search returned
{
  "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
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: tags: 8 items, the first 3 shown.

The fields of a record

kindstring
What the repository is: model or space (an app).
repo_idstring
The repository's id, owner/name. huggingface.repo takes it.
urlstring
The repository's page on huggingface.co.
authorstring or null
The user or organisation that owns it.
namestring
The repository's name, without its owner.
titlestring or null
A Space's title, as its card states it.
likesinteger or null
How many people liked it.
downloadsinteger or null
A model's downloads in the last 30 days, as the Hub counts them; null for a Space.
pipeline_tagstring or null
A model's task, e.g. text-generation, fill-mask.
librarystring or null
The library a model is for, e.g. transformers, diffusers.
sdkstring or null
What a Space runs on: gradio, streamlit, docker or static.
licensestring or null
The licence it declares, e.g. apache-2.0.
tagslist of strings
The Hub's tags for it: frameworks, languages, papers (arxiv:...).
gatedboolean or null
True when its files are shown only to people who accept its conditions.
created_atdatetime or null
When it was created, in UTC.
updated_atdatetime or null
When it was last changed, in UTC.
fetched_atdatetime
When the Hub answered, in UTC.
positioninteger
Its place in the list, from 1, across the pages read with next_cursor.
statusstring or null
A Space's state, e.g. RUNNING, SLEEPING.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • The next page is read with the next_cursor a page returns.
  • Spaces are not downloaded: for them, the order by downloads is by likes.

The bounds its schema sets

kind
model, space; model unless you say otherwise
sort
downloads, likes, trending, updated, newest; downloads unless you say otherwise
max_results
1 to 100; 20 unless you say otherwise
start
0 to 1,000,000; 0 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Hugging Face search return?

A page of models or Spaces: owner, likes, downloads, task, library or SDK, licence, tags and dates. A record has 19 fields, among them kind, repo_id, url, author, name and title. A value that could not be read is null, never an empty string or a zero.

What do I send?

Words, an owner, or both, a kind of repository and an order. Optional: kind, query, author, sort, max_results, cursor and start.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: kind model, space (model unless you say otherwise); sort downloads, likes, trending, updated, newest (downloads unless you say otherwise); max_results 1 to 100 (20 unless you say otherwise); start 0 to 1,000,000 (0 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

The next page is read with the next_cursor a page returns. Spaces are not downloaded: for them, the order by downloads is by likes.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id huggingface.search and the same input. It costs what the same API call costs.

Hugging Face

Models and Spaces (apps) of the Hugging Face Hub: owner, likes, downloads, task, library, licence and dates.

  • A model's or a Space's id or address on huggingface.co. The repository: owner, likes, downloads, task, library or SDK, licence, tags, parameters, a Space's state, and when it was created and last changed.

Hugging Face on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.