@apicity/endless
Endless public social trends API provider.
Endless's public social endpoints need no key; its authenticated API is not covered. region is a slug from EndlessTikTokTrendsRegionSchema.options for TikTok trends or EndlessTrendsRegionSchema.options for X trends, and any other value is a 404 whose EndlessError.code is invalid_path_parameter. Every call sends Endless-Api-Version: 1 unless apiVersion names another major.
Runtime dependencies:
zod@^4.6.6— request schemas attached to endpoint methods as.schema
Installation
npm install @apicity/endless
# or
pnpm add @apicity/endless
Quick Start
import { createEndless } from "@apicity/endless";
const endless = createEndless();
API Reference
2 endpoints across 1 group. Each method mirrors an upstream URL path.
social
GET endless.social.tiktokTrends.public
GET https://api.endless.app/social/tiktok-trends/public/{region}
Cost tier: cheap
const trends = await endless.social.tiktokTrends.public({ region: "thailand" });
GET endless.social.trends.public
GET https://api.endless.app/social/trends/public/{region}
Cost tier: cheap
const trends = await endless.social.trends.public({ region: "worldwide" });
Part of the apicity monorepo.
License
MIT — see LICENSE.