hf_search_spaces: Search Spaces on Hugging Face Hub

View source: R/hub.R

hf_search_spacesR Documentation

Search Spaces on Hugging Face Hub

Description

Search hosted Spaces and return one row per result.

Usage

hf_search_spaces(
  search = NULL,
  author = NULL,
  sort = "likes",
  direction = "desc",
  limit = 30,
  token = NULL
)

Arguments

search

Character string or NULL. Search query.

author

Character string or NULL. Filter by owner.

sort

Character string. Sort field passed to the Hub API.

direction

Character string. Sort direction: "asc" or "desc".

limit

Integer. Maximum number of Spaces to return.

token

Character string or NULL. API token for authentication.

Value

A tibble with Space metadata.

Examples

## Not run: 
hf_search_spaces(search = "chat", limit = 10)

## End(Not run)

huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.