商品詳情頁(yè)
商品全部sku信息
"skus": {
"sku": [
{
"price": 45.6,
"total_price": 0,
"orginal_price": 45.6,
"properties": "1627207:39617249736",
"properties_name": "1627207:39617249736:顏色分類:【豪華手提桶裝】?100顆粒隨機(jī)?-送10公仔+40武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5915706282873"
},
{
"price": 69.6,
"total_price": 0,
"orginal_price": 69.6,
"properties": "1627207:39617249737",
"properties_name": "1627207:39617249737:顏色分類:【豪華手提桶裝】?150顆粒隨機(jī)?-送15公仔+45武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065737"
},
{
"price": 93.6,
"total_price": 0,
"orginal_price": 93.6,
"properties": "1627207:39617249738",
"properties_name": "1627207:39617249738:顏色分類:【豪華手提桶裝】?200顆粒隨機(jī)?-送20公仔+50武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065738"
},
{
"price": 117.6,
"total_price": 0,
"orginal_price": 117.6,
"properties": "1627207:39617249739",
"properties_name": "1627207:39617249739:顏色分類:【豪華手提桶裝】?250顆粒隨機(jī)?-送25公仔+70武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065739"
},
{
"price": 141.6,
"total_price": 0,
"orginal_price": 141.6,
"properties": "1627207:39617249740",
"properties_name": "1627207:39617249740:顏色分類:【豪華手提桶裝】?300顆粒隨機(jī)?-送30公仔+75武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065740"
},
{
"price": 165.6,
"total_price": 0,
"orginal_price": 165.6,
"properties": "1627207:39617249741",
"properties_name": "1627207:39617249741:顏色分類:【豪華手提桶裝】?350顆粒隨機(jī)?-送35公仔+80武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065741"
},
{
"price": 189.6,
"total_price": 0,
"orginal_price": 189.6,
"properties": "1627207:39617249742",
"properties_name": "1627207:39617249742:顏色分類:【豪華手提桶裝】?400顆粒隨機(jī)?-送40公仔+100武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065742"
},
{
"price": 213.6,
"total_price": 0,
"orginal_price": 213.6,
"properties": "1627207:39617249743",
"properties_name": "1627207:39617249743:顏色分類:【豪華手提桶裝】?450顆粒隨機(jī)?-送45公仔+105武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065743"
},
{
"price": 237.6,
"total_price": 0,
"orginal_price": 237.6,
"properties": "1627207:39617249744",
"properties_name": "1627207:39617249744:顏色分類:【豪華手提桶裝】?500顆粒隨機(jī)?-送50公仔+110武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065744"
},
{
"price": 261.6,
"total_price": 0,
"orginal_price": 261.6,
"properties": "1627207:39617249745",
"properties_name": "1627207:39617249745:顏色分類:【豪華手提桶裝】?550顆粒隨機(jī)?-送55公仔+130武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065745"
},
{
"price": 285.6,
"total_price": 0,
"orginal_price": 285.6,
"properties": "1627207:39617249746",
"properties_name": "1627207:39617249746:顏色分類:【豪華手提桶裝】?600顆粒隨機(jī)?-送60公仔+135武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065746"
},
{
"price": 309.6,
"total_price": 0,
"orginal_price": 309.6,
"properties": "1627207:39617249747",
"properties_name": "1627207:39617249747:顏色分類:【豪華手提桶裝】?650顆粒隨機(jī)?-送65公仔+140武器+圖冊(cè)",
"quantity": 200,
"sku_id": "5743121065747"
}
]
},
商品標(biāo)題
"title": "我的世界磁力方塊全套正版女男孩拼圖兒童益智拼裝磁鐵吸積木玩具",
商品價(jià)格
"price": "45.6",
"orginal_price": 45.6,
店鋪nick
"nick": "奧侖希玩具旗艦店",
"num": "2400",
商品主圖
"pic_url": "https://img.alicdn.com/bao/uploaded/i3/2270219776/O1CN01gLVfOH2M5SzARwaZ2_!!4611686018427383296-0-item_pic.jpg",
品牌
"brand": "Auluns/奧侖希 ",
"brandId": 0,
"rootCatId": 0,
商品分類
"cid": 50023652,
商品詳情圖
"desc": "<img src=\"gw.alicdn.com/imgextra/i1/O1CN01NAcw6M1JPfMS0Sz9Q_!!6000000001021-0-tps-750-128.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01tEbEJM2M5SzclgpB1_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01nwiO4W2M5SzgDtCQm_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01EVE7d32M5SzgDu8b7_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01x40RsD2M5SzfgoZZi_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i3/2270219776/O1CN01uvZq5l2M5Szfj0agL_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN018Ylqoy2M5SzfAhjbi_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN0175agbl2M5SzfgqWAU_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN01h0IVwp2M5SzfAiTNA_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01p4egIx2M5SzfAiL1u_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN01HsKQ2K2M5SzfObIV0_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01FGLT4E2M5Szclh9zK_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01bu3X5L2M5SzeWqBnL_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN01J8WsnK2M5Szclh5ny_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01P5ufst2M5SzdK92hS_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i3/2270219776/O1CN01bmkDDC2M5Szfj34VQ_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i3/2270219776/O1CN01ZLMOnX2M5Szfj1OZd_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01KNo1O42M5SzfOezCl_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01LNh3QX2M5SzezmATT_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01f316pD2M5Szfj1b3F_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN017ziEwU2M5Szf8JjXv_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i3/2270219776/O1CN01mX4T1e2M5SzdPBQNv_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01TuEUkF2M5SzezlIPb_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01WEK0ix2M5SzecxR6O_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN01BuhLyv2M5SzezlUtQ_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01jjK2yJ2M5Szf8JfNq_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN01KFXIMj2M5SzeznRUC_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i4/2270219776/O1CN01HjVYFg2M5SzfAio9f_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i3/2270219776/O1CN01AB0tEi2M5SzgWyNSu_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i1/2270219776/O1CN015zUVaL2M5SzfOdmNo_!!2270219776.jpg\"/><img src=\"img.alicdn.com/imgextra/i2/2270219776/O1CN018Pfw5z2M5SzYUhlZ9_!!2270219776.jpg\"/><img src=\"https://www.o0b.cn/i.php?t.png&rid=15.68870c5ef0ab0&p=1941845110&k=19972&t=1753680993\" style=\"display:none\" />",
商品主圖
商品屬性
淘寶item_get請(qǐng)求示例
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.nio.charset.Charset;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.PrintWriter;
import java.net.URLConnection;
淘寶item_get請(qǐng)求示例
public class Example {
private static String readAll(Reader rd) throws IOException {
StringBuilder sb = new StringBuilder();
int cp;
while ((cp = rd.read()) != -1) {
sb.append((char) cp);
}
return sb.toString();
}
public static JSONObject postRequestFromUrl(String url, String body) throws IOException, JSONException {
URL realUrl = new URL(url);
URLConnection conn = realUrl.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
PrintWriter out = new PrintWriter(conn.getOutputStream());
out.print(body);
out.flush();
InputStream instream = conn.getInputStream();
try {
BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
String jsonText = readAll(rd);
JSONObject json = new JSONObject(jsonText);
return json;
} finally {
instream.close();
}
}
public static JSONObject getRequestFromUrl(String url) throws IOException, JSONException {
URL realUrl = new URL(url);
URLConnection conn = realUrl.openConnection();
InputStream instream = conn.getInputStream();
try {
BufferedReader rd = new BufferedReader(new InputStreamReader(instream, Charset.forName("UTF-8")));
String jsonText = readAll(rd);
JSONObject json = new JSONObject(jsonText);
return json;
} finally {
instream.close();
}
}
public static void main(String[] args) throws IOException, JSONException {
// 請(qǐng)求示例 url 默認(rèn)請(qǐng)求參數(shù)已經(jīng)URL編碼處理
String url = "https://api-gw.onebound.cn/taobao/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=652874751412&is_promotion=1";
JSONObject json = getRequestFromUrl(url);
System.out.println(json.toString());
}
}