---
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> `/languages`

システムに設定された言語の一覧を取得するには、`/api/languages`に対してGETを送信します。

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

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

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

## クエリ パラメータ

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

## レスポンス

### 200

```json
{
  "languages": {
    "en": {
      "lang_id": "1",
      "lang_code": "en",
      "name": "English",
      "status": "D",
      "country_code": "US",
      "direction": "ltr"
    },
    "ja": {
      "lang_id": "2",
      "lang_code": "ja",
      "name": "日本語",
      "status": "A",
      "country_code": "JP",
      "direction": "ltr"
    }
  },
  "params": {
    "items_per_page": "10",
    "page": 1,
    "total_items": 2
  }
}
```

### 400

```json
{}
```

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