Trendyol product
One Trendyol product by link: id, name, brand, SKU, colour, category, price and currency, availability, number of other sellers, rating, rating and review counts, the attribute table, highlights, description, breadcrumbs and images. Also: brand id, favourites count, original price and discount, lowest_price_days (the price is the lowest of that many days), maximum installments, warranty (type, period), shipping (free flag, standard rate, fast-delivery hours, handling and transit days, cut-off time), the buy-box seller's score, city and logo (seller_info), every other seller's offer with price, score and delivery (offers), promotions, variants with stock and price, the category tree and links to similar products.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
urlrequired | string | A trendyol.com product link (/<brand>/<name>-p-<id>). Example: https://www.trendyol.com/apple/iphone-17-pro-max-256gb-abis-p-985256830 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/trendyol/v1/product?url=https%3A%2F%2Fwww.trendyol.com%2Fapple%2Fiphone-17-pro-max-256gb-abis-p-985256830" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trendyol/v1/product",
params={"url": "https://www.trendyol.com/apple/iphone-17-pro-max-256gb-abis-p-985256830"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/trendyol/v1/product");
url.searchParams.set("url", "https://www.trendyol.com/apple/iphone-17-pro-max-256gb-abis-p-985256830");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).