Skip to content

BrandsResource

Defined in: sdks/trendyol/src/resources/brands.ts:30

Trendyol brand-list endpoint group.

Rate limit: 50 req/min (per Trendyol service limits).

Trendyol uses page-based pagination internally; we expose the cursor-based CursorPage shape from @lonca/core so callers can drive everything with paginate() and stay consistent across Lonca SDKs.

new BrandsResource(transport, limiter?): BrandsResource

Defined in: sdks/trendyol/src/resources/brands.ts:33

TrendyolTransport

TokenBucketRateLimiter

BrandsResource

list(params?): Promise<CursorPage<Brand>>

Defined in: sdks/trendyol/src/resources/brands.ts:51

List Trendyol brands, one page at a time.

CursorPaginationParams = {}

Promise<CursorPage<Brand>>

import { paginate } from '@lonca/core';
for await (const brand of paginate((p) => client.brands.list(p))) {
console.log(brand.id, brand.name);
}

search(name): Promise<Brand[]>

Defined in: sdks/trendyol/src/resources/brands.ts:82

Search brands by name. Useful when you need a brand’s numeric ID for createProducts and don’t want to page through the full list() (1000 brands per page).

Wire fact (verified STAGE 2026-05-25): Trendyol’s doc claims this is a case-sensitive exact match, but live behaviour is substring + case-insensitivesearch('Trendyol') returns 17 hits including TRENDYOLMILLA, trendyol vavist, Trendyol Üyelik. Plan for ranking your results client-side if you need an exact match. The endpoint returns an empty array when nothing matches (no 404).

string

The brand name to search for.

Promise<Brand[]>

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.