APIs / Hugging Face / Search Spaces
Hugging Face: Search Spaces
Spaces (hosted demo apps) on the Hugging Face Hub matching a query, with likes and SDK.
GET /v1/huggingface/spaces-search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Optional | Up to 200 characters Words to match in the Space id. |
author | string | Optional | Up to 100 characters Only Spaces from this user or organisation. |
sort | string | Optional | likes, trending, last_modified, created Sort order, highest first. Default likes. |
limit | integer | Optional | Any Results to return, 1 to 100. Default 20. |
Example request
Hugging Face
GET/v1/huggingface/spaces-search?query=whisper&limit=10
{
"success": true,
"data": {
"count": 10,
"items": [
{
"id": "openai/whisper",
"author": "openai",
"sdk": "gradio",
"likes": 2903,
"tags": [
"gradio",
"region:us"
],
"created_at": "2022-09-21T17:20:39.000Z",
"url": "https://huggingface.co/spaces/openai/whisper"
},
{
"id": "sanchit-gandhi/whisper-jax",
"author": "sanchit-gandhi",
"sdk": "docker",
"likes": 2843,
"tags": [
"docker",
"region:us"
],
"created_at": "2023-04-05T11:58:59.000Z",
"url": "https://huggingface.co/spaces/sanchit-gandhi/whisper-jax"
},
{
"id": "Xenova/whisper-web",
"author": "Xenova",
"sdk": "static",
"likes": 1301,
"tags": [
"static",
"region:us"
],
"created_at": "2023-05-22T18:00:46.000Z",
"url": "https://huggingface.co/spaces/Xenova/whisper-web"
}
]
},
"meta": {
"request_id": "req_38d310140e7344aea9a6d6923ad551c7",
"credits_charged": 1,
"credits_remaining": 1975
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 7 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | string |
author | string |
sdk | string |
likes | integer |
tags | string[] |
created_at | string |
url | url |