← Back to marketplace

Hugging Face Models Datasets and Spaces Data

Public Hugging Face models, datasets, Spaces, papers, collections, files and repository metadata, one row per entity.

ai
by kaneliu101 endpoint100% uptime225ms avg

Endpoints

POST/v1/search
$0.0200/req

Search Hugging Face models, datasets, Spaces and papers

Request schema

querystring

Search query. Empty targets use the form example; set a listing filter such as author to browse without a keyword.

searchTypestring

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.

detailUrlsarray

Detail URLs. All URLs in this batch share one maxResults allowance.

repoIdstring

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.

ownerstring

Owner or organization. Repository owner or organization. Combined with name when repoId is empty.

namestring

Repository name. Repository name. Combined with owner when repoId is empty.

maxResultsinteger

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).

repoKindstring

Repository type. Repository type for files, paths, discussions, commits or references. Leave empty to use the type inferred from searchType, normally models.

pipelineTagstring

Pipeline tag. Filter model listings by task, such as text-generation, text-classification or fill-mask.

modalitystring

Dataset modality

spaceFilterstring

Space filter. Filter Space listings by toolkit, such as gradio, docker, streamlit or static.

filterTagsarray

Hub filter tags. Additional catalog tags, such as license:mit, diffusers or task_categories:question-answering. For model tasks, use pipelineTag.

languagestring

Dataset language. This filters datasets only; it is not a country selector or search translation setting.

authorstring

Author. Filter catalog listings by a Hugging Face author or organization name.

sortstring

Sort. Listing order: downloads, likes, createdAt or lastModified. Leave empty for the default order; trending also uses the default order.

maxPagesinteger

Max pages. Listing page setting from 1 to 20, with a default of 1.

enrichDetailsboolean

Include author details. Include public author or organization profile details when available. Enabled by default; does not collect phone numbers or street addresses.

datasetConfigstring

Dataset configuration. Required with an explicit repository for datasetRows; use the matching configuration for datasetSearch and datasetStatistics too.

datasetSplitstring

Dataset split. Required with an explicit repository for datasetRows; use the matching split for datasetSearch and datasetStatistics too.

datasetOffsetinteger

Dataset offset. Starting row index for datasetRows or datasetSearch. Default 0.

datasetLengthinteger

Dataset length. Page size for datasetRows or datasetSearch, from 1 to 100. Defaults to 100; delivered rows are still limited by maxResults.

filePathsarray

File paths. Repository-relative paths for pathsInfo, such as config.json. For fileMeta or fileDownload, the first path is used when targetPath is empty.

targetPathstring

Target path. Repository-relative file path for fileMeta or fileDownload, such as config.json. Also accepted by pathsInfo when filePaths is empty.

revstring

Revision. Branch, tag or commit identifier for fileMeta, fileDownload, pathsInfo and commits. Default main.

paperDatestring

Paper date. Date for dailyPapers in YYYY-MM-DD format. Leave empty for today in UTC.

commitShastring

Reserved setting. Reserved setting. Leave empty.

expandFieldsarray

Expand fields. Additional listing fields to request, such as author, cardData or siblings. Only supported output fields are retained.

wantFullboolean

Additional listing metadata. Request additional metadata in catalog listings. Disabled by default; available output fields depend on the source.

wantConfigboolean

Listing configuration information. Request configuration information in catalog listings. Disabled by default; this does not add a raw model configuration object to output rows.

requestIdstring

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
        }
      }
    }
  ]
}

Quick start

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)

Pricing calculator

Estimate your monthly cost for Hugging Face Models Datasets and Spaces Data.

POST /v1/search$0.0200/req
-