Public Hugging Face models, datasets, Spaces, papers, collections, files and repository metadata, one row per entity.
Search Hugging Face models, datasets, Spaces and papers
Request schema
Search query. Empty targets use the form example; set a listing filter such as author to browse without a keyword.
Search type. Choose the catalog, detail or metadata mode to collect. Papers and collections do not filter by keyword; options labeled not available do not collect data.
Detail URLs. All URLs in this batch share one maxResults allowance.
Repository ID. Repository identifier such as openai/whisper-tiny, paper identifier or collection slug. Set the matching searchType; this field alone does not select detail mode.
Owner or organization. Repository owner or organization. Combined with name when repoId is empty.
Repository name. Repository name. Combined with owner when repoId is empty.
Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).
Repository type. Repository type for files, paths, discussions, commits or references. Leave empty to use the type inferred from searchType, normally models.
Pipeline tag. Filter model listings by task, such as text-generation, text-classification or fill-mask.
Dataset modality
Space filter. Filter Space listings by toolkit, such as gradio, docker, streamlit or static.
Hub filter tags. Additional catalog tags, such as license:mit, diffusers or task_categories:question-answering. For model tasks, use pipelineTag.
Dataset language. This filters datasets only; it is not a country selector or search translation setting.
Author. Filter catalog listings by a Hugging Face author or organization name.
Sort. Listing order: downloads, likes, createdAt or lastModified. Leave empty for the default order; trending also uses the default order.
Max pages. Listing page setting from 1 to 20, with a default of 1.
Include author details. Include public author or organization profile details when available. Enabled by default; does not collect phone numbers or street addresses.
Dataset configuration. Required with an explicit repository for datasetRows; use the matching configuration for datasetSearch and datasetStatistics too.
Dataset split. Required with an explicit repository for datasetRows; use the matching split for datasetSearch and datasetStatistics too.
Dataset offset. Starting row index for datasetRows or datasetSearch. Default 0.
Dataset length. Page size for datasetRows or datasetSearch, from 1 to 100. Defaults to 100; delivered rows are still limited by maxResults.
File paths. Repository-relative paths for pathsInfo, such as config.json. For fileMeta or fileDownload, the first path is used when targetPath is empty.
Target path. Repository-relative file path for fileMeta or fileDownload, such as config.json. Also accepted by pathsInfo when filePaths is empty.
Revision. Branch, tag or commit identifier for fileMeta, fileDownload, pathsInfo and commits. Default main.
Paper date. Date for dailyPapers in YYYY-MM-DD format. Leave empty for today in UTC.
Reserved setting. Reserved setting. Leave empty.
Expand fields. Additional listing fields to request, such as author, cardData or siblings. Only supported output fields are retained.
Additional listing metadata. Request additional metadata in catalog listings. Disabled by default; available output fields depend on the source.
Listing configuration information. Request configuration information in catalog listings. Disabled by default; this does not add a raw model configuration object to output rows.
Optional. Your id for this request: repeating it while the job runs returns the same job.
Response schema
{
"allOf": [
{
"type": "object",
"properties": {
"jobId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"queued",
"running",
"succeeded",
"partial",
"failed",
"cancelled"
]
},
"done": {
"type": "boolean"
},
"rowsAvailable": {
"type": "integer"
},
"rowsDelivered": {
"type": "integer",
"description": "Rows already delivered (and billed) to you for this job."
},
"rowsLimit": {
"type": "integer",
"description": "Most rows this job can deliver."
},
"estimatedFinishSec": {
"type": "integer",
"description": "While running: estimated seconds until done."
},
"statusUrl": {
"type": "string"
},
"resultsUrl": {
"type": "string"
},
"expiresAt": {
"type": "string",
"format": "date-time"
},
"retentionHours": {
"type": "integer"
},
"error": {
"$ref": "#/components/schemas/ErrorDetail"
}
}
},
{
"type": "object",
"properties": {
"offset": {
"type": "integer"
},
"nextOffset": {
"type": "integer"
},
"hasMore": {
"type": "boolean"
},
"rowCount": {
"type": "integer"
},
"rowsBilled": {
"type": "integer",
"description": "Rows delivered by this response."
},
"rows": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Row"
}
},
"meta": {
"type": "object",
"additionalProperties": true
}
}
}
]
}Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.
# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10
# call this service
npx @apihubio/cli call "https://proxy.apihub.io/huggingface-co/v1/search" \
-d '{"query":"example query","searchType":"models","detailUrls":["string"],"repoId":"example repoId","owner":"","name":"example name","maxResults":10,"repoKind":"","pipelineTag":"","modality":"","spaceFilter":"","filterTags":["string"],"language":"","author":"","sort":"","maxPages":1,"enrichDetails":true,"datasetConfig":"","datasetSplit":"","datasetOffset":0,"datasetLength":100,"filePaths":["string"],"targetPath":"","rev":"main","paperDate":"","commitSha":"","expandFields":["string"],"wantFull":false,"wantConfig":false,"requestId":"example requestId"}'Or call the proxy directly (curl / any HTTP client):
curl -X POST https://proxy.apihub.io/huggingface-co/v1/search \
-H "Authorization: Bearer ahk_your_key" \
-H "Content-Type: application/json" \
-d '{"query":"example query","searchType":"models","detailUrls":["string"],"repoId":"example repoId","owner":"","name":"example name","maxResults":10,"repoKind":"","pipelineTag":"","modality":"","spaceFilter":"","filterTags":["string"],"language":"","author":"","sort":"","maxPages":1,"enrichDetails":true,"datasetConfig":"","datasetSplit":"","datasetOffset":0,"datasetLength":100,"filePaths":["string"],"targetPath":"","rev":"main","paperDate":"","commitSha":"","expandFields":["string"],"wantFull":false,"wantConfig":false,"requestId":"example requestId"}'
# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)Estimate your monthly cost for Hugging Face Models Datasets and Spaces Data.