Skip to content

Get Categories List

Overview

GET /api/v2/product-tags/categories

This endpoint returns a list of Categories.

Request

Embedded Entities

The endpoint supports embedding related entities - for a detailed overview of how this works, please read API Overview.

Relation Entity Description
products Product The products associated with the Category
products.brand Brand The brand associated with the Product

Examples

Get all categories

/api/v2/product-tags/categories

{
    "current_page": 1,
    "data": [
        {
            "id": "a_category_id",
            "name": "lunch",
            "image_url": "",
            "type": "Category",
            "featured": 1,
            "products": [
                "a_product_id"
            ]
        }, {
            ...
        }
    ],
    "from": 1,
    "last_page": 1,
    "next_page_url": null,
    "path": "http://dev.api.huggg.me/api/v2/product-tags/categories?",
    "per_page": 20,
    "prev_page_url": null,
    "to": 1,
    "total": 1,
    "embedded": []
}