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

Ключ

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

...

ExamplexmlParameters valueTest request
Search by provider goods: Taobao, Tmall, 1688  
Search by category: find in category Clothing «T-Shirt»otc-4, Taobao, 50000671  

Search by characteristics: T-shirt, size XL, red color

  
Search of first 100 goods in category/catalog or request: first 100 goods by request «red T-Shirt»  
Search by code: 534184932247  
Search by key code: red women T-shirt  
Search by vendor: maxmartin玛玛绨旗舰店  
Search in original language: 红色T恤  

Search in website language:

  • website in Russian — «red T-Shirt»,
  • website in English — Red T-shirt
  
Search by brand name: vero moda  
Search by English word (without translation to Chinese): 3D Vision  
Search in certain region: Guangzhou  
Goods search by vendor rating and more  
Goods search with price limit: from 10 to 40 yuan  
Goods search with discount: goods with discount  
Auction goods search: goods from auction  
Goods search by sales volume: descending sales number  
Search by second-hand or new goods: only new goods  
Goods search by special feature: footwear - beach  

...

Search results are presented by OtapiItemSearchResult structure OtapiItemSearchResult, below description of its fields. Результаты поиска представлены структурой OtapiItemSearchResult, ниже описание её полей.fields description is shown below.

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

 

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

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

Название блокаОписание
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