Skip to main content
POST
/huggingface/models/search

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required
Required range: x >= 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
search
string | null
author
string | null
filter
string[] | null
sort
enum<string> | null
Available options:
downloads,
likes,
lastModified,
createdAt,
trendingScore
direction
integer | null
Required range: -1 <= x <= 1
full
boolean
default:false

Response

Successful Response

id
string
required
url
string
required
@type
string
default:HuggingfaceModel
author
string | null
sha
string | null
download_count
integer | null
like_count
integer | null
pipeline_tag
string | null
library_name
string | null
tags
string[]
gated
is_private
boolean
default:false
is_disabled
boolean
default:false
mask_token
string | null
created_at
string | null
last_modified
string | null
used_storage
integer | null
card_data
object | null
config
object | null
transformers_info
object | null
model_index
any[] | null
safetensors
object | null
widget_data
any[] | null
siblings
object[]
spaces
string[]