# Get public trending TikTok videos

`GET https://api.endless.app/social/tiktok-trends/public/{region}`

Source: https://endless.app/docs/api/social/public-tiktok-trends

The most played local videos in a country's TikTok trending feed over the last 24 hours, read from snapshots taken every few hours. Public, no authentication.

## Authentication

- `bearerAuth`: HTTP bearer (JWT)

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `region` | path | "argentina" \| "brazil" \| "canada" \| "chile" \| "colombia" \| "dominican-republic" \| "egypt" \| "indonesia" \| "japan" \| "malaysia" \| "mexico" \| "peru" \| "philippines" \| "saudi-arabia" \| "thailand" \| "turkey" \| "united-kingdom" \| "united-states" \| "venezuela" \| "vietnam" | yes |  |
| `Endless-Api-Version` | header | string | no | Pin the caller to an API major (`1`). Omit to accept the current version. A major this deployment cannot serve is refused with 400 `unsupported_api_version`. |

## Responses

### 200 OK

Content type: `application/json` — object

- `region` (string, required)
- `captured_at` (string | null, required)
- `videos` (array<object>, required)
  - `id` (string)
  - `url` (string)
  - `text` (string)
  - `category` (string)
  - `region` (string)
  - `created_at` (string)
  - `duration_seconds` (number)
  - `play_count` (number)
  - `like_count` (number)
  - `comment_count` (number)
  - `share_count` (number)
  - `save_count` (number)
  - `hashtags` (array<string>)
  - `music` (object)
    - `id` (string)
    - `title` (string)
    - `author` (string)
    - `original` (boolean)
  - `author` (object)
    - `id` (string)
    - `username` (string)
    - `nickname` (string)
    - `verified` (boolean)
  - `cover_url` (string)
- `longest` (array<object>, required)
  - `video` (object, required)
    - `id` (string)
    - `url` (string)
    - `text` (string)
    - `category` (string)
    - `region` (string)
    - `created_at` (string)
    - `duration_seconds` (number)
    - `play_count` (number)
    - `like_count` (number)
    - `comment_count` (number)
    - `share_count` (number)
    - `save_count` (number)
    - `hashtags` (array<string>)
    - `music` (object)
    - `author` (object)
    - `cover_url` (string)
  - `snapshots` (integer, required)
- `sounds` (array<object>, required)
  - `id` (string, required)
  - `title` (string)
  - `author` (string)
  - `video_count` (number)
  - `creators` (integer, required)
  - `original` (boolean, required)
- `hashtags` (array<object>, required)
  - `name` (string, required)
  - `video_count` (number)
  - `view_count` (number)
  - `creators` (integer, required)

### Errors

- `400` (Error): The request is malformed, or failed input validation. `message` names the field and the rule it broke; `data.issues` carries them individually.
- `401` (Error): No bearer token, or a token that failed verification.
- `402` (Error): The workspace has no credits left, or the caller is over a spending limit.
- `403` (Error): Authenticated, but the caller's role in this workspace does not carry the permission this operation needs.
- `404` (Error): No resource with that id, or the caller cannot read it. The two are deliberately one answer, so an id cannot be probed for existence.
- `409` (Error): The request is well-formed, but the resource's current state forbids it — a taken name, a last admin, a limit already reached.
- `429` (Error): The caller has spent its rate-limit window. `Retry-After` says when to come back.
- `500` (Error): The request failed on our side. Safe to retry an idempotent operation with backoff.
