Trenz Open PlatformTrenz Open Platform
Trenz Home
Product
  • Trenz Home
  • Apply for API Key
Docs
  • Quick Start
  • API Reference
Resources
  • Billing
  • Error Codes
Contact
  • support@trenz.ai

© 2026 Trenz. All rights reserved. · One-stop API platform for social commerce

  • Overview
  • Trenz API
Quick StartBillingError Codes
Data
    ProductsSellersCreatorsCreativesVideosLivesAds
Content
    AI AnalysisAI CopywritingAI ImageAI VideoAvatarMaterial SearchTools
Social
    Account ManagementVideo PublishingVideo ManagementComment ManagementAnalyticsCreation ToolsTikTok Shop
Ads
    AccountsCampaignsLanding PagesLeads & Reports
Async TasksFile Upload
Trenz API

Quick Start

Make your first API call in 5 minutes.

Get your API Key

Visit trenz.ai or email us at support@trenz.ai to obtain an API Key (starts with sk_live_).

Your first request

Search TikTok for products related to "phone case":

TerminalCode
curl -X GET "https://openapi.gateway.trenz.ai/open/v1/products/search?keyword=phone%20case&country=us&sort=gmv_7d:desc&page=1&page_size=5" \ -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxx"

Example response:

Code
{ "data": { "items": [ { "id": "123456", "title": "Silicone Phone Case for iPhone 15", "price": 4.99, "sales": 52300, "country": "us" } ], "total_count": 1580 }, "request_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }

Code samples

Python

Code
import requests headers = { "Authorization": "Bearer sk_live_xxxxxxxxxxxxxxxx" } resp = requests.get( "https://openapi.gateway.trenz.ai/open/v1/products/search", headers=headers, params={"keyword": "phone", "country": "us", "page": 1, "page_size": 20} ) print(resp.json())

Node.js

Code
const resp = await fetch( "https://openapi.gateway.trenz.ai/open/v1/products/search?keyword=phone&country=us&page=1&page_size=20", { headers: { "Authorization": "Bearer sk_live_xxxxxxxxxxxxxxxx" } } ); const data = await resp.json(); console.log(data);

Authentication

MethodExample
Authorization headerAuthorization: Bearer sk_live_xxx
X-API-Key headerX-API-Key: sk_live_xxx

API keys must start with sk_live_, otherwise the API returns AUTH_INVALID_KEY. Treat your API key as a password and keep it secret.

Last modified on May 7, 2026
Billing
On this page
  • Get your API Key
  • Your first request
  • Code samples
    • Python
    • Node.js
  • Authentication
JSON
Javascript