Get Category Details
Path Parameters
Category URL key/slug. The slug is URL-decoded and may be aliased to another category based on configuration.
Query Parameters
Platform identifier:
web: Web platform (action_source = 1)- Other values: Mobile/app (action_source = 2)
Category Aliases
Some categories have predefined aliases that redirect to other categories:- Check
settings.CAT_ALIASfor configured aliases - Example:
toys-and-action-figures→toys-and-video-games
Response
Category ID
Category name
Category URL slug
Parent category ID (0 if root category)
Parent category name
Category active status (1 = active, 0 = inactive)
Array of category banner objects filtered by country
Array of theme objects associated with this category
SEO meta title
SEO meta keywords
SEO meta description
Category footer text/description
Facebook pageview event ID (web platform only)
Banner Logic
- Country Filtering: Banners are filtered by country_id (default: “99” for India)
- Sale Period Handling: If current time is within sale_start_date and sale_end_date:
filenameis replaced withsale_imagemobile_imageis replaced withsale_mob_image
- Timezone: All date comparisons use Asia/Kolkata timezone
Category Hierarchy
Categories support parent-child relationships:parent_id = 0: Root categoryparent_id > 0: Child category (subcategory)parent_cat: Name of the parent category
Themes
Themes (tags/collections) associated with the category are included:- Only root themes (
parent_id = 0) are returned - Themes can be used to filter products within the category
Error Responses
- 404 Not Found: Category slug doesn’t exist or category is inactive
Get Categories Information
Response
Returns a structured object containing all active categories with their relationships and metadata.Array of category objects with full details
Get Mobile Cover Listing
Response
SEO metadata for mobile covers category
Object keyed by parent category ID, each containing subcategories
Implementation Details
- Queries categories where parent is “mobile-covers”
- Groups subcategories by parent category
- Limited to 500 results
- Sorted by parent and subcategory sort order
- Results are cached in long-term cache