Skip to main content
POST
/
api
/
huggingface
/
datasets
/
search
/huggingface/datasets/search
curl --request POST \
  --url https://api.anysite.io/api/huggingface/datasets/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "search": "imdb",
  "author": "stanfordnlp",
  "filter": [
    "task_categories:text-classification",
    "language:en"
  ],
  "direction": 0,
  "full": false
}
'
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "@huggingface_dataset",
    "author": "<string>",
    "sha": "<string>",
    "download_count": 123,
    "like_count": 123,
    "trending_score": 123,
    "description": "<string>",
    "tags": [],
    "gated": true,
    "is_private": false,
    "is_disabled": false,
    "created_at": "<string>",
    "last_modified": "<string>",
    "used_storage": 123,
    "paperswithcode_id": "<string>",
    "card_data": {},
    "siblings": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Max result count

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
search
string | null

Free-text search keyword

Example:

"imdb"

author
string | null

Filter by author (org or user)

Example:

"stanfordnlp"

filter
string[] | null

Tag filters (repeatable): task category, size, format, modality, language, license, etc.

Example:
[
  "task_categories:text-classification",
  "language:en"
]
sort
enum<string> | null

Sort field

Available options:
downloads,
likes,
lastModified,
createdAt,
trendingScore
direction
integer | null

Sort direction: -1 descending, 1 ascending

Required range: -1 <= x <= 1
full
boolean
default:false

Include files and card data in each result

Response

Successful Response

id
string
required
url
string
required
@type
string
default:@huggingface_dataset
author
string | null
sha
string | null
download_count
integer | null
like_count
integer | null
description
string | null
tags
string[]
gated
is_private
boolean
default:false
is_disabled
boolean
default:false
created_at
string | null
last_modified
string | null
used_storage
integer | null
paperswithcode_id
string | null
card_data
Card Data · object
siblings
HuggingfaceModelFile · object[]