Skip to content

Trendyol Categories API

Trendyol product categories, for browsing with search_products(category_ids=...). parent_id: 0 = the main departments; otherwise a category id, whose sub-categories are returned with their current product counts. q: optional search text; with parent_id=0 it returns the categories that match this search instead. Returns {parent_id, categories:[{id, name, product_count}]} (product_count is null for main departments).

GEThttps://api.maviapi.com/v1/sites/trendyol/get_categories5 credits per call

Parameters

NameRequiredExampleDescription
parent_idinteger in queryOptional0
qstring in queryOptionalNone

Response fields

parent_idintegere.g.0
categoriesobject[]3 fields
idintegere.g.82
namestringe.g."Giyim"
product_countnull

Example request

Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.

cURL
curl 'https://api.maviapi.com/v1/sites/trendyol/get_categories' \
  -H "Authorization: Bearer $MAVI_KEY"

Trendyol Categories API questions

What you get, what it costs and how to call it.

What does the Trendyol Categories API return?

Trendyol product categories, for browsing with search_products(category_ids=...). parent_id: 0 = the main departments; otherwise a category id, whose sub-categories are returned with their current product counts. q: optional search text; with parent_id=0 it returns the categories that match this search instead. Returns {parent_id, categories:[{id, name, product_count}]} (product_count is null for main departments). The response has parent_id and categories.

Which parameters does the Trendyol Categories API take?

Every parameter of GET /get_categories is optional. You can pass parent_id and q.

How much does one Trendyol Categories API call cost?

One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.

How do I call the Trendyol Categories API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/trendyol/get_categories with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.

Is the Trendyol Categories API official?

No. It is an independent, hosted API from maviapi for the public data on trendyol.com, and it is not made, endorsed or supported by Trendyol. Its parameters and response fields are documented on this page.