Search attribute value
Gets the reference values of the attribute by the specified value
Function SearchAttributeValue(Val ClientID, Val APIKey, Val CategoryID, Val TypeID, Val AttributeID, Val Value) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ClientID | --clientid | String | ✔ | Client identifier |
APIKey | --apikey | String | ✔ | API key |
CategoryID | --categoryid | String, Number | ✔ | Category identifier |
TypeID | --typeid | String, Number | ✔ | Item type identifier |
AttributeID | --attributeid | String, Number | ✔ | Attribute IDs for obtaining values |
Value | --value | String | ✔ | Search value |
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/search
1C:Enterprise/OneScript code example
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
CategoryID = 17054869;
TypeID = 97311;
AttributeID = 85;
Value = "Sunshine";
Result = OPI_Ozon.SearchAttributeValue(ClientID
, APIKey
, CategoryID
, TypeID
, AttributeID
, Value);
- Bash
- CMD/Bat
oint ozon SearchAttributeValue \
--clientid "***" \
--apikey "***" \
--categoryid 17054869 \
--typeid 97311 \
--attributeid 85 \
--value "Sunshine"
oint ozon SearchAttributeValue ^
--clientid "***" ^
--apikey "***" ^
--categoryid 17054869 ^
--typeid 97311 ^
--attributeid 85 ^
--value "Sunshine"
Result
{
"result": [
{
"id": 5055881,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/ddf21fd5-fd7f-4c65-9ec9-c6c68db7b80a.jpg"
},
{
"id": 971026862,
"value": "SUNSHINE",
"info": "Спорт и отдых",
"picture": ""
},
{
"id": 971719299,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/07f9f8a2-f22d-4d4c-8df3-3c3cef5fdffb.jpg"
},
{
"id": 971818888,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/5527aaf5-310f-4701-99d1-b940152e27bd.jpg"
},
{
"id": 972176200,
"value": "sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/e6dcf5aa-eb30-442d-afa0-5812652d2816.png"
},
{
"id": 972202223,
"value": "SUNSHINE",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/68384d8e-4b49-4f99-a045-3403c1f10f0f.jpg"
},
{
"id": 972209240,
"value": "SUNSHINE",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/a7cf1512-ce39-48bf-97f2-71ecc4af098f.jpg"
},
{
"id": 972832148,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/bb95cb89-da69-487d-bdd9-e5e749eee8b5.jpg"
},
{
"id": 971227292,
"value": "Sunshine Baby",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/1d102d56-f0c3-47ba-8b55-121b9ca598cf.jpg"
},
{
"id": 972029069,
"value": "Sunshine Beams",
"info": "",
"picture": ""
},
{
"id": 971168926,
"value": "Sunshine-Craft",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/d12e225d-bcba-433b-be9d-039937a6de43.jpg"
},
{
"id": 972173064,
"value": "Sunshine Day",
"info": "",
"picture": ""
},
{
"id": 970974258,
"value": "sunshinefilm",
"info": "Защитная пленка на экран смартфона, гидрогелевая",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/30f95bc7-c975-43a6-b72d-5f9c18f4d409.jpg"
},
{
"id": 972831741,
"value": "Sunshine Fishing",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/6c2ad517-66a2-4832-8ab3-c677abf3c04d.jpg"
},
{
"id": 972066951,
"value": "SunShineFox",
"info": "",
"picture": ""
},
{
"id": 972172514,
"value": "SUNSHINEFXY",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/d48c1614-b9c4-4785-b9ef-3142f5cfb12c.png"
},
{
"id": 971110891,
"value": "Sunshine Habibi",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/af425149-776a-494c-8f40-1b1fab6a827b.jpg"
},
{
"id": 971896068,
"value": "Sunshine House",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/84e219dd-450e-4bba-b2f4-2012ba0fe9bf.jpg"
},
{
"id": 971967921,
"value": "SunShine in me",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/e90184bb-56f0-43b7-b017-f730a12e8fba.jpg"
},
{
"id": 970712762,
"value": "Sunshine Innovations",
"info": "",
"picture": ""
},
{
"id": 5115939,
"value": "Sunshine Kids",
"info": "",
"picture": ""
},
{
"id": 972209966,
"value": "sunshinelady",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/1c0476d6-9353-4c8d-a369-7f5e78fcfb45.png"
},
{
"id": 971303326,
"value": "Sunshine Lady",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/07e3981b-862c-4806-b708-4140bb1703f2.jpg"
},
{
"id": 972131760,
"value": "Sunshineland",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/63bfd44b-6338-4fa6-8843-39b1c7827099.jpg"
},
{
"id": 972259469,
"value": "Sunshine Nutrition",
"info": "",
...