---
title: "カテゴリーの一覧"
---

> Documentation Index
> Fetch the complete documentation index at: https://apidocs.cs-cart.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# カテゴリーの一覧

<span class="api-method api-method-get">`GET`</span> `/categories`

システムに設定されたカテゴリーの一覧を取得するには、`/api/categories`に対してGETを送信します。

## リクエスト：ヘッダー

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Basic <認証情報>`     |

> **認証情報について**
>
> 認証情報は、ユーザーのEメールアドレスとAPIキーをコロンで連結したものをBase64エンコードしたものです。

## PATH パラメータ

| Name             | Type    | 説明          | デフォルト値 |
| ---------------- | ------- | ----------- | ------ |
| `page`           | integer | ページ番号       | 1      |
| `items_per_page` | integer | 1ページあたりの表示数 | 10     |

## レスポンス

### 200

```json
{
  "categories": [
    {
      "category_id": "242",
      "parent_id": "241",
      "id_path": "241/242",
      "category": "Blu-rayソフト",
      "position": "10",
      "status": "A",
      "product_count": "5",
      "company_id": "1",
      "seo_name": "blu-ray",
      "seo_path": "241"
    },
    {
      "category_id": "235",
      "parent_id": "234",
      "id_path": "166/234/235",
      "category": "iPhone",
      "position": "10",
      "status": "A",
      "product_count": "3",
      "company_id": "1",
      "seo_name": "iphone",
      "seo_path": "166/234"
    },
    {
      "category_id": "212",
      "parent_id": "211",
      "id_path": "203/211/212",
      "category": "ゴルフクラブ",
      "position": "10",
      "status": "A",
      "product_count": "4",
      "company_id": "1",
      "seo_name": "category-212",
      "seo_path": "203/211"
    }
  ],
  "params": {
    "category_id": 0,
    "visible": false,
    "current_category_id": 0,
    "simple": false,
    "plain": true,
    "limit": 0,
    "item_ids": "",
    "group_by_level": false,
    "get_images": false,
    "category_delimiter": "/",
    "get_frontend_urls": false,
    "max_nesting_level": null,
    "get_company_name": false,
    "items_per_page": 10,
    "page": 1,
    "sort_order": "asc",
    "sort_by": "position",
    "sort_order_rev": "desc",
    "total_items": "83"
  }
}
```

### 400

```json
{}
```

Source: https://apidocs.cs-cart.jp/categories/api-categories-list/index.mdx
