Parameter description of the commodity price API interface on the lazada platform

lazada.item_get

public parameter

Apply to call the KEY address

name type must describe
key String yes Call key (must be spliced ​​in the URL in GET mode)
secret String yes call key
api_name String yes API interface name (included in the request address) [item_search, item_get, item_search_shop, etc.]
cache String no [yes, no] The default is yes, the cached data will be called, and the speed is relatively fast
result_type String no [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, and the content output by jsonu can be read directly in Chinese
lang String no [cn,en,ru] translation language, default cn Simplified Chinese
version String no API version

request parameters

Request parameter: num_iid=267690734&nation=co.th

Parameter description: num_iid: lazada product ID (the ID corresponding to different countries cannot be used universally)
nation: country
The optional values ​​​​of the national domain name suffix are as follows: co.id, com.my, com.ph, sg, co.th, vn

response parameter

Version: Date:

name type must example value describe

item

item[] 0 Get lazada product details

Example request

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.^.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.^.cn/lazada/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=267690734&nation=co.th";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
  1. Parameter Description

    • General parameter description

      • version: API version
      • key: call key, test key: test_api_key
      • api_name:API类型[item_get,item_search]
      • cache: [yes, no] the default is yes, the cached data will be called, and the speed is relatively fast
      • result_type: [json,xml,serialize,var_export] return data format, the default is json
      • lang:[cn,en,ru] translation language, default cn Simplified Chinese
    • API: item_get parameter description: num_iid: baby ID

  2. This API currently supports the following basic interfaces:

    • item_get Get Taobao product details
    • item_search Get Taobao product details

Guess you like

Origin blog.csdn.net/TinagirlAPI/article/details/130929488