# Hugging Face Spaces search API

Search Hugging Face Spaces via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, sort, and retrieve structured data including space identifier, space display title, sdk, stage, and configured compute hardware tier to compare framework ecosystems, and track an organization's showcases.

Documentation: https://openany.si/hugging-face/hugging-face-spaces-search-api/4bc56bad-ce54-4f31-9406-5e8479d8ae74/
API ID: 4bc56bad-ce54-4f31-9406-5e8479d8ae74
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/huggingface/v1/spaces
Page update time: 2026-12-03T02:43:38.286Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:43:37.611Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Hugging Face Spaces Search API

Query public Hugging Face Spaces with optional q, author, sdk, model (comma-separated model IDs), dataset (comma-separated dataset IDs), tags, sort (trending, likes, created or modified), limit (default 20, max 100) and cursor. Each result includes SDK, runtime stage, hardware, likes, short\_description and app\_url.

## What You Can Build

- **Find live demos for a model**: Pass a model ID in model sorted by likes to locate community Spaces already running that checkpoint.
- **Compare framework ecosystems**: Filter by sdk (such as gradio, streamlit or docker) and tags to benchmark popular app patterns.
- **Track an organization's showcases**: Set author and sort=modified to monitor newly deployed demos from an AI lab.

## Returned Data

| Field | Meaning |
| --- | --- |
| `items[].id` | Space identifier (owner/name) |
| `items[].author` | Space owner username or organization |
| `items[].title` | Space display title |
| `items[].sdk` | Application framework such as gradio, streamlit or docker |
| `items[].stage` | Observed runtime state such as RUNNING or SLEEPING |
| `items[].hardware` | Configured compute hardware tier |
| `items[].likes` | Community like count |
| `items[].app_url` | Direct hosted Space application URL |
| `items[].short_description` | Short summary of the Space |
| `next_cursor` | Opaque cursor for the next page, or null on the last page |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hugging Face Spaces search API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "q": {
          "type": "string",
          "description": "Words in the Space id."
        },
        "author": {
          "type": "string",
          "description": "Only Spaces of this user or organization."
        },
        "sdk": {
          "type": "string",
          "description": "App framework.",
          "enum": [
            "gradio",
            "streamlit",
            "docker",
            "static"
          ]
        },
        "model": {
          "type": "string",
          "description": "Spaces using this model id, comma-separated."
        },
        "dataset": {
          "type": "string",
          "description": "Spaces using this dataset id, comma-separated."
        },
        "tags": {
          "type": "string",
          "description": "Any other Hub tags, comma-separated."
        },
        "sort": {
          "type": "string",
          "description": "Order: `trending` (default), `likes`, `created` or `modified`.",
          "enum": [
            "trending",
            "likes",
            "created",
            "modified"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Results per page (default 20, max 100)."
        },
        "cursor": {
          "type": "string",
          "description": "`next_cursor` from the previous page; null on the last page."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "app_url": {
                "type": "string"
              },
              "arxiv": {
                "type": "array",
                "items": {}
              },
              "author": {
                "type": "string"
              },
              "created_at": {
                "type": "string"
              },
              "emoji": {
                "type": "string"
              },
              "gated": {
                "type": "null"
              },
              "hardware": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "languages": {
                "type": "array",
                "items": {}
              },
              "last_modified": {
                "type": "string"
              },
              "license": {
                "anyOf": [
                  {
                    "type": "null"
                  },
                  {
                    "type": "string"
                  }
                ]
              },
              "licenses": {
                "type": "array",
                "items": {}
              },
              "likes": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "pinned": {
                "type": "boolean"
              },
              "private": {
                "type": "boolean"
              },
              "regions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sdk": {
                "type": "string"
              },
              "sha": {
                "type": "string"
              },
              "short_description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "stage": {
                "type": "string"
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "title": {
                "type": "string"
              },
              "trending_score": {
                "type": "integer"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_cursor": {
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/huggingface/v1/spaces?output=json&q=chat&sort=likes' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "items": [
    {
      "app_url": "https://resembleai-chatterbox.hf.space",
      "arxiv": [],
      "author": "ResembleAI",
      "created_at": "2025-05-27T09:45:30.000Z",
      "emoji": "🍿",
      "gated": null,
      "hardware": "zero-a10g",
      "id": "ResembleAI/Chatterbox",
      "languages": [],
      "last_modified": "2026-01-14T18:45:12.000Z",
      "license": null,
      "licenses": [],
      "likes": 1768,
      "name": "Chatterbox",
      "pinned": false,
      "private": false,
      "regions": [
        "us"
      ],
      "sdk": "gradio",
      "sha": "9d5bf071e0880429f8020011d1433b4dd9e5f3b0",
      "short_description": "Expressive Zeroshot TTS",
      "stage": "RUNNING",
      "tags": [
        "gradio",
        "mcp-server",
        "… 1 more"
      ],
      "title": "Chatterbox TTS",
      "trending_score": 3,
      "url": "https://huggingface.co/spaces/ResembleAI/Chatterbox"
    },
    {
      "app_url": "https://ysharma-chatgpt4.hf.space",
      "arxiv": [],
      "author": "ysharma",
      "created_at": "2023-03-18T13:13:08.000Z",
      "emoji": "🚀",
      "gated": null,
      "hardware": "cpu-basic",
      "id": "ysharma/ChatGPT4",
      "languages": [],
      "last_modified": "2023-06-05T07:31:24.000Z",
      "license": "mit",
      "licenses": [],
      "likes": 1491,
      "name": "ChatGPT4",
      "pinned": false,
      "private": false,
      "regions": [
        "us"
      ],
      "sdk": "gradio",
      "sha": "68bf2d8f0a52f680735daf8f2b53bc34b491c760",
      "short_description": null,
      "stage": "RUNNING",
      "tags": [
        "gradio",
        "region:us"
      ],
      "title": "Chat-with-GPT4",
      "trending_score": 0,
      "url": "https://huggingface.co/spaces/ysharma/ChatGPT4"
    },
    "… 18 more"
  ],
  "next_cursor": "eyIkb3IiOlt7Imxpa2VzIjozNDEsIl9pZCI6eyIkZ3QiOiI2NTU2NDk0MWJiNjQ0MzkzZjI4NDcwZDUifX0seyJsaWtlcyI6eyIkbHQiOjM0MX19LHsibGlrZXMiOm51bGx9XX0=",
  "query": "chat",
  "sort": "likes"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I find Spaces that use a specific Hugging Face model or dataset?
Pass the model or dataset owner/name in model or dataset; multiple IDs can be comma-separated.

### Can I filter Spaces by app framework?
Yes. Use the sdk parameter to filter by framework such as gradio, streamlit, static or docker.

### What sort options and page limits are supported?
sort accepts trending (default), likes, created or modified; limit defaults to 20 with a maximum of 100.

### How do I paginate across Spaces search results?
Pass next_cursor into the cursor query parameter until next_cursor is null.

### How do I inspect full card_data and file counts for a Space?
Pass items[].id into the Hugging Face Space API for full metadata and linked resources.

### How do caching and field selection work?
Output is JSON only. Pass fresh=1 to skip the 24-hour cache, raw=0 to omit bulky raw blocks, or fields to select specific keys.

## Available implementations
- apish: https://openany.si/hugging-face/hugging-face-spaces-search-api/4bc56bad-ce54-4f31-9406-5e8479d8ae74/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
