Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Image Added

Оглавление
Features

Please read information below to find out how goods search is performed and what search settings can be done.

Товарный провайдер

Товарный провайдер — это сервис (или площадка) для торговли. Именно от товарного провайдера поступает информация о товарах (названия, настройки, конфигурации и тд) и товарных категориях в OT API и потом, с помощью ключа, транслируется на сайт владельца ключа.

На данный момент доступны для подключения Taobao (включая Tmall), Yahoo.co.jp1688.com .

Получить список доступных провайдеров и некоторую информацию о них можно методом GetProviderInfoList.

Таобао и Tmall

Поиск по Таобао может осуществляться по разным направлениям. Направление напрямую зависит от задач сайта, на котором устанавливается ключ. 

НазваниеИдентификаторОписание
Расширенный поискExtendedПоиск по всему каталогу Таобао, используя специальные алгоритмы OT
Tmall поискOfficialПоиск по товарам Tmall, используя официальное API

Yahoo.co.jp

Содержит в себе 2 провайдера:

  • Обычная продажа товаров.
  • Аукционные товары.

Каждый провайдер имеет один поиск.

Свой каталог

С помощью дополнительного модуля «Товары на складе» появится провайдер «Склад», для которого можно создать и заполнить свой каталог товаров.

Подробнее о модуле и его подключении: http://key.otcommerce.com/ru/service-payments-rates

Способы и условия поиска

У каждого товарного провайдера есть свой набор условий поиска. Этот набор можно варьировать под цели сайта. Получить список доступных способов поиска и полную информацию о том, что они поддерживают, можно методом GetProviderSearchMethodInfoList.

Сам поиск можно выполнить двумя методами: SearchItemsFrame и BatchSearchItemsFrame. По работе они полностью идентичны, только с помощью второго метода можно получить различную дополнительную информацию сразу за один запрос, помимо самого поиска. Возможная дополнительная информация будет описана далее.

Условия самого поиска также идентичны, передаются в параметр xmlParameters, и представлены структурой.OtapiSearchItemsParameters. Как и все структурные параметры, он имеет формат xml, примеры будут описаны далее.

В следующей таблице представлено сравнительное описание условий поиска, как они представлены в структуре параметров, и как они представлены в описании способов поиска.

Trade provider

Trade provider is a service (or marketplace) for trading. Information about goods (titles, settings, configuration, etc.) and categories is sent to OT API from trade provider and then is broadcasted to website via OT API Key.

Check available trade providers.

Use GetProviderInfoList method to get list of available providers and information about them.

Own catalog

"Warehouse" provider will be added with additional Goods from Stock Module. You can use it to create your own catalog and add any goods (either from available providers or your own).

Read more about module

Search options and conditions

Each provider has its own set of search conditions. It can be varied depending on website goals. Use GetProviderSearchMethodInfoList method to get list of available search options and information what they support. 

Search can be done by two methods: SearchItemsFrame and BatchSearchItemsFrame. They are completely identical. Difference is that BatchSearchItemsFrame allows to get additional information right per one request besides search itself. Possible additional information will be described below. 

Search conditions are also identical. They are sent into xmlParameters and presented by structure SearchItemsParameters (this structure can be found, for example, in BatchSearchItemsFrame under "xmlParameters" field by clicking on "Structure"). It has xml format (like other structure parameters). xmlParameters is obligatory as it defines what we are looking for. Examples will be described below. 

What is called search conditions 

  • The main search criteria: search phrase, category, vendor, brand.
  • Additional search criteria: filters by characteristics, novelty of goods, and another different product’s parameters.
  • Sorting of search results.

From information about search methods you can get information what is available from these, and what variants are available. 

Getting information about search methods

In the following table you can see what can be known in information about search method and what search conditions it affects. For example, for search condition OrderBy (items sorting) can be found possible values from AvailableSorts field. In information about search method these parameters are in the table in one line. 

Comparison of search conditions and capabilities 

The following table provides a comparative description of search methods as they appear in parameters structure and how they are presented in search methods description.


BrandСостояние товара (новый, б/у, неиспользованыйУправление выдачей

Parameter

Search methodsSearch method information
Parameter nameValue exampleParameter desription

Parameter title

Value exampleParameter desription
ProviderProviderTaobao

Provider will be defined by other conditions (for example, categories) if provider was not explicitly specified in search methods. Search will be done by default provider if none of conditions defines provider.


Search is impossible and will give an error if different search methods lead to different providers. 

ProviderTaobaoProvider ID
Search method



SearchMethodOfficialDefault search method defined in settings is used if another one is not set.SearchMethodOfficialSearch method title
DisplayNameBranded goods (Tmall)Displayed search method title (in necessary language)
Flags
List of search method features
Goods quantity limitationsUseOptimalFrameSizetrue/false

Feature of using optimal frame size insted of sent one.

frameSize parameter is ignored and OptimalFrameSize parameter will be used from chosen search method if this condition was sent in true value.







OptimalFrameSize40

Optimal number of requested goods (page size).

Maximum possible search speed is available if such size of pages is used because it meets size of provider's pages.




MaximumFrameSize200

Maximum quantity of pages received for 1 query.

It can work much faster when using optimum number.




MaximumItemsCount4000

Number of goods received by the same search methods. Change and define search conditions to receive more goods.

Goods orderOrderByPrice:AscDefault sorting set in settings will be used if value is not set or is not included into available.AvailableSorts
List of available sorting in search method.

Category

CategoryId16Category ID for search.


Item title

ItemTitle

dress

Search box for item title.

If only item ID (item code) or link to provider's website page is indicated then only this item will be found and shown in search results (or empty if there is no such product).




LanguageOfQueryru

Search box language by item title. It is equal to language of goods query if not set.

Autotranslation to provider language is done if it is not equal to provider language.




Vendor

VendorId
Vendor IDVendortrue/falseIf search by vendor is supported.
VendorName
Vendor name

Vendor area

VendorAreaId
Vendor area IDVendorLocationtrue/falseIf search method supports vendor area.

Vendor rating

 



VendorRatingRangetrue/falseIf search method supports filter by vendor rating.
MinVendorRating5Minimum value of vendor ratingMinVendorRating1Minimum value of vendor rating.
MaxVendorRating15Maximum value of vendor ratingMaxVendorRating20

Maximum value of vendor rating.

NOTE! Maximum value of vendor rating varies from trade provider to trade provider. You can find it in provider's available search methods.

BrandBrandId
Brand ID
Brand
true/falseIf search method supports brands.
BrandPropertyValueId
Vrand Value ID (old parameter, use BrandId)
PriceMinPrice10Minimum pricePriceRangetrue/false


If search method supports filter by item price.
MaxPrice1000Maximum price
CurrencyCodeCNY

Currency code for price range
First showcase currency is default one. It is converted by reverse charge and courses into provider currency for search.


Sales volume

MinVolume100Minimum sales volumeVolumeRange true/falseIf search method supports filter by sales volume. 
MaxVolume500Maximum sales volume

Параметр

Условия поискаИнформация о способе поиска
Название параметраПример значенияОписание параметра

Название параметра

Пример значенияОписание параметра
ПровайдерProviderTaobao

Если в условиях поиска не указан провайдер явно, он будет определен по другим условиям (например, категории). Если ни одно условие не определяет провайдера, поиск будет произведен в провайдере по умолчанию.

Если разные условия поиска ведут к различным провайдерам, то такой поиск невозможен и приведет к ошибке.

ProviderTaobaoИдентификатор провайдера
Способ поиска

 

 

SearchMethodOfficialЕсли не указано, используется определенный в настройках способ поиска по умолчанию.SearchMethodOfficialНазвание способа поиска
DisplayNameФирменные товары (Tmall)Отображаемое название способа поиска (на нужном языке)
Flags Список особенностей способа поиска
Ограничения на число товаровUseOptimalFrameSizetrue/false

Признак использования оптимального размера фрейма вместо переданного.

Если данное условие передано в значении true, то параметр frameSize игнорируется, и будет использовано OptimalFrameSize из выбранного способа поиска.

   
   OptimalFrameSize40

Оптимальное число запрашиваемых товаров (размер страницы).

Если использовать страницы данного размера, это обеспечивает максимальную возможную скорость работы поиска, т.к. оно соответствует размерам страниц у провайдера.

   MaximumFrameSize200Максимальное число товаров, которое можно получить за 1 запрос. Может работать значительно медленнее, чем при использовании оптимального числа.
   MaximumItemsCount4000Число товаров, до которого в принципе можно получить по одним и тем же условиям поиска. Чтобы получать больше товаров, надо менять и уточнять условия поиска.
Сортировка товаровOrderByPrice:AscЕсли не указано, или указанное значение не входит в число допустимых, будет использована определенная в настройках сортировка по умолчанию.AvailableSorts Список допустимых сортировок в способе поиска.

Категория

CategoryId16Идентификатор категории, в которой искать товары.   

Название товара

ItemTitle

платье

Поисковая строка по названию товара.

Если в поисковой строке указаны только идентификатор (артикул) товара или ссылка на страницу на сайте провайдера, то будет найден и выдан именно этот единственный товар (или пусто, если таковой товар отсутствует).

   
LanguageOfQueryru

Язык поисковой строки по названию товара. Если не указан, считается равным языку выдачи товаров.

Если не равен языку провайдера, то производится автоперевод на язык провайдера.

   

Продавец

VendorId Идентификатор продавцаVendortrue/falseПоддерживается ли поиск по продавцу
VendorName Имя продавца

Местонахождение продавца

VendorAreaId Идентификатор местонахождения продавца (зоны)VendorLocationtrue/falseПоддерживает ли способ поиска местонахождение продавца

Рейтинг продавца

 
   VendorRatingRangetrue/falseПоддерживает ли способ поиска фильтр по рейтингу продавца
MinVendorRating5Минимальное значение рейтинга продавцаMinVendorRating1Минимальное значение рейтинга продавца
MaxVendorRating15Максимальное значение рейтинга продавцаMaxVendorRating20Максимальное значение рейтинга продавца
БрендBrandId Идентификатор искомой торговой маркиtrue/falseПоддерживает ли способ поиска бренды
BrandPropertyValueId Идентификатор значения искомой торговой марки (устаревший параметр, используйте BrandId)
ЦенаMinPrice10Минимальная ценаPriceRangetrue/false

 

Поддерживает ли способ поиска фильтр по цене товара
MaxPrice1000Максимальная цена
CurrencyCodeCNY

Код валюты, в которой указан диапазон цен.
По умолчанию считается первая витринная валюта. Для поиска конвертируется по обратным правилам наценок и курсов в валюту провайдера.

Объем продаж

MinVolume100Минимальный объем продажVolumeRange true/falseПоддерживает ли способ поиска фильтр по объему продаж 
MaxVolume500Максимальный объем продаж
   



VolumeRangeLogicNone / Range / OnlyMin / OnlyMaxЛогика работы условий по объему продаж: диапазон, только минимум, только максимум.The logic of conditions by sales volume: range, only minimum, only maximum.
Item status (new, second-hand, unused)StuffStatusNew / Unused / SecondСостояние товараItem statusStuffStatustrue/falseПоддерживает ли способ поиска фильтр по состоянию товараIf search method supports filter by item status.

Item configurations (color, model, etc.)

Configurators

List of search features provided by structure

Характеристики товара (цвет, модель и тд)

Configurators 

Список поисковых свойств, представленных структурой.

Configuratorstrue/false

Поддерживает ли способ поиска характеристики товараIf search method supports item features.

MultipleConfiguratorLogicNone / All / And

Логика работы способа поиска по нескольким значениям одной характеристики.

Использование в поиске нескольких значений одной характеристики.

(например, можно вывести только красное, красное И зеленое, красное ИЛИ зеленое)

 

Особенности товараFeatures 

Список искомых фич товара

Features

 

Список специальных фильтров, поддерживаемых способом поиска

The logic of search method by several values of one feature.

Use in search of several values of one feature (for example, it is possible to output only red AND green or red OR green).


Item featuresFeatures

List of item features.

Features


List of special filters supported by search method.

Search by photoImageUrl
Address of the image to search for goodsModuleImage Photo search parameters are allowed only in the search mode, in which the Module property is equal to Image
ImageFileId

Image File ID for Product Search

Used if the image you searched for was first uploaded via OTAPI.

Output modeOutputModeFull / TotalCount / Provider

Режим выдачи результатов поиска.

По умолчанию делается обычный поиск, с выдачей товаров и всего сопутствующего. Другие варианты:

  • TotalCount — Выдача только общего количества товаров, без самих данных о товарах. Тем самым можно получить общее количество по данным условиям поиска, и не тратить время на обработку самих товаров.
  • Provider — Выдача только провайдера и способа поиска, которыми бы производился поиск, без самого поиска. Провайдер и способ поиска определяются на основе всех переданных условий поиска и различных настроек.
   

Search results output mode.

Usual search with goods output and all related information is done. Other variants:

  • TotalCount — output of only total number of goods without information about goods.
    It is thus possible to get total number without wasting time for processing goods themselves.
  • Provider — output of only provider and search method without search itself. Provider and search method are defined on the basis of all search conditions and different settings.



CategoryModeNothing / External / InternalLeaf / CurrentLevel

Режим выдачи категорий в результатах поиска.

В результатах поиска помимо товаров есть еще, хоть и не всегда, список категорий, в которых находятся найденные товары. Обычно они называются уточняющими категориями. Есть несколько вариантов обработки и выдачи данного списка.

  • Nothing — Отсутствие выдачи категорий (если они не нужны)
  • External — Выдача внешних категорий как есть, без приведения к внутренним
  • InternalLeaf — Приведение внешних категорий к внутренним конечным (в любом месте каталога)
  • CurrentLevel — Приведение внешних категорий к внутренним категориям текущего уровня. Если поиск не по категории, то к корневым. Если поиск по категории, то к тем что внутри неё. Тем самым уточняющие категории никогда не выходят за рамки текущего уровня просмотра каталога.
   
IsClearItemTitlestrue/false

Признак очистки заголовков товаров.

По умолчанию true, то есть поиск выдает только оригинальные не-переведенные названия товаров, т.к. в большинстве случаев названия не показываются в списке товаров, то данное поведение сильно экономит ресурсы транслятора и немного ускоряет получение результатов поиска.

При значении false, в каждом товаре также выдается и переведенное название.

   
Устаревшие условияIsOriginaltrue/falseПризнак выбора только оригинальных товаров   
IsTmalltrue/falseПризнак выбора только товаров из Tmall   

Примеры параметров с условиями поиска и запросов поиска

ПримерЗначение xmlParametersТестовый запрос
   
   
   
   
   
   
   
   
   
   
   

 

Описание результатов поиска

Результаты поиска представлены структурой OtapiItemSearchResult, ниже описание её полей.

ПараметрОписание
ItemsСписок найденных товаров с указанием полного числа товаров
CategoriesСписок категорий, в которых есть искомые товары (уточняющие товары)
BrandsСписок брендов, в которых встречаются товары (уточняющие бренды)
TranslatedItemTitleТекст, по которому реально искались товары (переведенный на язык провайдера)
ProviderТоварный провайдер, в котором был произведен поиск
SearchMethodСпособ поиска, которым был произведен поиск
CurrentSortРеальная текущая сортировка
CurrentFrameSizeРеальный текущий размер фрейма (страницы)
MaximumPageCountМаксимальное число страниц в поиске
IsFoundByItemIdЕсли true, то в результатах поиска содержится 1 товар, который был найден по артикулу или ссылке

 

Дополнительные блоки информации в BatchSearchItemsFrame

Используя метод BatchSearchItemsFrame, можно получить дополнительную информацию за тот же один запрос к OTAPI. Список дополнительных блоков передается в параметре blockList, через запятую. Результатом является BatchItemSearchResult, который включает в себя обычный OtapiItemSearchResult, а также все свойства для дополнительной информации.

Categories in search results output mode.

There is categories list (not always) besides goods in search results. These categories include found goods. They are usually called clarifying categories. There are several variants of processing and output:

  • Nothing — no categories output (if they are unnecessary)
  • External — output of external categories as they are without cast to internal
  • InternalLeaf — external categories cast to internal final categories (in any place of catalog)
  • CurrentLevel — external categories cast to internal categories of current level or to root categories (if search was not by category) or to those inside category (if search was by category). Thus, clarifying categories never go beyond current level of directory view.



Old conditionsIsTmalltrue/falseFeature of only Tmall goods choice.



Examples of parameters with search conditions and search requests

ExamplexmlParameters valueTest requestComment
20 items of Taobao provider


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Taobao</Provider>
<CategoryId>0</CategoryId>
</SearchItemsParameters>


Documentation exampleMethod requires at least one of parameter (CategoryId, VendorName, VendorId, ItemTitle, BrandId, Configurators). Get RootCategoryId from GetProviderInfo and pass it to CategoryId (for provider's root category search).
Follow the link to set up search's items count (and other parameters)
20 items of Alibaba1688 provider by 'Storage' search method


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Alibaba1688</Provider>
<CategoryId>abb-0</CategoryId>
<SearchMethod>Storage</SearchMethod>
</SearchItemsParameters> 


Documentation exampleSearch method is selected automatic (by instance key settings and search parameters) by default.
Sometimes search method must be explicit. For example, search by reviews.
More details about search methods.
T-shirts search with system's optimal requested items count/number/batch (page size)


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<UseOptimalFrameSize>true</UseOptimalFrameSize>
</SearchItemsParameters>


Documentation exampleYou can find more details about search with system's optimal requested items count/number/batch (page size) in paragraph "Goods quantity limitations". Pass any positive number into frameSize.
Sort 20 items of Taobao provider by descending price


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Taobao</Provider>
<CategoryId>0</CategoryId>
<OrderBy>Price:Desc</OrderBy>
</SearchItemsParameters>


Documentation exampleMore details about available sorts.
20 items of Taobao provider sorted by descending reviews count


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Taobao</Provider>
<CategoryId>0</CategoryId>
<SearchMethod>Reviews</SearchMethod>
<OrderBy>ReviewCount:Desc</OrderBy>
</SearchItemsParameters>


Documentation example

Available with "Reviews" module only.

More details about available sorts.

Search t-shirts by descending sales count


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<OrderBy>Volume:Desc</OrderBy>
</SearchItemsParameters>


Documentation exampleMore details about available sorts.
Search by internal category identifier otc-4


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<CategoryId>otc-4</CategoryId>
</SearchItemsParameters>


Documentation example
Search by Taobao provider's category identifier 50000671


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Taobao</Provider>
<CategoryId>50000671</CategoryId>
</SearchItemsParameters>


Documentation example
Search by Alibaba1688 provider's category identifier


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<CategoryId>abb-1031918</CategoryId>
</SearchItemsParameters>


Documentation example
Searching for the first 100 items for "red t-shirt" query


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>red t-shirt</ItemTitle>
</SearchItemsParameters>


Documentation example
Search in original language: 红色T恤


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>红色T恤</ItemTitle>
<LanguageOfQuery>zh-chs</LanguageOfQuery>
</SearchItemsParameters>


Documentation example
Search in russian language - "red t-shirt"


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>красная футболка</ItemTitle>
<LanguageOfQuery>ru</LanguageOfQuery>
</SearchItemsParameters>


Documentation example
Search in english language — red t-shirt


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>red t-shirt</ItemTitle>
<LanguageOfQuery>en</LanguageOfQuery>
</SearchItemsParameters>


Documentation example
Search in english by phrase (without translation on chinese): 3D Vision


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>3D Vision</ItemTitle>
<LanguageOfQuery>zh-chs</LanguageOfQuery>
</SearchItemsParameters>


Documentation example
Search by article: 583346884671


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>583346884671</ItemTitle>
</SearchItemsParameters>


Documentation example
Search by link from Alibaba1688


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>
https://detail.1688.com/offer/530220113667.html
</ItemTitle>
</SearchItemsParameters>


Documentation example
Search by vendor: maxmartin玛玛绨旗舰店


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<VendorId>maxmartin玛玛绨旗舰店</VendorId>
</SearchItemsParameters>


Documentation exampleValue of VendorId (vendor identifier) can be found in any item's information.
Search t-shirts by minimal vendor's rating 19


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<MinVendorRating>19</MinVendorRating>
</SearchItemsParameters>


Documentation example
Search by brand's name: vero moda


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<BrandId>29902</BrandId>
</SearchItemsParameters>


Documentation example
Search t-shirts by price interval: from 10 to 40 yuan


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<CurrencyCode>CNY</CurrencyCode>
<MinPrice>10</MinPrice>
<MaxPrice>40</MaxPrice>
</SearchItemsParameters>


Documentation exampleSelection includes items with promotion price (PromotionPrice). Currency (if not explicit) gets from administrators panel (first currency from list) and converts.
Search t-shirt by USD equivalent price not exceed 3


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<MaxPrice>3</MaxPrice>
<CurrencyCode>USD</CurrencyCode>
</SearchItemsParameters>


Documentation exampleGet currency code (CurrencyCode) by using GetCurrencyInstanceList or GetInstanceCurrencyInfoList methods.
Search t-shirt with minimal sales count of 50


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<MinVolume>50</MinVolume>
</SearchItemsParameters>


Documentation example
Search t-shirt with minimal first lot 5


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Alibaba1688</Provider>
<ItemTitle>t-shirt</ItemTitle>
<MinFirstLot>5</MinFirstLot>
</SearchItemsParameters>


Documentation exampleAlibaba1688 only.
Search t-shirt with maximal first lot 1 (equals to retail order)


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<Provider>Alibaba1688</Provider>
<ItemTitle>t-shirt</ItemTitle>
<MaxFirstLot>1</MaxFirstLot>
</SearchItemsParameters>


Documentation example
Search t-shirts by condition (new)


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<StuffStatus>New</StuffStatus>
</SearchItemsParameters>


Documentation exampleActualy we have 2 conditions right now: 'new' and 'used'.
New: new
Second: used
Search by attribute: red coloured XL size t-shirt


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<Configurators>
<Configurator Pid="20509" Vid="28317" />
<Configurator Pid="1627207" Vid="13535612018" />
</Configurators>
</SearchItemsParameters>


Documentation exampleSearch attributes for selected item by using BatchGetItemFullInfo (example's item - id 646674173023) (<Attributes> )
<ItemAttribute Pid="20509" Vid="28317"> (for XL size)
<ItemAttribute Pid="1627207" Vid="13535612018"> (for "red" colour)
With additional information block 'SearchProperties' pass (more details about additional information blocks)
Search t-shirts with discount


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<Features>
<Feature Name="Discount">true</Feature>
</Features>
</SearchItemsParameters>


Documentation exampleList of available features can get from documentation's paragraph #2.
Search t-shirts in stock


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<Features>
<Feature Name="IsStock">true</Feature>
</Features>
</SearchItemsParameters>


Documentation example
Search TMall t-shirts


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ItemTitle>t-shirt</ItemTitle>
<Features>
<Feature Name="Tmall">true</Feature>
</Features>
</SearchItemsParameters>


Documentation example
Search items with reviews after purchase in "dress" category


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<CategoryId>162104</CategoryId>
<SearchMethod>Reviews</SearchMethod>
<Features>
<Feature Name="PurchasedItemReviews">true</Feature>
</Features>
</SearchItemsParameters>


Documentation exampleAvailable with "Reviews" module only.
Search by image


Блок кода
languagexml
firstline1
linenumberstrue
collapsetrue
<SearchItemsParameters>
<ImageUrl>
https://img.alicdn.com/imgextra/i1/529782397/O1CN01qnZeTY1TZs3xAcmOv_!!529782397.jpg
</ImageUrl>
</SearchItemsParameters>


Documentation example
Can search by image URL or by uploaded through API file: more details about search by image.


Search results description

Search results are presented by OtapiItemSearchResult structure, fields' description is shown below.

ParameterDescription
ItemsList of found goods with full number of goods
CategoriesList of categories containing searched goods (clarifying goods)
BrandsList of brands containing goods (clarifying brands)
TranslatedItemTitleText by which goods were really searched (translated to provider language)
ProviderProvider in which search was done
SearchMethodSearch method used for search
CurrentSortReal current sorting
CurrentFrameSizeReal current frame size (page)
MaximumPageCountMaximum number of pages in search
IsFoundByItemIdIf true, then search results contain 1 product found by code or link

Additional blocks of information in BatchSearchItemsFrame

It is possible to get additional information for one OTAPI request using BatchSearchItemsFrame. List of additional blocks is available in blockList parameter separated by commas. Result is BatchItemSearchResult including usual OtapiItemSearchResult and also all properties for additional information.

 
Block nameDescription
SubCategoriesget all subcategories if search by category
SearchPropertiesget filters  by  characteristics/properties
RootPath get path to root if search  by  category
Vendorget information on seller if search  by  seller
Brandget information on brand if search  by  brand
Categoryget information on category of search  by  category
HintCategoriesget appropriate categories for title if search by text
AvailableSearchMethodsget list of appropriate matching data for search methods  parameters  and all information on them
Название блокаОписание