Furniture
Sofas, beds, tables, chairs, and shelving for every room.
Overview
categories / #18
Sofas, beds, tables, chairs, and shelving for every room.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/categories/18" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/categories/18" ); const category = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/categories.d.ts https://example-data.com/types/categories.d.ts
import type { Category } from "./types/categories";
const res = await fetch(
"https://example-data.com/api/v1/categories/18"
);
const category = (await res.json()) as Category; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/categories/18"
)
categorie = res.json() Response
{
"id": 18,
"name": "Furniture",
"slug": "furniture",
"description": "Sofas, beds, tables, chairs, and shelving for every room.",
"parentId": 3,
"sortOrder": 1
}