Xsolla-logo

Get game key for catalog

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

Gets a game key for the catalog.

SecurityAuthForClient
Request
path Parameters
project_id
required
integer

Project ID.

Example: 44056
item_sku
required
string

Item SKU.

Example: booster_mega_1
query Parameters
locale
string
Default: "en"

Response language. Two-letter lowercase language code per ISO 639-1.

additional_fields[]
Array of strings

The list of additional fields. These fields will be in the response if you send them in your request. Available fields media_list, order, long_description.

country
string
Default: "US"

Country to calculate regional prices and restrictions for catalog. Two-letter uppercase country code per ISO 3166-1 alpha-2. If you do not specify the country explicitly, it will be calculated based on user's IP address.

Responses
200

Game key was successfully received.

404

Game key not found.

Request samples
Response samples
application/json
{
  • "sku": "game_1",
  • "name": "Game name",
  • "groups": [
    ],
  • "type": "game_key",
  • "description": "Game description",
  • "attributes": {
    },
  • "is_free": false,
  • "price": {
    },
  • "virtual_prices": [ ],
  • "drm_name": "Steam",
  • "drm_sku": "steam",
  • "has_keys": true,
  • "is_pre_order": true,
  • "release_date": "2020-08-11T10:00:00+03:00"
}