Skip to main content
GET
/
products
curl -X GET https://api.kiototeteria.com/products?page=1&pageSize=10
{
  "data": [
    {
      "id": 1,
      "name": "Matcha Green Tea",
      "slug": "matcha-green-tea",
      "description": "Premium organic matcha green tea from Japan",
      "price": "12.99",
      "isActive": true,
      "categoryId": 1,
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": 2,
      "name": "Jasmine Tea",
      "slug": "jasmine-tea",
      "description": "Fragrant jasmine tea with delicate floral notes",
      "price": "9.99",
      "isActive": true,
      "categoryId": 1,
      "createdAt": "2024-01-14T09:20:00Z",
      "updatedAt": "2024-01-14T09:20:00Z"
    }
  ],
  "meta": {
    "total": 25,
    "page": 1,
    "pageSize": 10,
    "totalPages": 3
  }
}

Query Parameters

page
number
Page number for pagination (default: 1)
pageSize
number
Number of items per page (default: 10)

Response

data
Product[]
Array of product objects
meta
object
Pagination metadata
curl -X GET https://api.kiototeteria.com/products?page=1&pageSize=10
{
  "data": [
    {
      "id": 1,
      "name": "Matcha Green Tea",
      "slug": "matcha-green-tea",
      "description": "Premium organic matcha green tea from Japan",
      "price": "12.99",
      "isActive": true,
      "categoryId": 1,
      "createdAt": "2024-01-15T10:30:00Z",
      "updatedAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": 2,
      "name": "Jasmine Tea",
      "slug": "jasmine-tea",
      "description": "Fragrant jasmine tea with delicate floral notes",
      "price": "9.99",
      "isActive": true,
      "categoryId": 1,
      "createdAt": "2024-01-14T09:20:00Z",
      "updatedAt": "2024-01-14T09:20:00Z"
    }
  ],
  "meta": {
    "total": 25,
    "page": 1,
    "pageSize": 10,
    "totalPages": 3
  }
}

Build docs developers (and LLMs) love