{ "parameters": [ { "name": "sort", "description": "Sort by" }, { "name": "page", "description": "Page number" }, { "name": ":facet_name", "description": "Each facet setup on the category will have a corresponding parameter" } ], "response_fields": [ ], "requests": [ { "request_headers": { }, "request_query_parameters": { "page": "1", "sort": "price_desc" }, "response_headers": { "X-Frame-Options": "SAMEORIGIN", "X-XSS-Protection": "1; mode=block", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Permitted-Cross-Domain-Policies": "none", "Referrer-Policy": "strict-origin-when-cross-origin", "Date": "Wed, 27 Nov 2019 00:52:40 GMT", "Content-Type": "application/json; charset=utf-8", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Headers": "*", "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS", "X-Requested-With": "", "Vary": "X-Requested-With, X-Workarea-Segments", "Last-Modified": "Wed, 27 Nov 2019 00:52:40 GMT", "Cache-Control": "no-cache, no-store, must-revalidate", "X-Request-Id": "3cedf17c-4e2a-4c91-a615-152d726fd286", "X-Runtime": "0.033085", "X-Workarea-Segments": "", "Expires": "0", "Content-Length": "5026" }, "request_method": "GET", "request_path": "/api/storefront/categories/shirts?page=1&sort=price_desc", "request_body": null, "request_content_type": null, "response_status": 200, "response_status_text": "OK", "response_body": "{\n \"id\": \"5dddc8d71241596aa5204cb4\",\n \"name\": \"Shirts\",\n \"slug\": \"shirts\",\n \"url\": \"http://www.example.com/api/storefront/categories/shirts\",\n \"browser_title\": \"Home - Mens - Shirts\",\n \"meta_description\": \"Shop online for Workarea API products\",\n \"sorts\": [\n [\n \"Featured\",\n \"featured\"\n ],\n [\n \"Top Sellers\",\n \"top_sellers\"\n ],\n [\n \"Most Popular\",\n \"popularity\"\n ],\n [\n \"Newest\",\n \"newest\"\n ],\n [\n \"Price, Low to High\",\n \"price_asc\"\n ],\n [\n \"Price, High to Low\",\n \"price_desc\"\n ]\n ],\n \"sort\": \"price_desc\",\n \"breadcrumbs\": [\n {\n \"id\": \"5dddc8d71241596aa5204cba\",\n \"url\": \"/api/storefront/taxons/5dddc8d71241596aa5204cba\",\n \"name\": \"Home\",\n \"depth\": 0,\n \"navigable_url\": \"/\",\n \"parent_id\": null,\n \"parent_ids\": [\n\n ],\n \"position\": 0\n },\n {\n \"id\": \"5dddc8d71241596aa5204cb9\",\n \"url\": \"/api/storefront/taxons/5dddc8d71241596aa5204cb9\",\n \"name\": \"Mens\",\n \"depth\": 1,\n \"navigable_url\": null,\n \"parent_id\": \"5dddc8d71241596aa5204cba\",\n \"parent_ids\": [\n \"5dddc8d71241596aa5204cba\"\n ],\n \"position\": 0\n },\n {\n \"id\": \"5dddc8d71241596aa5204cbb\",\n \"url\": \"/api/storefront/taxons/5dddc8d71241596aa5204cbb\",\n \"name\": \"Shirts\",\n \"depth\": 2,\n \"navigable_url\": \"http://www.example.com/api/storefront/categories/shirts\",\n \"parent_id\": \"5dddc8d71241596aa5204cb9\",\n \"parent_ids\": [\n \"5dddc8d71241596aa5204cba\",\n \"5dddc8d71241596aa5204cb9\"\n ],\n \"position\": 0\n }\n ],\n \"content_blocks\": [\n {\n \"id\": \"5dddc8d81241596aa5204cbc\",\n \"type\": \"text\",\n \"area\": \"above_results\",\n \"data\": {\n \"text\": \"text\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"\\n\"\n },\n {\n \"id\": \"5dddc8d81241596aa5204cbd\",\n \"type\": \"text\",\n \"area\": \"below_results\",\n \"data\": {\n \"text\": \"text\"\n },\n \"hidden_breakpoints\": [\n\n ],\n \"position\": 0,\n \"html\": \"\\n\"\n }\n ],\n \"first_page\": true,\n \"second_page\": false,\n \"last_page\": true,\n \"page\": 1,\n \"next_page\": null,\n \"prev_page\": null,\n \"per_page\": 20,\n \"total_results\": 1,\n \"total_pages\": 1,\n \"facets\": [\n {\n \"type\": \"terms\",\n \"name\": \"Size\",\n \"display_name\": \"Size\",\n \"results\": [\n {\n \"name\": \"Small\",\n \"count\": 1\n },\n {\n \"name\": \"Medium\",\n \"count\": 1\n },\n {\n \"name\": \"Large\",\n \"count\": 1\n }\n ]\n }\n ],\n \"products\": [\n {\n \"id\": \"FE50321449\",\n \"name\": \"Sweet Shirt\",\n \"description\": null,\n \"slug\": \"sweet-shirt\",\n \"browser_title\": \"Sweet Shirt\",\n \"meta_description\": null,\n \"template\": \"generic\",\n \"customizations\": null,\n \"details\": {\n \"size\": [\n \"Small\"\n ],\n \"color\": [\n \"Red\"\n ]\n },\n \"digital\": false,\n \"filters\": {\n \"size\": [\n \"Small\",\n \"Medium\",\n \"Large\"\n ],\n \"color\": \"Blue\"\n },\n \"purchasable\": true,\n \"inventory_status\": \"\",\n \"variants\": [\n {\n \"id\": \"5dddc8d71241596aa5204cab\",\n \"name\": \"SKU\",\n \"sku\": \"SKU\",\n \"details\": {\n \"color\": [\n \"Blue\"\n ]\n }\n }\n ],\n \"sell_min_price\": null,\n \"sell_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"on_sale\": false,\n \"original_min_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"original_max_price\": {\n \"cents\": 200.0,\n \"currency_iso\": \"USD\"\n },\n \"images\": [\n {\n \"id\": \"5dddc8d71241596aa5204cac\",\n \"option\": \"Blue\",\n \"position\": 0,\n \"primary\": true,\n \"urls\": [\n {\n \"type\": \"small\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/small.jpg?c=0\"\n },\n {\n \"type\": \"medium\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/medium.jpg?c=0\"\n },\n {\n \"type\": \"small_thumb\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/small_thumb.jpg?c=0\"\n },\n {\n \"type\": \"medium_thumb\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/medium_thumb.jpg?c=0\"\n },\n {\n \"type\": \"large_thumb\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/large_thumb.jpg?c=0\"\n },\n {\n \"type\": \"detail\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/detail.jpg?c=0\"\n },\n {\n \"type\": \"zoom\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/zoom.jpg?c=0\"\n },\n {\n \"type\": \"super_zoom\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/super_zoom.jpg?c=0\"\n },\n {\n \"type\": \"favicon\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/favicon.jpg?c=0\"\n },\n {\n \"type\": \"favicon_ico\",\n \"url\": \"http://www.example.com/product_images/sweet-shirt/Blue/5dddc8d71241596aa5204cac/favicon_ico.jpg?c=0\"\n }\n ]\n }\n ]\n }\n ]\n}", "response_content_type": "application/json", "curl": "curl -g \"https://www.example.com/api/storefront/categories/shirts?page=1&sort=price_desc\" -X GET " } ], "resource": "Categories", "description": "Showing a category", "route": "/api/storefront/categories/:slug", "explanation": "

This endpoint includes everything you need to render a category,
\nincluding any associated content, products, and filters.

\n", "http_method": "GET" }