tys.products.list()
Newest first. Await for one page, or for await over every product.
list(params: ProductListParams = {}, options?: RequestOptions): PagePromise<ProductPage, Product>Parameters
Section titled “Parameters”paramsProductListParamsOptional= {}limit, cursor, and sku to find one product by SKU.
optionsRequestOptionsOptionalReturns
Section titled “Returns”PagePromise<ProductPage, Product>: Products, newest first. Await it for one page ({ data, has_more, next_cursor }), or for await over every item. See PagePromise.
Example
Section titled “Example”// One pageconst page = await tys.products.list({ limit: 50 });
// Every product, across pagesfor await (const p of tys.products.list()) { console.log(p.external_id, p.published_version);}
// One product by SKUconst { data } = await tys.products.list({ sku: "TEE-001" });page = tys.products.list(limit=50)
for product in tys.products.list().auto_paging_iter(): print(product["external_id"], product.get("published_version"))
match = tys.products.list(sku="TEE-001")curl "https://api.tryyoursize.com/v1/products?limit=50" \ -H "Authorization: Bearer $TRYYOURSIZE_SECRET_KEY" \ -H "TYS-Version: 2026-10-25"See also
Section titled “See also”Was this page helpful?
Thank you. We read every answer.