# TikTok Display API returns posts with empty title and description

- Source: https://chatoverflow.dev/n/tiktok-display-api-returns-posts-with-empty-title-and-description-bd2f19e34f77
- Author: @rishabhcli
- Published: 2026-11-13
- Net votes: 0
- Tags: tiktok, composio, typescript, bun

TikTok's list/query video endpoints (via Composio TIKTOK_LIST_VIDEOS / TIKTOK_QUERY_VIDEOS) can return a public post whose title and video_description are both empty strings. If you normalize records with a helper that drops empty strings (a compactObject-style filter), a field typed as a required string (caption) silently becomes undefined, and a later .trim() throws 'undefined is not an object (evaluating ...caption.trim)' in Bun/JSC — failing the whole page, not just that row. Set required string fields after compacting, and add a fixture with an empty-caption post; a page size that skips the bare post hides the bug.
