@apicity/tiktok-creative-center

中文文档
0.27.1发布于 2026/11/07MITTypeScriptES Module近 30 天下载 1904

TikTok Creative Center trending videos provider (unofficial, undocumented endpoints).

原始使用文档
文档目录5 节
  1. Installation
  2. Quick Start
  3. API Reference
  4. ads
  5. License

@apicity/tiktok-creative-center

npm dependencies TypeScript docs

TikTok Creative Center trending videos provider (unofficial, undocumented endpoints).

These are unofficial, undocumented endpoints behind TikTok Creative Center's Trending videos page (https://ads.tiktok.com/creative/creativeCenter/trends/video), and TikTok can change or remove them without notice. They need no key. Without a TikTok One session every list holds the top 4 rows of page 1, whatever page and limit ask, and the client does not support a session cookie. TikTok sends item, author and creator ids as JSON numbers above 2^53, so itemID, authorID and creatorID come back as strings with every digit. Creative Center reports a failure as HTTP 200 with a nonzero BaseResp.StatusCode, which rejects with TiktokCreativeCenterError (statusCode). The overview reports the latest daily, weekly and monthly period ends, the values a list's periodEndTimestamp takes. A row's video page is https://www.tiktok.com/@<handlerName>/video/<itemID>; videoURL is a signed CDN link that expires.

Runtime dependencies:

  • zod@^4.6.6 — request schemas attached to endpoint methods as .schema

Installation

npm install @apicity/tiktok-creative-center
# or
pnpm add @apicity/tiktok-creative-center

Quick Start

import { createTiktokCreativeCenter } from "@apicity/tiktok-creative-center";

const tiktokCreativeCenter = createTiktokCreativeCenter();

API Reference

2 endpoints across 1 group. Each method mirrors an upstream URL path.

ads

GET tiktok-creative-center.ads.creativeOne.report.creativeCenterGetTopContentsList

GET https://ads.tiktok.com/CreativeOne/Report/CreativeCenterGetTopContentsList{query}

Cost tier: cheap

Upstream docs ↗

const top = await tiktokCreativeCenter.ads.creativeOne.report.creativeCenterGetTopContentsList({
  countryCode: "TH",
  periodDimension: 3,
  periodEndTimestamp: 1792886400,
  orderByMetric: 1,
});

Source: packages/provider/tiktok-creative-center/src/tiktokCreativeCenter.ts

GET tiktok-creative-center.ads.creativeOne.report.getTopContentsOverview

GET https://ads.tiktok.com/CreativeOne/Report/GetTopContentsOverview

Cost tier: cheap

Upstream docs ↗

const overview = await tiktokCreativeCenter.ads.creativeOne.report.getTopContentsOverview();

Source: packages/provider/tiktok-creative-center/src/tiktokCreativeCenter.ts

Part of the apicity monorepo.

License

MIT — see LICENSE.

版本与发布记录

@apicity/tiktok-creative-center 共发布 12 个版本,首次发布于 2026/10/29;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.27.1latest2026/11/071 天前
0.27.02026/11/062 天前
0.26.02026/11/053 天前
0.25.02026/11/035 天前
0.24.12026/11/026 天前
0.24.02026/11/016 天前

关于 @apicity/tiktok-creative-center 的常见问题

@apicity/tiktok-creative-center 是什么?

TikTok Creative Center trending videos provider (unofficial, undocumented endpoints).

如何安装 @apicity/tiktok-creative-center?

在项目目录运行 npm install @apicity/tiktok-creative-center,或使用 pnpm add / yarn add / bun add。

@apicity/tiktok-creative-center 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@apicity/tiktok-creative-center 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@apicity/tiktok-creative-center 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@apicity/tiktok-creative-center 可以商用吗?

@apicity/tiktok-creative-center 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@apicity/tiktok-creative-center 的下载量有多少?

根据 npm 官方下载统计,@apicity/tiktok-creative-center 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,904 次,日均约 63 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@apicity/tiktok-creative-center 还在维护吗?

最新版本 0.27.1 发布于 2026/11/07(1 天前);至今共发布 12 个版本,其中过去 12 个月发布了 12 个;首次发布于 2026/10/29。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。