InsightSocial

Hugging Face scraper API

The InsightSocial Hugging Face API has 42 endpoints, from 20 credits a call. A model call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.

The Hugging Face Hub as JSON: models with downloads, cards and base models, datasets and their rows, Spaces, papers and daily papers, collections, accounts and repository discussions.

42 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card

curl "https://api.insightsocial.app/v1/huggingface/model?owner=openai-community&name=gpt2" \
-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
200 OKJSON
{
"success": true,
"platform": "huggingface",
"endpoint": "/v1/huggingface/model",
"schema_version": "2",
"data": {
"model": {
"id": "openai-community/gpt2",
"url": "https://huggingface.co/openai-community/gpt2",
"author": "openai-community",
"created_at": "2022-03-02T23:29:04.000Z",
"last_modified": "2024-02-19T10:57:45.000Z",
"likes": 3919,
"downloads": 30819442,
"pipeline_tag": "text-generation",
"library": "transformers",
"license": "mit",
"parameters": 137022720,
"languages": [
"en"
],
"derived_model_counts": {
"adapter": 1738,
"finetune": 2351,
"merge": 11,
"quantized": 99
},
"gated": false
}
},
"unavailable": [],
"credits_used": 0,
"charge_reason": "miss",
"free_call": true
}

What Hugging Face data can you get?

Public Hugging Face data only, in the same JSON envelope as every other platform. Every Hugging Face endpoint is beta: inside data it returns Hugging Face's own structure under our naming rules (snake_case keys, string ids, ISO times where Hugging Face gives a timestamp), not the shared profile and post schema, and fields may change.

Models

A model with downloads, likes, tags, card, weights, base models and evaluation results, and model search by task, library, licence, base model and size.

Datasets

A dataset with its card and downloads, its rows a page at a time, per-column statistics, and dataset search by language, licence and tags.

Spaces, papers and collections

Spaces and their hardware, search by plain-words description, papers with full text and the repos citing them, the daily papers list, and curated collections.

Accounts, repos and trending

An account and its repos, followers and activity, a repo's commits, files, README, likers and discussions, and what is trending now.

What people build with the Hugging Face API

  • Model landscape research

    Search models by task and licence, sort by downloads, and read each one's base model and derived fine-tunes to map a family.

  • Paper tracking

    Pull the daily papers every morning, read the full text of the ones that matter, and list the models and datasets that cite them.

  • Dataset sampling

    Read a dataset's card, column statistics and a few pages of rows before you download it.

Hugging Face API endpoints

All 42 Hugging Face endpoints and their price in credits. Every one has a fixed price.

EndpointCreditsWhat it returns
/account20Get a Hugging Face user or organization with its counts, organizations and profile text.
/account/activity20List the recent public activity of a Hugging Face user or organization.
/account/buckets20List the public storage buckets of a Hugging Face account.
/account/followers20List the followers of a Hugging Face user or organization.
/account/profile20Get Hugging Face profile details beyond the account record.
/account/repos20List the public models, datasets or Spaces of a Hugging Face account.
/blog/posts20List posts from the official or community Hugging Face blog.
/changes20List the Hugging Face models, datasets, Spaces, papers or blog posts that changed most recently.
/collection20Get a Hugging Face collection with every item and the curator's notes.
/collections20Search Hugging Face collections, or find the collections that contain a model, dataset, Space or paper.
/dataset20Get a Hugging Face dataset with its downloads, tags, description and card.
/dataset/rows20List rows from a Hugging Face dataset a page at a time.
/dataset/statistics20Get per-column statistics of a Hugging Face dataset split.
/dataset/viewer20Get what a Hugging Face dataset viewer can show.
/datasets20Search and filter Hugging Face datasets by keyword, language, licence and tags.
/inference-providers/models20List the Hugging Face models that inference providers host.
/kernel20Get a Hugging Face compute kernel.
/kernels20Search Hugging Face compute kernels.
/model20Get a Hugging Face model with its downloads, tags, card, weights, base models and evaluation results.
/models20Search and filter Hugging Face models by task, library, language, licence, base model and more.
/organization/members20List every member of a Hugging Face organization.
/paper20Get a Hugging Face paper with its authors, abstract and upvotes.
/paper/content20Get the full text of a Hugging Face paper as Markdown.
/paper/repos20List the Hugging Face models, datasets and Spaces that cite a paper.
/papers20Search Hugging Face papers by keyword, or list the newest papers.
/papers/daily20List the papers on the Hugging Face daily papers list for a day, week or month.
/posts20List posts from the Hugging Face social feed, newest first.
/repo/commits20List the commit history of a Hugging Face repository.
/repo/discussion20Get one discussion or pull request of a Hugging Face repository with every comment.
/repo/discussions20List the discussions and pull requests of a Hugging Face repository.
/repo/files20List the files and folders of a Hugging Face repository.
/repo/likers20List the accounts that liked a Hugging Face repository.
/repo/readme20Get the README of a Hugging Face model, dataset or Space.
/search20Search Hugging Face models, datasets, Spaces, organizations, users, papers, collections, buckets, kernels and blog posts.
/search/readmes20Search the text of Hugging Face READMEs and code files.
/space20Get a Hugging Face Space with its run state, hardware, SDK and linked models and datasets.
/spaces20Search Hugging Face Spaces by keyword, SDK and tags.
/spaces/semantic-search20Search Hugging Face Spaces that match a plain-words description.
/tags20List the Hugging Face tags in one group, such as tasks or languages.
/trending20List the models, datasets and Spaces trending on Hugging Face now.
/user/following20List the accounts a Hugging Face user follows.
/user/likes20List the repositories a Hugging Face user liked.

Parameters, response fields and examples for each endpoint are in the Hugging Face API reference.

InsightSocial vs the official Hugging Face API

The Hugging Face Hub API is free and documented, with Python and JavaScript clients; public repos can be read without a token, and a token lifts limits and opens gated repos you have accepted.

InsightSocial APIOfficial Hugging Face API
SetupSign in and copy a keyOptional Hugging Face token
Gated reposPublic metadata onlyWith a token, after you accept the terms
Other platformsThe same key and envelope for 60 moreHugging Face only
Cost per call20 creditsFree, within Hugging Face's limits

The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.

How much does the Hugging Face API cost?

Hugging Face calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 model lookups at 20 credits each.

  • Failed calls are free

    A call that errors or finds nothing costs 0 credits.

  • Repeats and retries

    A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.

  • One balance

    API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.

Not writing code?

Connect InsightSocial to Claude or ChatGPT and ask for Hugging Face data in plain English. Same account, same credits.

Use it from Claude or ChatGPT

Hugging Face API: frequently asked questions

If Hugging Face is your only source, the Hub API and its clients are free and the natural choice. This API suits a pipeline that also reads GitHub, Hacker News, Reddit or X: one key, one envelope and one credit balance across all of them.