文档中心 > Dropshipping(已废弃)

aliexpress.ds.image.search (图片搜索)

图片搜索

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
target_language String 可选 EN target_language:EN,RU,PT,ES,FR,ID,IT,TH,JA,AR,VI,TR,DE,HE,KO,NL,PL,MX,CL,IW,IN
target_currency String 可选 USD target_currency:USD, GBP, CAD, EUR, UAH, MXN, TRY, RUB, BRL, AUD, INR, JPY, IDR, SEK,KRW
product_cnt Number 可选 10 count of products, max 150.
sort String 可选 SALE_PRICE_ASC SALE_PRICE_ASC, SALE_PRICE_DESC, LAST_VOLUME_ASC, LAST_VOLUME_DESC
shpt_to String 可选 US optional Ship to Country
image_file_bytes byte[] 可选 [1,1] image name in fileserver,max size 100 KB

响应参数

名称 类型 示例值 描述
rsp_code String 404 error code
data TrafficImageSearchResultDTO result object
  • products
  • TrafficImageProductDTO []
  • products
  • └ product_small_image_urls
  • String []
  • commodity thumbnail address list
  • └ original_price
  • String
  • 10
  • original price
  • └ original_price_currency
  • String
  • USD
  • original price currency
  • └ discount
  • String
  • 20%
  • discount
  • └ lastest_volume
  • String
  • 100
  • latest volume
  • └ seller_id
  • Number
  • 11897
  • seller id
  • └ target_sale_price
  • String
  • 10
  • target sale price
  • └ evaluate_rate
  • String
  • 99%
  • evaluate rate
  • └ target_original_price
  • String
  • 10
  • target original price
  • └ shop_id
  • Number
  • 1118980
  • shop id
  • └ second_level_category_name
  • String
  • 18778
  • second level category name
  • └ first_level_category_id
  • String
  • 199
  • first level category id
  • └ product_video_url
  • String
  • xxx.mp4
  • product vedio url
  • └ product_id
  • String
  • 78
  • product id
  • └ sale_price
  • String
  • 19
  • sale price
  • └ target_sale_price_currency
  • String
  • USD
  • target sale price currency
  • └ second_level_category_id
  • String
  • 899
  • second level category id
  • └ shop_url
  • String
  • xxx.html
  • shop url
  • └ product_title
  • String
  • xxx
  • product title
  • └ product_detail_url
  • String
  • xxx.html
  • product detail url
  • └ first_level_category_name
  • String
  • xxx
  • first level category name
  • └ product_main_image_url
  • String
  • xxx.html
  • product main image url
  • └ platform_product_type
  • String
  • PC
  • platform product type
  • └ target_original_price_currency
  • String
  • USD
  • target original price currency
  • └ sale_price_currency
  • String
  • USD
  • sale price currency
rsp_msg String System Error System Error
total_record_count Number 10 total record count

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressDsImageSearchRequest req = new AliexpressDsImageSearchRequest();
req.setTargetLanguage("EN");
req.setTargetCurrency("USD");
req.setProductCnt(10L);
req.setSort("SALE_PRICE_ASC");
req.setShptTo("US");
req.setImageFileBytes(new FileItem("/tmp/file.txt"));
AliexpressDsImageSearchResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliexpress_ds_image_search_response>
    <rsp_code>404</rsp_code>
    <data>
        <products>
            <traffic_image_product_d_t_o>
                <original_price>10</original_price>
                <original_price_currency>USD</original_price_currency>
                <discount>20%</discount>
                <lastest_volume>100</lastest_volume>
                <seller_id>11897</seller_id>
                <target_sale_price>10</target_sale_price>
                <evaluate_rate>99%</evaluate_rate>
                <target_original_price>10</target_original_price>
                <shop_id>1118980</shop_id>
                <second_level_category_name>18778</second_level_category_name>
                <first_level_category_id>199</first_level_category_id>
                <product_video_url>xxx.mp4</product_video_url>
                <product_id>78</product_id>
                <sale_price>19</sale_price>
                <target_sale_price_currency>USD</target_sale_price_currency>
                <second_level_category_id>899</second_level_category_id>
                <shop_url>xxx.html</shop_url>
                <product_title>xxx</product_title>
                <product_detail_url>xxx.html</product_detail_url>
                <first_level_category_name>xxx</first_level_category_name>
                <product_main_image_url>xxx.html</product_main_image_url>
                <platform_product_type>PC</platform_product_type>
                <target_original_price_currency>USD</target_original_price_currency>
                <sale_price_currency>USD</sale_price_currency>
            </traffic_image_product_d_t_o>
        </products>
    </data>
    <rsp_msg>System Error</rsp_msg>
    <total_record_count>10</total_record_count>
</aliexpress_ds_image_search_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部