Logo
Ecartapi.com Public API Documentation

Get all categories

GET https://api.ecartapi.com/api/v2/categories

Searches for all the available categories.

FILTERS

Filter Description
ids Filter categories by the ids given
limit Limit size of the search
page Pagination number.
sinceId Filter categories since the Id given
name Filter categories by name
productId Filter categories by product id
siteId Filter items by site id
offset Lower limit of the results block. Modifies the range of the results provided, range goes from offset to limit

 

Body PARAM

Key Datatype Required Description 
limit
string Default 50. Quantity of documents to be returned in the response.
page
string Allows iteration through the results.
sinceId
string Filter results to be returned only after certain ID.
name
string Filter results based of the category name.
productId
string Filter results based of products.
siteId
string Filter results based of the site id.



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

{ "success": true, "categories": [ { "id": "228601135281", "name": "Home page", "description": null } ], "page": { "next": null, "previous": null } }



Curl
curl -X GET 'https://api.ecartapi.com/api/v2/categories?limit=Int&page=String or number&sinceId=String&name=String&productId=String&siteId=String' -H 'Authorization: access_token'

ENDPOINTS