Hugging Face

Get Hugging Face collection

Get a Hugging Face collection with every item and the curator's notes.

GET/v1/hugging-face/collections/{owner}/{slug}
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
ownerstringrequiredpath

Owner of the collection: a user or organization name.

pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,95}$

slugstringrequiredpath

Collection slug without the owner, e.g. `gemma-4-69ce8ad93186d46744cb42f1`.

pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,150}$

Response fields
58

Endpoint-specific response payload.

datalookupStatus
string

Whether the item was found.

one of: found, not_found

The collection when lookupStatus is `found`; otherwise null.

datacollectionslug
string

Collection slug, `owner/title-id`.

datacollectionurl
string

Collection page URL.

datacollectiontitle
string

Title.

datacollectiondescription
stringnullable

Description.

Who curates the collection.

datacollectionownerusername
string

Account name, the part of the profile URL after the domain.

datacollectionowneruid
stringnullable

Stable account id.

datacollectionownerdisplayName
stringnullable

Display name.

datacollectionowneravatarUrl
stringnullable

Avatar image URL.

datacollectionownerurl
string

Profile page URL.

datacollectionownertype
stringnullable

Whether the account is a user or an organization.

one of: user, org, null

datacollectionownerisPro
booleannullable

Whether the account has a Pro subscription.

datacollectionownerisStaff
booleannullable

Whether the account belongs to the platform's staff, when the response includes it.

datacollectionownerfollowerCount
integernullable

Followers, when the response includes it.

datacollectionupvotes
integernullable

Upvotes.

datacollectionlastUpdatedAt
stringnullable

When the collection last changed (ISO-8601).

datacollectiongated
booleannullable

Whether the collection is gated.

datacollectiontheme
stringnullable

Colour theme of the collection.

datacollectionitemCount
integernullable

Items in the collection. Lists carry a preview of up to 4 `items` and no total, so `itemCount` is null there; the detail route returns every item and the count.

Every item, in order.

datacollectionitems[]type
string

Item kind: `model`, `dataset`, `space`, `paper` or `collection`.

datacollectionitems[]id
string

Item id: a repository id, a paper id or a collection slug.

datacollectionitems[]url
string

Item page URL.

datacollectionitems[]note
stringnullable

The curator's note on the item.

datacollectionitems[]position
integernullable

Position in the collection, from 0.

datacollectionitems[]title
stringnullable

Title of a paper or collection.

Repository details when the item is a model, dataset or Space.

datacollectionitems[]repoid
string

Repository id, `owner/name`.

datacollectionitems[]repotype
string

Repository type.

one of: model, dataset, space

datacollectionitems[]repouid
stringnullable

Stable repository id; survives renames.

datacollectionitems[]repourl
string

Repository page URL.

datacollectionitems[]repoauthor
stringnullable

Owner account name.

datacollectionitems[]repocreatedAt
stringnullable

When the repository was created (ISO-8601).

datacollectionitems[]repolastModified
stringnullable

When the repository last changed (ISO-8601).

datacollectionitems[]reposha
stringnullable

Latest commit on the default branch.

datacollectionitems[]repolikes
integernullable

Likes.

datacollectionitems[]repodownloads
integernullable

Downloads in the last 30 days.

datacollectionitems[]repodownloadsAllTime
integernullable

Downloads since the repository was created.

datacollectionitems[]repotrendingScore
numbernullable

Trending score.

datacollectionitems[]repogated

Whether access needs approval: `false`, `auto` (accepted on request) or `manual` (reviewed by the owner).

datacollectionitems[]repodisabled
booleannullable

Whether the repository has been disabled.

Tags: task, library, languages, licence and more. Null when the collection item does not carry them.

datacollectionitems[]repotags[]
stringoptional
datacollectionitems[]repopipelineTag
stringnullable

Main task of a model, e.g. `text-generation`; null in dataset and Space results.

datacollectionitems[]repolibrary
stringnullable

Library a model is made for, e.g. `transformers`; null in dataset and Space results.

datacollectionitems[]repolicense
stringnullable

Licence id taken from the tags, e.g. `mit`.

datacollectionitems[]reposdk
stringnullable

SDK of a Space, e.g. `gradio`; null in model and dataset results.

datacollectionitems[]repoparameters
integernullable

Parameter count of a model, when known; null in dataset and Space results.

datacollectionitems[]repospaceStage
stringnullable

Run state of a Space, e.g. `RUNNING` or `SLEEPING`; null in model and dataset results.

datacollectionitems[]upvotes
integernullable

Upvotes on a paper or collection.

datacollectionitems[]publishedAt
stringnullable

When a paper was published (ISO-8601).

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/hugging-face/collections/google/gemma-4-69ce8ad93186d46744cb42f1" \
  -H "x-api-key: YOUR_API_KEY"

Responses

Collection details.