Trendyol API
Trendyol data, as structured JSON.
Three ready-made Trendyol scrapers: search results by keyword or barcode, every listing of a store, and one product with the price of every seller that offers it.
Scripts:trendyol_searchtrendyol_store_productstrendyol_product_detail
Example
One request, one response.
Every scraper runs through POST /v1/run with your key in the x-api-key header.
In the response, values in <angle brackets> stand for real data and arrays are shortened to one item.
curl -X POST https://api.datafor.dev/v1/run \
-H "Content-Type: application/json" \
-H "x-api-key: $DATAFOR_API_KEY" \
-d '{
"script_name": "trendyol_search",
"params": {
"query": "kahve makinesi",
"pages": 1,
"sort": "BEST_SELLER"
}
}'Capabilities
What it does today.
Search by keyword or barcode
LiveUp to 3 result pages per run with rank, title, brand, price, original price, rating and merchant id.
Seven sort orders
LiveRelevance, price up or down, newest, best seller, most favourited or most rated.
Store listings
LiveEvery listing of a store by merchant id or store URL, up to 3 pages per run.
Per-seller prices
LiveOne product with the buybox price, stock and free-shipping flag of every seller that offers it.
Price summary
LiveCheapest and most expensive price across the listings, and the winning and lowest offer for a product.
Category pages and price alerts
Coming soonCategory URLs and built-in monitoring are planned. Today, call the API from your own scheduler.
Credits
How credits work.
1 credit per run for each of the three scripts.
Each run is charged when it starts. If the worker fails or times out, the credit is refunded automatically and the run is marked as refunded. Every response shows the cost and your remaining balance.
At one credit per run, 1,000 runs cost from $0.38 on a paid plan. Price per 1,000 runs by plan
See pricingFAQ
Questions about Trendyol API.
Does it work with Trendyol product URLs?
Yes. trendyol_product_detail takes a product id or a full product URL; trendyol_store_products takes a merchant id or a store URL.
Which currency are prices in?
Turkish lira (TRY), as shown on trendyol.com.
Is there a Turkish page?
Yes: datafor.dev/tr/trendyol-api explains the same API in Turkish.
Related
Other products.
Run your first Trendyol API call.
50 free credits to start, after email verification. No credit card.