Hugging Face Trend & Delta Tracker
Pricing
Pay per usage
Hugging Face Trend & Delta Tracker
Snapshot trending Hugging Face models, datasets and Spaces via the official Hub API and track downloads, likes and rank changes, new entrants and drop-outs between runs.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
William Durham
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
25 days ago
Last modified
Categories
Features
Share
Track what is rising on the Hugging Face Hub. Each run snapshots the top trending (or most downloaded / most liked) models, datasets and Spaces, compares them with the previous run and tells you what changed: downloads Δ, likes Δ, rank movement, new entrants and dropped-out repos.
It uses only the official Hugging Face Hub JSON API (/api/models, /api/datasets, /api/spaces). It does not scrape HTML, and public data needs no API key.
What it does
- Fetches the top N repos per resource type, sorted by
trendingScore,downloads,likes,createdAtorlastModified. - Filters by task (
pipeline_tag), library, license, author/org and search text, plus raw Hub tag filters. - Always tracks a watchlist of repos you name, even when they are not in the top N.
- Saves each snapshot in a named key-value store (default
hf-trend-state), so it survives between runs, and computes deltas against the last one. - The first run is a baseline: delta fields are
nullandis_baselineistrue. - Optionally POSTs a compact JSON summary (top movers, new entrants, dropped out) to a webhook, with a minimum-delta threshold.
- Is polite to the API: a delay between requests, 30 s timeouts, and retries with exponential backoff on HTTP 429/5xx (honouring
Retry-After).
Use cases
- A daily "what's hot in open-source AI" feed for newsletters, Slack or Discord.
- Spot fast-rising models in one task, such as
text-to-imageortext-generation, before they go mainstream. - Monitor your own org's repos (watchlist or
author) for download and like growth.
Input example
{"resourceTypes": ["models", "datasets", "spaces"],"sort": "trendingScore","limit": 50,"pipelineTag": "text-generation","license": "apache-2.0","watchlist": ["openai-community/gpt2", "datasets/HuggingFaceFW/fineweb", "spaces/huggingface/inference-playground"],"mode": "delta","stateStoreName": "hf-trend-state","minDeltaThreshold": 100,"webhookUrl": "https://example.com/hooks/hf-trends"}
Watchlist ids without a prefix are treated as models. Use the datasets/ or spaces/ prefix for the other types. pipelineTag applies to models only.
Output
One dataset item per repo:
{"id": "deepseek-ai/DeepSeek-V4.1-Flash-1017","type": "model","url": "https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017","author": "deepseek-ai","pipeline_tag": "image-text-to-text","library": "transformers","license": "mit","downloads": 116770,"likes": 3544,"trendingScore": 918,"rank": 1,"prev_rank": 2,"rank_change": 1,"prev_downloads": 110000,"downloads_delta": 6770,"prev_likes": 3500,"likes_delta": 44,"prev_trendingScore": 900,"trendingScore_delta": 18,"is_new": false,"is_baseline": false,"source": "list","created_at": "2026-10-17T02:40:38.000Z","last_modified": "2026-10-17T05:46:55.000Z","snapshot_at": "2026-10-29T08:00:00+00:00","prev_snapshot_at": "2026-10-28T08:00:00+00:00"}
(Values are illustrative.)
rank_changeis positive when a repo moved up.is_new: truemeans the repo was not in the previous snapshot.- Repos that dropped out of the list are emitted as extra items with
dropped_out: trueand their previous values. libraryholdslibrary_namefor models and the Space SDK (gradio,dockerand so on) for Spaces. Datasets have none.- Spaces have no download counts, so their download fields are
null. sourceislistorwatchlist.
Each run also writes a SUMMARY record to the default key-value store. It has the same JSON shape as the webhook payload: counts, top_movers, new_entrants and dropped_out.
Scheduling tip
Deltas only make sense over time. Create a Schedule in Apify Console (for example daily at 08:00) that runs a saved task with fixed input. Hub download counters are rolling 30-day values that update a few times a day, so daily or every 6 to 12 hours works best. Runs a few minutes apart usually show zero deltas.
If you track several configurations (different sorts or filters), give each its own stateStoreName. Otherwise they overwrite each other's baseline. The snapshot is also keyed by sort.
Limitations
downloadson the Hub is a rolling ~30-day count, not a lifetime total. A negativedownloads_deltais normal.trendingScoreis computed by Hugging Face. Its exact formula is not public.- The license is read from the repo's
license:*tag. Repos without that tag shownull. - The library filter is applied as a Hub tag filter. It may also match repos that only carry the tag.
- Private or gated repos need a token with access (
hfToken). Missing watchlist repos are logged and skipped. - The snapshot is saved only at the end of a run that completes. An aborted run leaves the previous baseline untouched.
- Webhooks fire only on non-baseline runs that have at least one mover above the threshold or a new entrant. Delivery is attempted once.
Cost
The Actor makes a handful of light JSON API requests per run: one per resource type plus one per watchlist repo. A typical run takes well under a minute on the smallest memory setting (256 MB is enough).