2024-10-15 10:50:56 +03:00
---
2024-08-22 08:45:57 +03:00
sidebar_position: 4
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-08-22 08:45:57 +03:00
# 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`
2024-10-15 15:15:47 +03:00
| 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 |
2024-08-22 08:45:57 +03:00
2024-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
2024-08-22 08:45:57 +03:00
<br/>
:::tip
2024-11-21 13:27:18 +03:00
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](https://docs.ozon.ru/api/seller/#operation/DescriptionCategoryAPI_SearchAttributeValues)
2024-08-22 08:45:57 +03:00
:::
<br/>
2024-12-16 19:38:57 +03:00
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-12-20 16:27:30 +03:00
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
2024-08-22 08:45:57 +03:00
CategoryID = 17054869;
TypeID = 97311;
AttributeID = 85;
Value = "Sunshine";
Result = OPI_Ozon.SearchAttributeValue(ClientID
, APIKey
, CategoryID
, TypeID
, AttributeID
, Value);
```
2024-10-15 09:53:37 +03:00
2024-08-22 08:45:57 +03:00
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ozon SearchAttributeValue \
2024-10-22 08:59:24 +03:00
--clientid "***" \
--apikey "***" \
--categoryid 17054869 \
--typeid 97311 \
--attributeid 85 \
--value "Sunshine"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ozon SearchAttributeValue ^
2024-10-22 08:59:24 +03:00
--clientid "***" ^
--apikey "***" ^
--categoryid 17054869 ^
--typeid 97311 ^
--attributeid 85 ^
--value "Sunshine"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-08-22 08:45:57 +03:00
```json title="Result"
{
"result": [
{
"id": 5055881,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-i/6010930878.jpg"
},
{
"id": 971026862,
"value": "SUNSHINE",
"info": "Спорт и отдых",
"picture": ""
},
{
"id": 971719299,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-v/6601244203.jpg"
},
{
"id": 971818888,
"value": "Sunshine",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-p/6644299477.jpg"
},
{
"id": 972176200,
"value": "sunshine",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/e6dcf5aa-eb30-442d-afa0-5812652d2816.png"
},
2024-10-06 16:55:08 +03:00
{
"id": 972202223,
"value": "SUNSHINE",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/68384d8e-4b49-4f99-a045-3403c1f10f0f.jpg"
},
2024-08-22 08:45:57 +03:00
{
"id": 971227292,
"value": "Sunshine Baby",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-r/6299308959.jpg"
},
{
"id": 972029069,
"value": "Sunshine Beams",
"info": "",
"picture": ""
},
{
"id": 971168926,
"value": "Sunshine-Craft",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-u/6267516354.jpg"
},
{
"id": 972173064,
"value": "Sunshine Day",
"info": "",
"picture": ""
},
{
"id": 970974258,
"value": "sunshinefilm",
"info": "Защитная пленка на экран смартфона, гидрогелевая",
"picture": "https://cdn1.ozone.ru/s3/multimedia-w/6048813188.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.ozone.ru/s3/multimedia-4/6158730376.jpg"
},
{
"id": 971896068,
"value": "Sunshine House",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-b/6704404415.jpg"
},
{
"id": 971967921,
"value": "SunShine in me",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-1/6775950013.jpg"
},
{
"id": 970712762,
"value": "Sunshine Innovations",
"info": "",
"picture": ""
},
{
"id": 5115939,
"value": "Sunshine Kids",
"info": "",
"picture": ""
},
{
"id": 971303326,
"value": "Sunshine Lady",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-p/6371652253.jpg"
},
{
"id": 972131760,
"value": "Sunshineland",
"info": "",
"picture": "https://cdn1.ozonusercontent.com/s3/product-service-meta-media/63bfd44b-6338-4fa6-8843-39b1c7827099.jpg"
},
{
"id": 5142226,
"value": "Sunshine Optics",
"info": "",
"picture": ""
},
{
"id": 972026686,
"value": "SUNSHINE PANDI",
"info": "",
"picture": "https://cdn1.ozone.ru/s3/multimedia-3/6842409075.jpg"
},
{
"id": 970954160,
"value": "SUNSHINE PEARL",
"info": "Соль для ванны",
"picture": "https://cdn1.ozone.ru/s3/multimedia-j/6041114827.jpg"
},
{
"id": 970697481,
"value": "SunShines",
"info": "",
"picture": ""
},
{
"id": 972077059,
"value": "Sunshine shop",
"info": "",
2024-09-29 19:41:20 +03:00
...
2024-08-22 08:45:57 +03:00
```