Image Search

Search for similar products on supported marketplaces (Taobao, 1688) using an image URL.

POSThttps://open.hiobuy.com/api/client/third-purchase/image/query

If your deployment uses a different base URL, replace `https://open.hiobuy.com` accordingly.

Request headers

NameRequiredTypeDescription
X-UuidYesstringMerchant UUID assigned to your account
LanguageNostringLocale for product titles and attributes. Default: `zh_CN`. See supported locales.

Supported locales

MarketplaceCodeLocale
Taobaozh_CNChinese
Taobaoen_USEnglish
Taobaovi_VNVietnamese
1688zh_CNChinese
1688en_USEnglish
1688ko_KRKorean
1688jaJapanese
1688ru_RURussian
1688vi_VNVietnamese
1688es_ESSpanish
1688arArabic

Request body

NameRequiredTypeDescription
imgYesstringPublicly accessible image URL
platformYesstringMarketplace code: `taobao` (Taobao), `1688` (1688.com)
use_platformNostringWhether to use 1688 platform-native response fields. `0` = off, `1` = on. 1688 only. See 1688 API reference.
filterNoarraySearch filters (1688 only). See 1688 filter reference.

Example request

{
  "img": "https://example.com/sample-product.jpg",
  "platform": "1688"
}

Sample response

{
  "ret": 1,
  "msg": "success",
  "data": {
    "api_type": "taobao",
    "items": {
      "item": [
        {
          "detail_url": "https://detail.1688.com/offer/808368541552.html",
          "title_cn": "性感蕾丝低胸睡衣…",
          "title": "Sexy Lace Low-cut Pajamas…",
          "pic_url": "https://cbu01.alicdn.com/O1CN01Z797hC1jEpv3AKmQ8_!!2216007294517-0-cib.jpg",
          "price": "21.80",
          "sales": 415,
          "num_iid": 808368541552,
          "seller_nick": "object_id%40808368541552…",
          "tag_percent": "19%",
          "trace_info": "object_id%40808368541552…",
          "top_category_id": 312,
          "category_id": 122450002
        }
      ],
      "total_results": 1000
    }
  }
}
The `item` array may contain many results; only one entry is shown above.

Response fields

Top level

NameTypeDescription
retnumberStatus code. `1` indicates success
msgstringStatus message
dataobjectResponse body

data.items.item[]

NameTypeDescription
detail_urlstringProduct detail page URL
num_iidintegerMarketplace product ID
pic_urlstringMain image URL
pricestringUnit price
salesintegerUnits sold (cumulative)
title_cnstringChinese title
titlestringLocalized title (per `Language` header)
seller_nickstringSeller shop name (image search may return a trace ID; use shop-nick when you have `shop_id`)
tagsarrayProduct tags
quantityintegerAvailable stock
tag_percentstringMatch confidence (e.g. `19%`)
trace_infostringPlatform trace token for follow-up requests
top_category_idintegerTop-level category ID
category_idintegerLeaf category ID

Pagination

NameTypeDescription
data.items.total_resultsintegerTotal number of matched products

Related endpoints