Use cases / Hugging Face
Hugging Face model data API
Before a team builds on an open model it wants the boring facts: who published it, what task it is tagged for, which library loads it, what licence it carries, whether access is gated and whether people are still downloading it. Those facts live on the model's page on the Hugging Face Hub and change over time.
What the official Hugging Face interface gives, and where it stops
- "Whenever you or your organization hits a rate limit, you will receive a 429 Too Many Requests HTTP error." official documentation, checked 25 November 2026
The Hub has its own API and a Python client, both free to start with, and limits that depend on your plan; the documentation linked above publishes the current table and the response headers that report them. If you download weights, push files or work with private repositories, you need the Hub itself.
What the FoxAPIs endpoint adds
This endpoint is for the catalog question only. Send a model ID such as an organisation name and model name, and read one object with the author, pipeline tag, library, downloads in the last month, likes, gated and private flags, licence, languages and tags. It is useful when the rest of your pipeline already calls this key and you do not want another client library or token in a small job. It does not download a model, run it, read the model card in full or search the Hub.
A practical use is a dependency register: for each model your products rely on, record the licence and gated flag once a week and raise a ticket when either changes. Another is a comparison sheet when choosing between a few candidate models. Treat download and like counts as popularity signals, not as a measure of quality or safety, and read the licence text itself before shipping.
POST /v1/developer/huggingface/model costs 5 credits for a successful call; an answer with no data is not charged. Plans and top-ups are on the pricing page. Endpoint page · Get a key
A real response
Captured 22 November 2026 from a live call, shortened here: long text and long lists are cut, and contact details and lists of people are left out.
{
"platform": "huggingface",
"model_id": "mistralai/Mistral-7B-v0.1",
"author": "mistralai",
"pipeline_tag": "text-generation",
"library_name": "transformers",
"downloads_last_month": 419630,
"likes": 4235,
"is_private": false,
"gated": false,
"license": "apache-2.0",
"languages": [
"en"
],
"tags": [
"transformers",
"pytorch"
],
"created_at": "2023-09-20T13:03:50.000Z",
"last_modified": "2025-07-24T16:44:02.000Z",
"siblings_count": 14,
"model_url": "https://huggingface.co/mistralai/Mistral-7B-v0.1",
"paper_url": "https://arxiv.org/abs/2310.06825",
"errors": []
}
The call in curl, JavaScript and Python
curl
curl -X POST "https://api.foxapis.com/v1/developer/huggingface/model" \
-H "Authorization: Bearer $FOXAPIS_KEY" \
-H "Content-Type: application/json" \
-d '{"model_id":"mistralai/Mistral-7B-v0.1"}'
JavaScript
const res = await fetch("https://api.foxapis.com/v1/developer/huggingface/model", {
method: "POST",
headers: { Authorization: "Bearer " + process.env.FOXAPIS_KEY, "Content-Type": "application/json" },
body: JSON.stringify({"model_id":"mistralai/Mistral-7B-v0.1"}),
});
if (!res.ok) throw new Error("HTTP " + res.status);
console.log(await res.json());
Python
import os, requests
res = requests.post(
"https://api.foxapis.com/v1/developer/huggingface/model",
headers={"Authorization": "Bearer " + os.environ["FOXAPIS_KEY"]},
json={"model_id":"mistralai/Mistral-7B-v0.1"},
timeout=60,
)
res.raise_for_status()
print(res.json())
Questions people ask about the hugging face api
What is the Hugging Face API rate limit?
It depends on your plan. Hugging Face publishes a table and reports your limit in response headers; a request over the limit gets a 429 error.
Do I need a Hugging Face token?
Not for this endpoint. Private or gated files on the Hub need your own token and permission.
Can I run the model through this call?
No. It returns information about the model, not model output.
Does it tell me whether I may use a model commercially?
It returns the licence identifier the page declares. Whether your use is allowed is a question for the licence text.
Related
Hugging Face is a name of its owner. FoxAPIs is not affiliated with or endorsed by Hugging Face. You are responsible for using the data within the source's terms.
Run this free, then pay per call
Start with 10,000 credits, no card. They arrive once you confirm your email and expire 90 days after they are added; credits you buy never expire. Start with 10,000 credits
5 credits a call: $3.98 per 1,000 calls on Production, $4.90 on Builder.
Building an AI agent? See the MCP server