Xsolla-logoXsolla Developers
または
パブリッシャーアカウントへ

カタログ用ゲームを取得するClient-side

get/v2/project/{project_id}/items/game/sku/{item_sku}

Gets a game for the catalog.

Note

This endpoint, accessible without authorization, returns generic data. However, authorization enriches the response with user-specific details for a personalized result, such as available user limits and promotions.
SecurityXsollaLoginUserJWT
Request
path Parameters
project_id
required
integer

プロジェクトID。このパラメータは、ドメインページのプロジェクト名の横にあります。

Example: 44056
item_sku
required
string
Default: "full_game_1"

アイテムSKU。

query Parameters
locale
string
Default: "en"

応答言語。ISO 639-1に基づく小文字の2文字言語コード。

additional_fields[]
Array of strings

追加フィールドのリスト。これらのフィールドは、リクエストの中で送信すると、応答に含まれます。

Items Enum: "media_list" "order" "long_description" "custom_attributes"
country
string

Two-letter uppercase country code per ISO 3166-1 alpha-2. Check the documentation for detailed information about countries supported by Xsolla and the process of determining the country.

Example: country=US
promo_code
string [ 1 .. 128 ] characters

大文字と小文字を区別する一意のコードです。文字と数字が含まれます。

Example: promo_code=WINTER2021
show_inactive_time_limited_items
integer
Default: 0

ユーザーに利用可能でない、期限付きアイテムを表示します。このようなアイテムの有効期間はまだ開始されていないか、すでに期限切れです。

Example: show_inactive_time_limited_items=1
Responses
200

ゲームは正常に受信されました。

404

ゲームが見つかりません。

Request samples
curl -i -X GET \
  'https://store.xsolla.com/api/v2/project/{project_id}/items/game/sku/{item_sku}?locale=en&additional_fields%5B%5D=media_list&country=US&promo_code=WINTER2021&show_inactive_time_limited_items=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'
Response samples
application/json
{
  • "attributes": [
    ],
  • "description": "Game description",
  • "groups": [
    ],
  • "name": "Game name",
  • "promotions": [ ],
  • "sku": "com.xsolla.game_1",
  • "type": "unit",
  • "unit_items": [
    ],
  • "unit_type": "game"
}