---
title: "Read /api/trending through its compatible /api/public/trending route."
method: GET
path: "/api/public/trending"
tags: ["Catalog", "Agent Docs"]
deprecated: true
---

# Read /api/trending through its compatible /api/public/trending route.

`GET /api/public/trending`

## Request

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

> **Deprecated.**

Same handler and response as GET /api/trending. Alias of /api/v1/trending (recorded; identical handler). Prefer the recorded path: this one already answers with Deprecation and Sunset headers. Exposes aggregate public traction only. No raw visitor keys, IPs, referrers, or operator fields are returned.

**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

- `window` '24h' | '7d' | '30d' | 'all'
- `limit` integer
- `compat` 'containment'

## Response `200`

Public trending artifacts

- PublicTrending
  - `schemaVersion` 'hugging-bay.public-trending.v1', required
  - `generatedAt` string, required
  - `baseUrl` string
  - `webUrl` string
  - `apiUrl` string
  - `available` boolean, required
  - `reason` string
  - `window` object, required
    - `label` '24h' | '7d' | '30d' | 'all'
    - `hours` number, nullable
  - `totals` object, required
  - `rows` object[], required
    - `id` string, required
    - `owner` string, required
    - `name` string, required
    - `repo` string, required
    - `type` string, required
    - `summary` string
    - `publisher` string
    - `sourceUrl` string
    - `license` string, required
    - `visibility` string, required
    - `verificationStatus` string
    - `scanStatus` string
    - `cardCompleteness` number
    - `tags` string[]
    - `task` string, nullable
    - `modality` string, nullable
    - `framework` string, nullable
    - `baseModel` string, nullable
    - `derivedFrom` string, nullable
    - `cardMetadata` object, nullable
    - `formats` string[]
    - `worksWith` string[]
    - `runtimeFit` object
    - `defaultDownloadBytes` number, nullable: Recorded bytes for the recommended weight file or complete weight set. Null when unknown; repository totals and parameter estimates do not establish this size.
    - `sizeBytes` number
    - `sizeKnown` boolean
    - `sizeLabel` string
    - `sizeReason` string
    - `declaredSizeBytes` number
    - `mirrorCount` number
    - `downloadCount` number
    - `stars` number
    - `citations` number
    - `updatedAt` string
    - `createdAt` string
    - `upstream` object, nullable
    - `hosting` object, nullable
    - `hostingStatus` string, required
    - `fileCount` number, required
    - `hostedFileCount` number
    - `externalFileCount` number
    - `sampleFiles` ArtifactFile[] (unresolved $ref)
    - `searchExplanation` object
    - `semanticScore` number
    - `semanticReasons` string[]
    - `semanticIntents` object[]
    - `trendingScore` number, required
    - `trendingReasons` string[], required
    - `signals` object, required
    - `urls` object, required
  - `topPages` object[]
  - `topDownloads` object[]
  - `topMirrorRequests` object[]
  - `topActions` object[]
  - `guidance` string[]

---

[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)
