Clothing & Apparel
Men's, women's, and children's clothing, shoes, and accessories.
Overview
categories / #2
Men's, women's, and children's clothing, shoes, and accessories.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/categories/2" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/categories/2" ); 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/2"
);
const category = (await res.json()) as Category; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/categories/2"
)
categorie = res.json() Response
{
"id": 2,
"name": "Clothing & Apparel",
"slug": "clothing-apparel",
"description": "Men's, women's, and children's clothing, shoes, and accessories.",
"parentId": null,
"sortOrder": 2
}