最后更新
更新日志/search_products5 credits per call搜索商品
搜索或浏览 Trendyol 商品,每页 36 张商品卡片(剔除推广卡片后会少一些)。 q:搜索词(用土耳其语效果最好,例如 "telefon"、"elbise"、"kulaklık")。仅按 category_ids / brand_ids / merchant_id 浏览时可以为空("")。 page:页码,从 1 开始(是否还有下一页,看 has_next)。 cursor:要想翻页时不漏不重,请把上一次响应的 next_cursor 和 page+1 一起传入(网站的 无限滚动就是这样做的);不传 cursor 时,靠后的页可能会漏掉或重复几条自然搜索结果。 sort:relevance | price_asc | price_desc | newest | best_seller | most_favourite | most_rated。 include_sponsored:保留推广(广告)商品卡片,并以 sponsored=true 标记。 筛选条件(id 来自 get_search_filters): brand_ids:以逗号分隔的品牌 id,例如 "794"(Samsung)或 "794,101470"。 category_ids:以逗号分隔的类别 id,例如 "103498"(Cep Telefonu)。 min_price / max_price:价格区间,单位为 TL(0 = 不限)。 min_rating:商品最低评分,取值为 3、4 或 4.5。 free_shipping:只返回包邮商品。 merchant_id:只返回该 id 对应的卖家所售的商品(例如 968 = Trendyol)。 gender_ids:以逗号分隔,1 = 女士,2 = 男士,3 = 儿童。 color_ids:以逗号分隔的颜色 id(例如 3 = 白色/Beyaz)。 attributes:"attributeId|valueId",例如 "523|24664"(RAM = 4 GB);多个取值写作 "523|24664,24665"。 返回 {query, title, page, sort, total, total_text, has_next, next_cursor, applied_filters, products:[{id, name, brand, official_seller, category, price, original_price, discount_percent, promotions, currency, rating, rating_count, image, images, url, merchant_id, group_id, free_shipping, attributes, sponsored}]}。 total 受网站限制,上限为 100000。商品的 id 可传给 get_product 使用。
Authorization: Bearer <key> on every request.Parameters
Response fields
querye.g."telefon"titlee.g."telefon"pagee.g.1sorte.g."relevance"totale.g.100000total_texte.g."100.000+"has_nexte.g.truenext_cursore.g."Product_29,Ads_9,LastAdSlot_7"applied_filtersproducts
ide.g.1175412466namee.g."REDMI A7 Pro 4GB+128GB Mavi (Xiaomi Türkiye Garantili)"brande.g."Xiaomi"official_sellere.g.truecategorye.g."Android Cep Telefonu"pricee.g.10999original_pricediscount_percentpromotionscurrencye.g."TL"ratinge.g.4.14rating_counte.g.29imagee.g."https://cdn.dsmcdn.com/mnresize/400/-/ty1939/prod/QC_PREP/20260724/12/b052b8d8-b442-3640-b1b2-95106a5627d6/1_org_zoom.jpg"imagesurle.g."https://www.trendyol.com/xiaomi/redmi-a7-pro-4gb-128gb-mavi-xiaomi-turkiye-garantili-p-1175412466?boutiqueId=689770&merchantId=968"merchant_ide.g.968group_ide.g.902855791free_shippinge.g.falseattributes
Kamera Çözünürlüğüe.g."13 MP"RAM Kapasitesie.g."4 GB"sponsorede.g.falsecurl "https://api.maviapi.com/v1/sites/trendyol/search_products?q=telefon&page=1&sort=relevance&include_sponsored=true&min_price=0&max_price=0&min_rating=0&free_shipping=false&merchant_id=0" \-H "Authorization: Bearer $MAVI_KEY"
{
"query": "telefon",
"title": "telefon",
"page": 1,
"sort": "relevance",
"total": 100000,
"total_text": "100.000+",
"has_next": true,
"next_cursor": "Product_29,Ads_9,LastAdSlot_7",
"applied_filters": [
null
],
"products": [
{
"id": 1175412466,
"name": "REDMI A7 Pro 4GB+128GB Mavi (Xiaomi Türkiye Garantili)",
"brand": "Xiaomi",
"official_seller": true,
"category": "Android Cep Telefonu",
"price": 10999,
"original_price": null,
"discount_percent": null,
"promotions": [
null
],
"currency": "TL",
"rating": 4.14,
"rating_count": 29,
"image": "https://cdn.dsmcdn.com/mnresize/400/-/ty1939/prod/QC_PREP/20260724/12/b052b8d8-b442-3640-b1b2-95106a5627d6/1_org_zoom.jpg",
"images": [
"https://cdn.dsmcdn.com/mnresize/400/-/ty1939/prod/QC_PREP/20260724/12/b052b8d8-b442-3640-b1b2-95106a5627d6/1_org_zoom.jpg"
],
"url": "https://www.trendyol.com/xiaomi/redmi-a7-pro-4gb-128gb-mavi-xiaomi-turkiye-garantili-p-1175412466?boutiqueId=689770&merchantId=968",
"merchant_id": 968,
"group_id": 902855791,
"free_shipping": false,
"attributes": {
"Kamera Çözünürlüğü": "13 MP",
"RAM Kapasitesi": "4 GB"
},
"sponsored": false
}
]
}Get all the data, no code
Collect every page of GET /search_products into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use Trendyol API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of Trendyol API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=trendyol -- npx -y '@maviapi/mcp'Import Trendyol API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/trendyol/openapi.json - Postman
https://api.maviapi.com/v1/apis/trendyol/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
使用 Trendyol API 进行开发
选择一个端点开始
- 搜索商品
GET /search_products搜索或浏览 Trendyol 商品,每页 36 张商品卡片(剔除推广卡片后会少一些)。 q:搜索词(用土耳其语效果最好,例如 "telefon"、"elbise"、"kulaklık")。仅按 category_ids / brand_ids / merchant_id 浏览时可以为空("")。 page:页码,从 1 开始(是否还有下一页,看 has_next)。 cursor:要想翻页时不漏不重,请把上一次响应的 next_cursor 和 page+1 一起传入(网站的 无限滚动就是这样做的);不传 cursor 时,靠后的页可能会漏掉或重复几条自然搜索结果。 sort:relevance | price_asc | price_desc | newest | best_seller | most_favourite | most_rated。 include_sponsored:保留推广(广告)商品卡片,并以 sponsored=true 标记。 筛选条件(id 来自 get_search_filters): brand_ids:以逗号分隔的品牌 id,例如 "794"(Samsung)或 "794,101470"。 category_ids:以逗号分隔的类别 id,例如 "103498"(Cep Telefonu)。 min_price / max_price:价格区间,单位为 TL(0 = 不限)。 min_rating:商品最低评分,取值为 3、4 或 4.5。 free_shipping:只返回包邮商品。 merchant_id:只返回该 id 对应的卖家所售的商品(例如 968 = Trendyol)。 gender_ids:以逗号分隔,1 = 女士,2 = 男士,3 = 儿童。 color_ids:以逗号分隔的颜色 id(例如 3 = 白色/Beyaz)。 attributes:"attributeId|valueId",例如 "523|24664"(RAM = 4 GB);多个取值写作 "523|24664,24665"。 返回 {query, title, page, sort, total, total_text, has_next, next_cursor, applied_filters, products:[{id, name, brand, official_seller, category, price, original_price, discount_percent, promotions, currency, rating, rating_count, image, images, url, merchant_id, group_id, free_shipping, attributes, sponsored}]}。 total 受网站限制,上限为 100000。商品的 id 可传给 get_product 使用。
GET /search_products 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 page integer / query 否 sort string / query 否 include_sponsored boolean / query 否 brand_ids string / query 否 category_ids string / query 否 min_price number / query 否 max_price number / query 否 min_rating number / query 否 free_shipping boolean / query 否 merchant_id integer / query 否 gender_ids string / query 否 color_ids string / query 否 attributes string / query 否 cursor string / query 否 响应字段 字段 类型 说明 query string title string page integer sort string total integer total_text string has_next boolean next_cursor string applied_filters string[] products object[] products[].id integer products[].name string products[].brand string products[].official_seller boolean products[].category string products[].price integer products[].original_price null products[].discount_percent null products[].promotions string[] products[].currency string products[].rating number products[].rating_count integer products[].image string products[].images string[] products[].url string products[].merchant_id integer products[].group_id integer products[].free_shipping boolean products[].attributes object products[].attributes.Kamera Çözünürlüğü string products[].attributes.RAM Kapasitesi string products[].sponsored boolean - 获取商品详情
GET /get_productTrendyol 单件商品的完整详情。 product_id:商品(content)id,即 search_products / list_products 在 `id` 中返回的值, 或 trendyol.com 商品 URL 中 "-p-" 后面的数字。 merchant_id:可选,卖家 id,用于查看该卖家的报价;0 = 默认(buy-box)卖家。 include_description:同时以纯文本形式返回卖家的图文描述,并附其中的图片。 返回 {id, name, url, brand, category, category_path, web_category_path, images, rating, rating_count, review_count, favorite_count, in_stock, price, selling_price, original_price, discount_percent, currency, seller:{id, name, official_name, city, score}, free_shipping, variants:[{item_number, value, in_stock, price, barcode}], slicing_attributes, attributes{name: value}, other_sellers:[{id, name, score, price, free_shipping}], promotions, product_group_id, product_code, description, description_images}。商品没有描述(或描述未能加载)时,description 为 null。
GET /get_product 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 product_id integer / query 否 merchant_id integer / query 否 include_description boolean / query 否 响应字段 字段 类型 说明 id integer name string url string product_code string product_group_id integer brand string brand_id integer category string category_id integer category_path string web_category_path object[] web_category_path[].id integer web_category_path[].name string images string[] rating number rating_count integer review_count integer favorite_count integer in_stock boolean price integer selling_price integer original_price integer discount_percent integer currency string seller object seller.id integer seller.name string seller.official_name string seller.city string seller.score number free_shipping boolean variants object[] variants[].item_number integer variants[].value string variants[].in_stock boolean variants[].price integer variants[].barcode string slicing_attributes object slicing_attributes.DsmColor string slicing_attributes.Internal Memory string attributes object attributes.Ön Kamera Çözünürlüğü string attributes.Dahili Hafıza string attributes.Garanti Tipi string attributes.Kamera Çözünürlüğü string attributes.RAM Kapasitesi string attributes.Mobil Bağlantı Hızı string attributes.Suya/Toza Dayanıklılık string attributes.Yüz Tanıma string attributes.Kulaklık Girişi string attributes.Ana Kamera Flaş string attributes.Batarya Kapasitesi Aralığı string attributes.Dokunmatik Ekran string attributes.Ön Kamera Flaş string attributes.Şarj Hızı string attributes.Ekran Boyutu string attributes.Ekran Cinsi string attributes.Ekran Boyut Aralığı string attributes.Ekran Yenileme Hızı string attributes.Pil Gücü (mAh) string attributes.Cep Telefonu Modeli string attributes.Ön Kamera Sayısı string attributes.Ön Kamera Çözünürlük Aralığı string attributes.Görüntü Teknolojisi string attributes.Arka Kamera Sayısı string attributes.İşletim Sistemi string attributes.Çift Hat string attributes.Kablosuz Şarj string attributes.Garanti Süresi string attributes.Ana Kamera Çözünürlük Aralığı string attributes.Renk string attributes.NFC string attributes.Parmak İzi Okuyucu string attributes.Yapay Zeka string attributes.Menşei string attributes.Tamir Edilebilirlik string other_sellers object[] other_sellers[].id integer other_sellers[].name string other_sellers[].score number other_sellers[].price integer other_sellers[].free_shipping boolean promotions string[] description null description_images string[] - 获取商品问答
GET /get_product_questionsTrendyol 某件商品下已回答的用户提问(买家提出的问题和卖家的回答)。 product_id:商品 id,来自 search_products / get_product。 page:页码,从 1 开始;page_size:每页问题数(1-50)。 seller_id:只返回该卖家回答的问题;0 = 全部卖家。 返回 {product_id, page, total_pages, total, questions:[{id, question, asked_by, asked_at (ISO UTC), answer, seller, seller_id, answered_in}]}。
GET /get_product_questions 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 product_id integer / query 否 page integer / query 否 page_size integer / query 否 seller_id integer / query 否 响应字段 字段 类型 说明 product_id integer page integer total_pages integer total integer questions object[] questions[].id integer questions[].question string questions[].asked_by string questions[].asked_at string questions[].answer string questions[].seller string questions[].seller_id integer questions[].answered_in string - 获取类别
GET /get_categoriesTrendyol 的商品类别,可配合 search_products(category_ids=...) 按类别浏览。 parent_id:0 = 一级类别;否则传入某个类别 id,返回其子类别 以及各子类别当前的商品数量。 q:可选,搜索词;parent_id=0 时,改为返回与该搜索词匹配的类别。 返回 {parent_id, categories:[{id, name, product_count}]}(一级类别的 product_count 为 null)。
GET /get_categories 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 parent_id integer / query 否 q string / query 否 响应字段 字段 类型 说明 parent_id integer categories object[] categories[].id integer categories[].name string categories[].product_count null - 获取商品评论
GET /get_product_reviewsTrendyol 单件商品的用户评论,附评分汇总。 product_id:商品 id,来自 search_products / get_product。 page:页码,从 1 开始;page_size:每页评论数(1-50)。 sort:recommended(网站默认)| newest | oldest。 rating:只返回该星级(1-5)的评论;0 = 全部。 with_media:只返回带图片或视频的评论。 返回 {product_id, page, total_pages, average_rating, rating_count, review_count, rating_counts{star: n}, topics:[{name, count}], reviews:[{id, rating, comment, author, created_at (ISO UTC), likes, seller, media:[url], trusted}]}。
GET /get_product_reviews 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 product_id integer / query 否 page integer / query 否 page_size integer / query 否 sort string / query 否 rating integer / query 否 with_media boolean / query 否 响应字段 字段 类型 说明 product_id integer page integer total_pages integer average_rating number rating_count integer review_count integer rating_counts object rating_counts.1 integer rating_counts.2 integer rating_counts.3 integer rating_counts.4 integer rating_counts.5 integer topics object[] topics[].name string topics[].count integer reviews object[] reviews[].id integer reviews[].rating integer reviews[].comment string reviews[].author string reviews[].created_at string reviews[].likes integer reviews[].seller string reviews[].media string[] reviews[].trusted boolean - 获取搜索筛选条件
GET /get_search_filters某次搜索或某个类别列表下可用的筛选条件,附 id 和商品数量,可直接用于 search_products。 q:搜索词(仅按 category_ids / brand_ids 浏览时传 "")。 category_ids / brand_ids:可选,以逗号分隔的 id,用于缩小范围(用法与 search_products 相同)。 max_values:每个筛选组最多返回多少个取值(0 = 全部)。 返回 {total, filters:[{title, type, param, attribute_id, values:[{id, name, count, selected}]}]}。 `param` 指明应使用 search_products 的哪个参数:brand_ids、category_ids、gender_ids、color_ids、 min_rating、price(其 id 形如 "min-max",配合 min_price/max_price 使用)、merchant_badge、tag、toggle 或 attributes(传入 "attribute_id|value id")。param 为 "toggle"、"tag"、"merchant_badge" 或 "variants"(尺码)的筛选组仅供参考:search_products 没有对应的参数。
GET /get_search_filters 的参数和响应字段
请求参数 名称 类型 / 位置 必填 说明 q string / query 否 category_ids string / query 否 brand_ids string / query 否 max_values integer / query 否 响应字段 字段 类型 说明 query string total integer filters object[] filters[].title string filters[].type string filters[].param string filters[].attribute_id null filters[].values object[] filters[].values[].id string filters[].values[].name string filters[].values[].count integer filters[].values[].selected boolean
将 Trendyol 数据导出为 CSV
下面的每个列表都可以下载为 CSV 文件,每条记录一行。用上方控制台下面的 "Get all the data, no code" 卡片把列表收集到数据集中。数据集会逐页读取列表,之后可下载为 CSV、JSON 或 JSONL。
| 列表 | CSV 列 |
|---|---|
搜索商品GET /search_products | id, name, brand, official_seller, category, price, original_price, discount_percent, promotions, currency, rating, rating_count, image, images, url, merchant_id, group_id, free_shipping, attributes, sponsored |
获取商品问答GET /get_product_questions | id, question, asked_by, asked_at, answer, seller, seller_id, answered_in |
获取搜索筛选条件GET /get_search_filters | title, type, param, attribute_id, values |
嵌套的值(列表或对象)以 JSON 写入同一个单元格。 数据集和导出如何工作
Trendyol API 常见问题
能获取什么数据、费用多少、如何调用。
Trendyol 有官方 API 吗?
有,Trendyol 提供自己的 API:Trendyol Marketplace API(核实日期:2026-11-25)。本页的 Trendyol API 与它无关,是非官方 API:它是 maviapi 针对 trendyol.com 上的公开数据提供的独立托管 API,并非由 Trendyol 开发、认可或支持。
Trendyol API 可以获取哪些数据?
Trendyol API 有 6 个端点。每个端点都返回 JSON,参数和字段见上方的文档:
- GET
/search_products: 搜索或浏览 Trendyol 商品,每页 36 张商品卡片(剔除推广卡片后会少一些)。 - GET
/get_product: Trendyol 单件商品的完整详情。 - GET
/get_product_questions: Trendyol 某件商品下已回答的用户提问(买家提出的问题和卖家的回答)。 - GET
/get_categories: Trendyol 的商品类别,可配合 search_products(category_ids=...) 按类别浏览。 - GET
/get_product_reviews: Trendyol 单件商品的用户评论,附评分汇总。 - GET
/get_search_filters: 某次搜索或某个类别列表下可用的筛选条件,附 id 和商品数量,可直接用于 search_products。
Trendyol API 的价格是多少?
调用用您 maviapi 套餐中的积分支付,只有成功的调用才会计费。此 API 的每个端点每次调用消耗 5 个积分。在 Hobby 套餐下(每月 $49,含 250,000 个积分),1,000 次调用约 $0.98。失败的调用不收费。Free 套餐每月提供 1,000 个积分,无需信用卡。超出部分请查看套餐和积分价格。
如何调用 Trendyol API?
向端点发送 HTTPS 请求,并在 Authorization 请求头中带上您的 API 密钥。例如 GET /search_products:
curl 'https://api.maviapi.com/v1/sites/trendyol/search_products' \
-H "Authorization: Bearer $MAVI_KEY"在您的 API 密钥页面创建密钥,或者先在上方的控制台中用免费测试密钥试用任意端点。
以 JSON 获取 Trendyol 数据有哪些方式?
以 JSON 获取 Trendyol 数据的每种方式适合不同的需求:
- Trendyol Marketplace API: 需要写入权限、账号数据或与 Trendyol 签订协议时更合适。
- 自己写爬虫: 完全由自己掌控,不依赖任何服务商,但解析、被拦截的请求以及 trendyol.com 每次改版后的修复都要自己负责。更适合从很少变化的页面一次性获取数据。
- Apify: 一个 Actor 市场,Actor 由您自己运行,输入、输出和价格由各个 Actor 决定。当已有 Actor 能返回您需要的数据,或者您想托管自己的代码时更合适。参见maviapi 与 Apify 的对比。
- RapidAPI: 一个汇集了众多提供方 API 的平台,用一个 RapidAPI 密钥调用,每个 API 单独定价。当您已经在使用该平台,并且其中某个 API 能满足需求时更合适。来源:RapidAPI docs。
- maviapi: 本页的 Trendyol API:6 个带文档的端点、公开的响应结构,以及一个可用于整个目录的密钥。当这些数据是您产品的一部分,而您不想维护爬虫时更合适。
trendyol.com 改版后会怎样?
更新会破坏我的 Trendyol API 集成吗?
不会。您正在使用的端点,其结构永远不会改变:新的字段、可选参数和端点只会加在旁边,会破坏调用的变更则作为新端点发布。请忽略您不认识的响应字段,新内容请关注更新日志。
相关 API
- Amazon Türkiye API
在 Amazon Türkiye(amazon.com.tr)上搜索商品、浏览畅销榜,并获取商品详情(价格、库存状态、评分、规格)和用户评论。
- Hepsiburada API
来自 Hepsiburada(hepsiburada.com)的商品搜索列表:按搜索词返回商品名称、品牌、价格、评分和卖家(商家)。
- A101 API
A101 Kapıda(A101 的线上超市)的商品:名称、门店价格、折扣标签和库存,可按类别浏览。
- Tripadvisor API
来自 Tripadvisor 的行程规划数据:支持地点搜索,并可按地点(geo_id)获取景点、餐厅和酒店,包含评分、评论、价格和坐标。先用 /search 解析地名,再通过…