---
title: "List generated catalog topics by task, type, license, framework, and source."
method: GET
path: "/api/topics"
tags: ["Catalog"]
---

# List generated catalog topics by task, type, license, framework, and source.

`GET /api/topics`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/topics`
- Auth: none declared

Without pagination parameters this preserves the historical topic array used by the web UI. Supplying limit or cursor returns a bounded TopicPage envelope.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

## Query parameters

- `limit` integer
- `cursor` string
- `compat` 'containment'

## Response `200`

Historical topic array or a bounded cursor page when limit/cursor is present.

- union
  - Topic[]
    - `slug` string, required
    - `label` string, required
    - `kind` string
    - `artifactCount` number, required
    - `hfImports` number
    - `hostedFiles` number
    - `downloads` number
    - `stars` number
  - TopicPage
    - `schemaVersion` 'hugging-bay.topics-page.v1', required
    - `rows` Topic[], required
      - `slug` string, required
      - `label` string, required
      - `kind` string
      - `artifactCount` number, required
      - `hfImports` number
      - `hostedFiles` number
      - `downloads` number
      - `stars` number
    - `total` integer, required
    - `limit` integer, required
    - `cursor` string, required
    - `nextCursor` string, nullable, required

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/63c474bf0fe4?raw)
