Trendyol scraper API for AI agents and code
datawebot returns Trendyol search results and product pages as structured JSON, with the same fields for every shop: title, price, original price, availability, rating, image and link, plus details such as brand, variants and identifiers when a product page shows them. It runs from your AI agent over MCP or from code over REST on trendyol.com in United States, at 5 credits per search page and 1 per product page, and failed requests are free.
How Trendyol structures its product data: Trendyol data guide.
Fields you get
Every Trendyol product comes back in these fields; a field is null when the page doesn't show it. Each endpoint below also lists its raw record schema.
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
How to run it
From your agent, after connecting it once with the setup prompt (agent setup), ask in plain words:
Use datawebot to extract https://www.trendyol.com/sr?q=telefon and give me each product's title, price and link as JSON.From code, send one request with your API key. The answer has the same shape for every shop; if it says "status": "working", read it again with GET /v1/requests/{id}.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"endpoint","endpoint":"trendyol.search_items","url":"https://www.trendyol.com/sr?q=telefon","format":"structured"}'Search
Trendyol (www.trendyol.com, TR) keyword search (https://www.trendyol.com/sr?q=<keyword>): the first result page only (ordered SSR grid of up to 48 validated cards), up to max_products (1-36, default 36), no paging, filters or sorting. Product/boutique/merchant IDs, title, brand, displayed TRY price and comparison oldText (not proven historical/former), rating, category, card image and the advert/free-cargo flags. Availability, seller and in_stock stay null.
- ID
trendyol.search_items- Version
1- Price
- 5 credits / page
- State
- Available
- Typical time
- About 30 s (estimate)
What it does
Reads one search results page (or up to the page limit) and returns one record per product card, in page order. Works on www.trendyol.com; other hosts are rejected before anything runs.
Input
One page URL per request, shaped like https://www.trendyol.com/sr?q=telefon, plus these bounded parameters.
| Parameter | Type | Allowed | Default | Set in /v1/requests |
|---|---|---|---|---|
max_products | integer | 1–36 | 36 | POST /v1/jobs only |
Price
5 credits / page. Failed requests are free; a page that loaded but had nothing on it still costs credits. Set max_credits to refuse anything dearer before it runs.
Output
The default, "format": "structured". Every shop answers in the same fields, mapped from the page to the product_summary@1 schema. Fields are null when the page doesn't show them, and a record that can't be mapped is read best-effort from its raw fields. Products are in products, up to 50 a page; follow next_cursor with GET /v1/requests/{id} (MCP: get_results).
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
{
"request_id": "string",
"status": "done",
"products": [
{
"product_id": "string or null",
"title": "string",
"url": "string or null",
"shop": "string or null",
"price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"original_price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"rating": "number or null",
"review_count": "integer or null",
"image_url": "string or null",
"availability": "string or null",
"sponsored": "boolean or null"
}
],
"next_cursor": "string or null",
"meta": {
"as_of": "date-time",
"country": "string",
"credits_used": "integer",
"credits_left": "integer"
}
}Over the Jobs API, GET /v1/jobs/{id}/results?format=structured returns the full product_summary@1 records.
With "format": "raw", the answer keeps the structured fields and adds raw: this endpoint's own records, unchanged, one per item, in the schema below. It is the data the endpoint extracted from the page, not the page's HTML. Same price as structured.
| Field | Type | Description |
|---|---|---|
ordinal | integer required | 1-based order within the single-result grid |
page | 1 required | — |
product_id | string required | Product id from the card URL and card identity |
url | string (uri) required | Absolute product URL of the card |
title | string required | Card name |
brand | string required | Card brand name |
brand_id | string or null required | brandId as sent |
price | string required | Current TRY price, plain decimal string from the Turkish display text |
price_raw | string required | Turkish display text as sent (11.999 / 1.662,21) |
comparison_price | string or null required | Comparison amount from oldText, when strictly higher; not proven historical/former price |
comparison_price_raw | string or null required | Comparison oldText as sent; not a historical-price label |
currency | "TRY" required | Storefront currency code |
currency_symbol | "TL" required | Storefront currency symbol |
sponsored | boolean required | True when the card carries an advertId |
rating_average | string or null required | Average rating as sent; null when absent |
rating_count | integer or null required | Total rating count |
category | string or null required | Card category name |
category_id | string or null required | Card category id |
image_url | string required | Card image on the Trendyol CDN |
free_cargo | boolean required | Free-cargo flag as sent |
merchant_id | string required | merchantId query parameter |
boutique_id | string required | boutiqueId query parameter |
availability_raw | null required | Not sent by the search grid |
seller | null required | Not sent by the search grid |
in_stock | null required | Not sent by the search grid |
{
"ordinal": "integer",
"page": 1,
"product_id": "string",
"url": "string (uri)",
"title": "string",
"brand": "string",
"brand_id": "string or null",
"price": "string",
"price_raw": "string",
"comparison_price": "string or null",
"comparison_price_raw": "string or null",
"currency": "TRY",
"currency_symbol": "TL",
"sponsored": "boolean",
"rating_average": "string or null",
"rating_count": "integer or null",
"category": "string or null",
"category_id": "string or null",
"image_url": "string",
"free_cargo": "boolean",
"merchant_id": "string",
"boutique_id": "string",
"availability_raw": null,
"seller": null,
"in_stock": null
}Raw needs this endpoint: a search with format: "raw" doesn't fall back to shopping search, and answers raw_unavailable where no endpoint can run. Over the Jobs API, results are raw by default; format=both gives each raw record with its structured form.
Request
Run exactly this endpoint with capability: "endpoint"; there is no fallback, and a failed run is free. Set format to "raw" for the raw records too. For a keyword instead of a URL, search_products with this shop as site builds the search URL, tries the shop's endpoint first and then shopping search.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"endpoint","endpoint":"trendyol.search_items","url":"https://www.trendyol.com/sr?q=telefon","format":"structured"}'submit_job {
"endpoint": "trendyol.search_items",
"url": "https://www.trendyol.com/sr?q=telefon",
"format": "structured"
}If the answer says "status": "working", read it again with GET /v1/requests/{id} (MCP: get_results) after check_after_seconds.
Product details
One Trendyol (TR) product page in the URL form Search returns (/<brand>/<slug>-p-<id>?boutiqueId=<boutique>&merchantId=<merchant>): title, brand, description, GTIN barcode, displayed TRY price equal to the JSON-LD offer price, stock, rating counts, category, gallery images and merchant/boutique identity. Only the page-selected winner barcode is returned; no caller variant or size selection. Evidenced InStock pages only; unknown stock shapes fail closed.
- ID
trendyol.product_details- Version
1- Price
- 1 credit / page
- State
- Available
- Typical time
- About 30 s (estimate)
What it does
Reads one product page and returns that product. Works on www.trendyol.com; other hosts are rejected before anything runs.
Input
One page URL per request, shaped like https://www.trendyol.com/samsung/galaxy-a17-4-128-gb-siyah-cep-telefonu-p-975557855?boutiqueId=689770&merchantId=968.
Price
1 credit / page. Failed requests are free; a page that loaded but had nothing on it still costs credits. Set max_credits to refuse anything dearer before it runs.
Output
The default, "format": "structured". Every shop answers in the same fields, mapped from the page to the product@1 schema. Fields are null when the page doesn't show them, and a record that can't be mapped is read best-effort from its raw fields. The product is in product.
| Field | Type | Description |
|---|---|---|
product_id | string or null | Opaque id. Pass it to get_product (or capability "product") to read the product again. |
title | string | Product title as the shop shows it. |
url | string or null | The product page on the shop. |
shop | string or null | The shop’s hostname, without www. |
price | object or null | amount (number), currency (ISO 4217, or null when the shop doesn’t say) and text (the shop’s own wording when it is the same amount, else null). |
original_price | object or null | The price before a discount, in the same shape as price. |
rating | number or null | Average rating, on the shop’s own scale. |
review_count | integer or null | Number of reviews or ratings. |
image_url | string or null | Main product image. |
availability | string or null | in_stock, out_of_stock, or the shop’s own stock wording. |
sponsored | boolean or null | true for an ad the shop marks as sponsored; null when the page doesn’t say. |
product.details, when the shop's page maps to product@1:
| Field | Type | Description |
|---|---|---|
brand | string or null | Brand as the page names it. |
category_path | array of strings | Breadcrumb categories, top first. |
description | string or null | Plain-text description. |
feature_bullets | array of strings | Listed features. |
price_min, price_max | number or null | Lowest and highest variant price. |
discount_label | string or null | Discount wording, such as "-20%". |
stock | integer or null | Units in stock, when the page shows a number. |
sold_count, sold_count_basis | integer or null; "total", "monthly" or null | Units sold, and whether that is a total or per month. |
identifiers | array of {type, value} | asin, parent_asin, walmart_item_id, gtin, mpn, isbn or source_sku. |
specs_raw | array of {name, value} | The specification table as shown. |
images, image_count | array of {url, alt}; integer | Every product image. |
option_names | array of strings | Option names such as Size or Colour. |
variants, variant_count | array (100 per answer; next_cursor reads the rest); integer or null | Each variant: id, name, options, sku, final_price, price_before_discount, discount_label, available, stock, image_url. |
seller | object or null | id, name, url and type (official or marketplace). |
rating_scale | number or null | The top of the rating scale, such as 5. |
warnings | array of strings | Fields the page didn’t give, such as currency_missing. |
{
"request_id": "string",
"status": "done",
"product": {
"product_id": "string or null",
"title": "string",
"url": "string or null",
"shop": "string or null",
"price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"original_price": {
"amount": "number",
"currency": "string or null",
"text": "string or null"
},
"rating": "number or null",
"review_count": "integer or null",
"image_url": "string or null",
"availability": "string or null",
"sponsored": "boolean or null",
"details": {
"brand": "string or null",
"variants": [
"…"
],
"…": "…"
}
},
"meta": {
"as_of": "date-time",
"country": "string",
"credits_used": "integer",
"credits_left": "integer"
}
}Over the Jobs API, GET /v1/jobs/{id}/results?format=structured returns the full product@1 records.
With "format": "raw", the answer keeps the structured fields and adds raw: this endpoint's own records, unchanged, one per item, in the schema below. It is the data the endpoint extracted from the page, not the page's HTML. Same price as structured.
| Field | Type | Description |
|---|---|---|
product_id | string required | Product id from the requested URL |
url | string (uri) required | The requested product URL, as Search returns it |
title | string required | Product name |
brand | string required | Brand name |
brand_id | string or null required | brandId as sent |
description | string or null required | Product JSON-LD description |
sku | string required | Equal to product_id |
barcode | string or null required | Selected winnerVariant barcode only; null when absent; never borrowed from another variant |
price | string required | Displayed TRY price, equal to the JSON-LD offer price, 2 decimals |
price_raw | string required | Turkish display text as sent (11.999 TL) |
currency | "TRY" required | JSON-LD offer priceCurrency |
currency_symbol | "TL" required | Storefront currency symbol |
availability_raw | string or null required | JSON-LD offer availability (https://schema.org/InStock) |
in_stock | true required | The exact requested product page, in stock |
rating_average | string or null required | Average rating as a decimal string, or null when unrated |
rating_count | integer or null required | Total rating count |
review_count | integer or null required | Comment count |
category | string or null required | Product category name |
category_id | string or null required | Product category id |
image_urls | array required | Gallery images on the Trendyol CDN |
image_count | integer required | Number of image_urls |
merchant_id | string required | merchantId query parameter, matching the storefront merchant |
boutique_id | string required | boutiqueId query parameter matching shared merchantListing.campaign.id |
seller | string required | Merchant name |
color | string or null required | Color name as sent |
{
"product_id": "string",
"url": "string (uri)",
"title": "string",
"brand": "string",
"brand_id": "string or null",
"description": "string or null",
"sku": "string",
"barcode": "string or null",
"price": "string",
"price_raw": "string",
"currency": "TRY",
"currency_symbol": "TL",
"availability_raw": "string or null",
"in_stock": true,
"rating_average": "string or null",
"rating_count": "integer or null",
"review_count": "integer or null",
"category": "string or null",
"category_id": "string or null",
"image_urls": "array",
"image_count": "integer",
"merchant_id": "string",
"boutique_id": "string",
"seller": "string",
"color": "string or null"
}Over the Jobs API, results are raw by default; format=both gives each raw record with its structured form.
Request
Read a product page with capability: "product"; it runs this endpoint for the page's shop. Set format to "raw" for the raw records too.
curl https://api.datawebot.com/v1/requests \
-H "Authorization: Bearer $DATAWEBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"capability":"product","url":"https://www.trendyol.com/samsung/galaxy-a17-4-128-gb-siyah-cep-telefonu-p-975557855?boutiqueId=689770&merchantId=968","format":"structured"}'get_product {
"url": "https://www.trendyol.com/samsung/galaxy-a17-4-128-gb-siyah-cep-telefonu-p-975557855?boutiqueId=689770&merchantId=968",
"format": "structured"
}If the answer says "status": "working", read it again with GET /v1/requests/{id} (MCP: get_results) after check_after_seconds.
Limits
- One page URL per request, on trendyol.com only; other hosts are rejected before anything runs.
- Prices and stock are read when the request runs (
meta.as_of); datawebot keeps no price history, so schedule and store repeat reads yourself. - Fields the page doesn't show come back null; nothing is filled in or guessed.
- Up to 30 requests a minute per account.
Questions about the Trendyol scraper API
Does Trendyol have an official API?
datawebot does not use one. It reads Trendyol's pages and returns them as structured JSON, so you need no Trendyol developer account or partner key. Whether Trendyol offers its own API, and on what terms, is for Trendyol to say.
Can I scrape Trendyol with Python?
Yes. Send the POST /v1/requests call shown on this page from Python with any HTTP client, such as requests or httpx: the same JSON body, with your API key in the Authorization header. The products come back in the answer's products field (product for a product page).
Is it legal to scrape Trendyol?
It depends on where you are, Trendyol's terms and what you do with the data. You stay responsible for how you use what datawebot returns. This is not legal advice; read our guide to robots.txt and legal considerations, and ask a lawyer about your case.
What does a Trendyol scraper API call cost?
5 credits per search page and 1 per product page. Failed requests are free; a page that loaded but had nothing on it still costs credits. Every account starts with 200 free credits, and credit packs start at 10,000 credits for $10, with no subscription.
Start with 200 free credits
Connect your agent with one setup prompt, or create an API key, and run Trendyol requests right away. No card and no subscription.
Connect your agent See pricing