Skip to main content

Get attribute values

Gets the list of available values of the attribute

Function GetAttributeValues(Val ClientID, Val APIKey, Val CategoryID, Val TypeID, Val AttributeID, Val CatalogID = 1, Val Lang = "DEFAULT") Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
CategoryID--categoryidString, NumberCategory identifier
TypeID--typeidString, NumberItem type identifier
AttributeID--attributeidString, NumberAttribute IDs for obtaining values
CatalogID--startString, NumberID of the first catalog in the response
Lang--langStringResponse language: DEFAULT (Russian), RU, EN, TR (Turkish), ZH_HANS (Chinese))

Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API


tip

You can find out if there is a nested catalog by the GetCharacteristicsCategories method()

Method at API documentation: post /v1/description-category/attribute/values


1C:Enterprise/OneScript code example
    ClientID    = "2479669";
APIKey = "09f65e9f-262d-4aca...";
CategoryID = 17054869;
TypeID = 97311;
AttributeID = 85;

Result = OPI_Ozon.GetAttributeValues(ClientID, APIKey, CategoryID, TypeID, AttributeID);
    oint ozon GetAttributeValues \
--clientid "***" \
--apikey "***" \
--categoryid 17054869 \
--typeid 97311 \
--attributeid 85
Result
{
"result": [
{
"id": 5056737,
"value": "Essence",
"info": "Красота и здоровье",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/f73260bb-af9d-4a2f-a9e9-f89783cf2191.jpg"
},
{
"id": 5057962,
"value": "Hot",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/0ae303ad-ef55-4c34-948d-08f1c4ca1e61.jpg"
},
{
"id": 5058518,
"value": "CS",
"info": "",
"picture": ""
},
{
"id": 5059837,
"value": "Каскад",
"info": "Зоотовары",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/fd049f5a-6fb4-4ba2-9fde-159a21279e67.jpg"
},
{
"id": 5062537,
"value": "Enigma",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/7d409738-3ef1-4afa-b636-ccddffe77518.jpg"
},
{
"id": 5062790,
"value": "Kitfort",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/ca15a553-8d45-4784-b0d7-d58c8ba95b00.jpg"
},
{
"id": 5064843,
"value": "Parlux",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/128e2aa9-9933-4991-b52f-8c87d759d6e6.jpg"
},
{
"id": 5066816,
"value": "Carioca",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/5219a52f-cf16-44be-be9c-aa74858f4edd.jpg"
},
{
"id": 5068632,
"value": "Bawi",
"info": "",
"picture": ""
},
{
"id": 5069237,
"value": "Kodak",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/783fa6cc-b6ac-4857-ad4b-128bc3ecce5e.jpg"
},
{
"id": 5069442,
"value": "Mattel",
"info": "Детские игрушки",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/ac8c9fab-7cd3-4c95-bc09-8797aa2e4499.jpg"
},
{
"id": 5071003,
"value": "Ivo",
"info": "",
"picture": ""
},
{
"id": 5071289,
"value": "HTC",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/205966dd-9b29-4c78-ae7d-8d673a6c5dee.jpg"
},
{
"id": 5073069,
"value": "Ghost",
"info": "",
"picture": ""
},
{
"id": 5073089,
"value": "Oleg Cassini",
"info": "",
"picture": ""
},
{
"id": 5073356,
"value": "Ritzenhoff & Breker",
"info": "",
"picture": ""
},
{
"id": 5073389,
"value": "William Levene",
"info": "",
"picture": ""
},
{
"id": 5074417,
"value": "KEF",
"info": "",
"picture": ""
},
{
"id": 5074684,
"value": "Cutipol",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/6c20f672-894e-4efe-82b9-71b66b42e1f6.jpg"
},
{
"id": 5075889,
"value": "Jacob Zeidler & Co",
"info": "",
"picture": ""
},
{
"id": 5076255,
"value": "The Original Book Works Limited",
"info": "",
"picture": ""
},
{
"id": 5076787,
"value": "Ocean Extreme",
"info": "",
"picture": ""
},
{
"id": 5077287,
"value": "Народное искусство",
"info": "",
"picture": ""
},
{
"id": 5077379,
"value": "Zyliss",
"info": "",
"picture": ""
},
{
"id": 5078091,
"value": "VITEK",
"info": "Бытовая техника, Электроника",
...