以程式設計師的身份,教您使用API介面獲取蝦皮商品詳情

Noah_WB發表於2023-11-14

作為一名程式設計師,我深知在使用蝦皮(Shopee)電商平臺進行業務開發時,透過API介面獲取商品詳情的重要性。本文將引導您逐步瞭解和使用蝦皮的API介面,從而輕鬆獲取商品詳情資料,為您的業務提供有力支援。

一、瞭解蝦皮API介面

首先,讓我們瞭解一下蝦皮的API介面。蝦皮的API介面是一套規範化的資料互動方式,它允許透過程式碼與蝦皮平臺進行資料互動。利用API介面,您可以獲取商品詳情、進行訂單 管理、實現使用者認證等豐富的功能,以提升您的業務效率和使用者體驗。

二、註冊賬號並獲取API金鑰

在開始使用蝦皮的API介面之前,您需要 ,並獲取到API金鑰。訪問我們的官方網站,按照指引完成註冊流程。註冊成功後,登入賬號,在相關設定頁面中找到API金鑰,並進行妥善保管。API金鑰將用於後續的身份驗證和請求授權。

三、熟悉API文件和介面規範

在獲得API金鑰之後,建議您仔細閱讀蝦皮的API文件,瞭解各個介面的規範和使用方法。API文件中通常包含介面的URL、請求引數、響應欄位、錯誤碼等重要資訊。確保您對介面的使用方式有清晰的認識,並遵循介面的規範進行開發,以避免不必要的錯誤和困惑。

公共引數

名稱

型別

必須

描述

key

String


呼叫key(必須以GET方式拼接在URL中)

secret

String


呼叫金鑰

api_name

String


API介面名稱(包括在請求地址中)[item_search,item_get,item_search_shop等]

cache

String


[yes,no]預設yes,將呼叫快取的資料,速度比較快

result_type

String


[json,jsonu,xml,serialize,var_export]返回資料格式,預設為json,jsonu輸出的內容中文可以直接閱讀

lang

String


[cn,en,ru]翻譯語言,預設cn簡體中文

version

String


API版本

請求引數

請求引數:num_iid=264070136/5637247041&country=.com.my

引數說明:num_iid:商品ID-country:網站字尾(.com.my;.vn;.ph)

響應引數

Version: Date:

名稱

型別

必須

示例值

描述

num_iid

Bigint

0


寶貝ID

title

String

0


寶貝標題

price

Float

0


價格

orginal_price

String

0


原價

num

Int

0


庫存

detail_url

String

0


寶貝連結

pic_url

String

0


寶貝圖片

brand

String

0


品牌名稱

favcount

Int

0



desc

String

0



skus

Mix

0


商品規格資訊列表

has_discount

String

0



item_size

String

0



cid

Int

0



currency

String

0



size_chart

String

0



sales

Int

0


銷量

item_imgs

Mix

0


商品圖片

discount

String

0



location

String

0


發貨地

shop_id

Int

0


店鋪ID

seller_info

Mix

0


賣家資訊

prop_imgs

Mix

0


屬性圖片

props_list

Mix

0


商品屬性

props_name

String

0


商品屬性名

props

Mix

0


商品詳情

current_lang

String

0



currency_code

String

0



props_img

Mix

0


屬性圖片

shop_item

Mix

0



relate_items

Mix

0



tmall

Boolean

0


是否天貓

error

String

0


錯誤資訊

warning

String

0


警告資訊

url_log

Mix

0



method

String

0



promo_type

String

0



請求示例

-- 請求示例 url 預設請求引數已經URL編碼處理
curl -i "您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=264070136/5637247041&country=.com.my"

四、編寫程式碼呼叫API介面

當您對蝦皮的API介面有了基本的瞭解後,可以開始編寫程式碼呼叫介面獲取商品詳情。根據您的偏好和程式語言選擇,可以使用蝦皮提供的SDK(軟體開發工具包)或直接使用HTTP請求進行呼叫。在編寫程式碼時,確保將API金鑰和其他必要的引數正確傳遞,並遵循介面的請求規範。

五、處理API響應和錯誤

在傳送API請求後,您將收到響應資料。根據介面的規範,解析響應資料以獲取商品詳情資訊。通常,響應資料以JSON格式進行傳遞,您可以使用相應的程式語言和庫進行解析。同時,不要忘記處理可能的錯誤和異常情況。蝦皮的API介面通常會返回錯誤碼和錯誤資訊,您需要根據文件中的說明進行錯誤處理,以確保程式碼的健壯性和穩定性。

錯誤碼解釋

狀態程式碼(error_code)

狀態資訊

詳細描述

是否收費

0000

success

介面呼叫成功並返回相關資料


2000

Search success but no result

介面訪問成功,但是搜尋沒有結果


4000

Server internal error

伺服器內部錯誤


4001

Network error

網路錯誤


4002

Target server error

目標伺服器錯誤


4003

Param error

使用者輸入引數錯誤

忽略

4004

Account not found

使用者帳號不存在

忽略

4005

Invalid authentication credentials

授權失敗

忽略

4006

API stopped

您的當前API已停用

忽略

4007

Account stopped

您的賬戶已停用

忽略

4008

API rate limit exceeded

併發已達上限

忽略

4009

API maintenance

API維護中

忽略

4010

API not found with these values

API不存在

忽略

4012

Please add api first

請先新增api

忽略

4013

Number of calls exceeded

呼叫次數超限

忽略

4014

Missing url param

引數缺失

忽略

4015

Wrong pageToken

引數pageToken有誤

忽略

4016

Insufficient balance

餘額不足

忽略

4017

timeout error

請求超時


5000

unknown error

未知錯誤


六、除錯和最佳化程式碼

在程式碼編寫完成後,進行除錯和最佳化是至關重要的步驟。透過使用除錯工具,您可以逐步執行程式碼並檢查變數的值,確保程式碼邏輯的正確性。同時,考慮到介面的呼叫頻率和效能要求,您可能需要最佳化程式碼以提高效率和響應速度。合理規劃和調整API請求的頻率,避免頻繁的請求導致效能問題或觸發API的使用限制。

程式碼演示

{
	"item": {
		"num_iid": "23711334403",
		"title": "NEW☘️DRESS/ABAYA/KAFTAN PARIO/KAFTAN/DRESS PALAS BELT/ DRESS PLEATED VIRAL/DRESS JUBAH/KAFTAN/DRESSWAWAZAINAL",
		"price": 58.99,
		"orginal_price": 0,
		"num": 996,
		"detail_url": "https://shopee.com.my/jewellery-emas-cop-916-gold-bracelet-elet-gold-bracelet-gelang-tangan-bracelets-charms-cute-bracelet-emas-korea-i.136737454.23711334403?",
		"pic_url": "
		"brand": null,
		"desc": "\n❤️*ELSIE DRESS*❤️\n_SATIN MATTE_\n\nFREE SIZE \n\nbahu 15\ndada 38\nketiak 17\nlengan 22\npinggang 34\npinggul 38\nlabuh 54\n\n?*ELSA DRESS*?\n_SATIN MATTE_\n\nFREE SIZE \n\nbahu 14\ndada 36\nketiak 18\nlengan 22\npinggang 32\npinggul 40\nlabuh depan 54\nlabuh belakang 64\n\n?*ELMIRA DRESS*?\n_SATIN MATTE_\n\nFREE SIZE \n\nbahu 16\ndada 40\nketiak 18\nlengan 24\npinggang 32\nlabuh 54\n\n? *ELLINOR DRESS*\n_SATIN MATTE_\n\nFREE SIZE \n\nbahu 15/16\ndada 38\nketiak 18\nlengan 23\npinggang 32\npinggul 42\nlabuh 56\n\n\n\n<img src=\"\" style=\"display:none\" />",
		"skus": {
			"sku": [
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "21:0",
					"properties_name": "21:0:3:free saiz",
					"quantity": 20,
					"sku_id": 39722045237
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "23:0",
					"properties_name": "23:0:5:free saiz",
					"quantity": 20,
					"sku_id": 39722045239
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "17:0",
					"properties_name": "17:0:40:free saiz",
					"quantity": 19,
					"sku_id": 184732897375
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "2:0",
					"properties_name": "2:0:10:free saiz",
					"quantity": 18,
					"sku_id": 217126780807
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "12:0",
					"properties_name": "12:0:32:free saiz",
					"quantity": 20,
					"sku_id": 184732897367
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "25:0",
					"properties_name": "25:0:8:free saiz",
					"quantity": 20,
					"sku_id": 49372083715
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "24:0",
					"properties_name": "24:0:6:free saiz",
					"quantity": 20,
					"sku_id": 49372083714
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "46:0",
					"properties_name": "46:0:47:free saiz",
					"quantity": 20,
					"sku_id": 88827032650
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "41:0",
					"properties_name": "41:0:38:free saiz",
					"quantity": 20,
					"sku_id": 49372083731
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "29:0",
					"properties_name": "29:0:15:free saiz",
					"quantity": 20,
					"sku_id": 49372083719
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "11:0",
					"properties_name": "11:0:31:free saiz",
					"quantity": 20,
					"sku_id": 184732897366
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "31:0",
					"properties_name": "31:0:17:free saiz",
					"quantity": 20,
					"sku_id": 49372083721
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "15:0",
					"properties_name": "15:0:35:free saiz",
					"quantity": 20,
					"sku_id": 184732897370
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "16:0",
					"properties_name": "16:0:39:free saiz",
					"quantity": 20,
					"sku_id": 184732897374
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "34:0",
					"properties_name": "34:0:23:free saiz",
					"quantity": 20,
					"sku_id": 49372083724
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "14:0",
					"properties_name": "14:0:34:free saiz",
					"quantity": 20,
					"sku_id": 184732897369
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "40:0",
					"properties_name": "40:0:37:free saiz",
					"quantity": 20,
					"sku_id": 49372083730
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "43:0",
					"properties_name": "43:0:44:free saiz",
					"quantity": 20,
					"sku_id": 88827032647
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "48:0",
					"properties_name": "48:0:49:free saiz",
					"quantity": 20,
					"sku_id": 88827032652
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "0:0",
					"properties_name": "0:0:1:free saiz",
					"quantity": 20,
					"sku_id": 217126780799
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "20:0",
					"properties_name": "20:0:2:free saiz",
					"quantity": 20,
					"sku_id": 39722045236
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "4:0",
					"properties_name": "4:0:14:free saiz",
					"quantity": 20,
					"sku_id": 217126780811
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "9:0",
					"properties_name": "9:0:25:free saiz",
					"quantity": 20,
					"sku_id": 255004269939
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "37:0",
					"properties_name": "37:0:28:free saiz",
					"quantity": 20,
					"sku_id": 49372083727
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "39:0",
					"properties_name": "39:0:36:free saiz",
					"quantity": 20,
					"sku_id": 49372083729
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "32:0",
					"properties_name": "32:0:20:free saiz",
					"quantity": 20,
					"sku_id": 49372083722
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "38:0",
					"properties_name": "38:0:29:free saiz",
					"quantity": 20,
					"sku_id": 49372083728
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "1:0",
					"properties_name": "1:0:7:free saiz",
					"quantity": 20,
					"sku_id": 217126780804
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "6:0",
					"properties_name": "6:0:19:free saiz",
					"quantity": 20,
					"sku_id": 217126780816
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "7:0",
					"properties_name": "7:0:22:free saiz",
					"quantity": 20,
					"sku_id": 217126780819
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "47:0",
					"properties_name": "47:0:48:free saiz",
					"quantity": 20,
					"sku_id": 88827032651
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "44:0",
					"properties_name": "44:0:45:free saiz",
					"quantity": 20,
					"sku_id": 88827032648
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "49:0",
					"properties_name": "49:0:50:free saiz",
					"quantity": 20,
					"sku_id": 88827032653
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "27:0",
					"properties_name": "27:0:11:free saiz",
					"quantity": 20,
					"sku_id": 49372083717
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "42:0",
					"properties_name": "42:0:43:free saiz",
					"quantity": 20,
					"sku_id": 88827032646
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "35:0",
					"properties_name": "35:0:26:free saiz",
					"quantity": 20,
					"sku_id": 49372083725
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "28:0",
					"properties_name": "28:0:12:free saiz",
					"quantity": 20,
					"sku_id": 49372083718
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "10:0",
					"properties_name": "10:0:30:free saiz",
					"quantity": 20,
					"sku_id": 184732897365
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "5:0",
					"properties_name": "5:0:18:free saiz",
					"quantity": 20,
					"sku_id": 217126780815
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "26:0",
					"properties_name": "26:0:9:free saiz",
					"quantity": 20,
					"sku_id": 49372083716
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "33:0",
					"properties_name": "33:0:21:free saiz",
					"quantity": 20,
					"sku_id": 49372083723
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "36:0",
					"properties_name": "36:0:27:free saiz",
					"quantity": 20,
					"sku_id": 49372083726
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "13:0",
					"properties_name": "13:0:33:free saiz",
					"quantity": 20,
					"sku_id": 184732897368
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "18:0",
					"properties_name": "18:0:41:free saiz",
					"quantity": 20,
					"sku_id": 184732897376
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "3:0",
					"properties_name": "3:0:13:free saiz",
					"quantity": 20,
					"sku_id": 217126780810
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "8:0",
					"properties_name": "8:0:24:free saiz",
					"quantity": 20,
					"sku_id": 217126780821
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "45:0",
					"properties_name": "45:0:46:free saiz",
					"quantity": 19,
					"sku_id": 88827032649
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "30:0",
					"properties_name": "30:0:16:free saiz",
					"quantity": 20,
					"sku_id": 49372083720
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "22:0",
					"properties_name": "22:0:4:free saiz",
					"quantity": 20,
					"sku_id": 39722045238
				},
				{
					"price": 58.99,
					"orginal_price": 0,
					"properties": "19:0",
					"properties_name": "19:0:42:free saiz",
					"quantity": 20,
					"sku_id": 184732897377
				}
			]
		},
		"has_discount": "false",
		"item_size": [
			"1",
			"7",
			"10",
			"13",
			"14",
			"18",
			"19",
			"22",
			"24",
			"25",
			"30",
			"31",
			"32",
			"33",
			"34",
			"35",
			"39",
			"40",
			"41",
			"42",
			"2",
			"3",
			"4",
			"5",
			"6",
			"8",
			"9",
			"11",
			"12",
			"15",
			"16",
			"17",
			"20",
			"21",
			"23",
			"26",
			"27",
			"28",
			"29",
			"36",
			"37",
			"38",
			"43",
			"44",
			"45",
			"46",
			"47",
			"48",
			"49",
			"50"
		],
		"cid": 100014,
		"categories": [
			{
				"catid": 100014,
				"display_name": "Muslim Fashion",
				"is_default_subcat": false,
				"no_sub": false
			},
			{
				"catid": 100078,
				"display_name": "Women Muslim Wear",
				"is_default_subcat": false,
				"no_sub": false
			},
			{
				"catid": 100297,
				"display_name": "Dresses",
				"is_default_subcat": false,
				"no_sub": false
			},
			{
				"catid": 100508,
				"display_name": "Kaftan",
				"is_default_subcat": false,
				"no_sub": true
			}
		],
		"currency": "MYR",
		"sales": 116,
		"item_imgs": {
			"item_img": [
				{
					"url": "
				},
				{
					"url": "
				}
			]
		},
		"location": "Kelantan",
		"shop_id": 136737454,
		"prop_imgs": {
			"prop_img": [
				{
					"properties": "0:0",
					"url": "
				},
				{
					"properties": "0:1",
					"url": "
				},
				{
					"properties": "0:2",
					"url": "
				},
				{
					"properties": "0:3",
					"url": "
				},
				{
					"properties": "0:4",
					"url": "
				},
				{
					"properties": "0:5",
					"url": "
				},
				{
					"properties": "0:6",
					"url": "
				},
				{
					"properties": "0:7",
					"url": "
				},
				{
					"properties": "0:8",
					"url": "
				},
				{
					"properties": "0:9",
					"url": "
				},
				{
					"properties": "0:10",
					"url": "
				},
				{
					"properties": "0:11",
					"url": "
				},
				{
					"properties": "0:12",
					"url": "
				},
				{
					"properties": "0:13",
					"url": "
				},
				{
					"properties": "0:14",
					"url": "
				},
				{
					"properties": "0:15",
					"url": "
				},
				{
					"properties": "0:16",
					"url": "
				},
				{
					"properties": "0:17",
					"url": "
				},
				{
					"properties": "0:18",
					"url": "
				},
				{
					"properties": "0:19",
					"url": "
				},
				{
					"properties": "0:20",
					"url": "
				},
				{
					"properties": "0:21",
					"url": "
				},
				{
					"properties": "0:22",
					"url": "
				},
				{
					"properties": "0:23",
					"url": "
				},
				{
					"properties": "0:24",
					"url": "
				},
				{
					"properties": "0:25",
					"url": "
				},
				{
					"properties": "0:26",
					"url": "
				},
				{
					"properties": "0:27",
					"url": "
				},
				{
					"properties": "0:28",
					"url": "
				},
				{
					"properties": "0:29",
					"url": "
				},
				{
					"properties": "0:30",
					"url": "
				},
				{
					"properties": "0:31",
					"url": "
				},
				{
					"properties": "0:32",
					"url": "
				},
				{
					"properties": "0:33",
					"url": "
				},
				{
					"properties": "0:34",
					"url": "
				},
				{
					"properties": "0:35",
					"url": "
				},
				{
					"properties": "0:36",
					"url": "
				},
				{
					"properties": "0:37",
					"url": "
				},
				{
					"properties": "0:38",
					"url": "
				},
				{
					"properties": "0:39",
					"url": "
				},
				{
					"properties": "0:40",
					"url": "
				},
				{
					"properties": "0:41",
					"url": "
				},
				{
					"properties": "0:42",
					"url": "
				},
				{
					"properties": "0:43",
					"url": "
				},
				{
					"properties": "0:44",
					"url": "
				},
				{
					"properties": "0:45",
					"url": "
				},
				{
					"properties": "0:46",
					"url": "
				},
				{
					"properties": "0:47",
					"url": "
				},
				{
					"properties": "0:48",
					"url": "
				},
				{
					"properties": "0:49",
					"url": "
				}
			]
		},
		"props_list": {
			"21:0": "3:free saiz",
			"23:0": "5:free saiz",
			"17:0": "40:free saiz",
			"2:0": "10:free saiz",
			"12:0": "32:free saiz",
			"25:0": "8:free saiz",
			"24:0": "6:free saiz",
			"46:0": "47:free saiz",
			"41:0": "38:free saiz",
			"29:0": "15:free saiz",
			"11:0": "31:free saiz",
			"31:0": "17:free saiz",
			"15:0": "35:free saiz",
			"16:0": "39:free saiz",
			"34:0": "23:free saiz",
			"14:0": "34:free saiz",
			"40:0": "37:free saiz",
			"43:0": "44:free saiz",
			"48:0": "49:free saiz",
			"0:0": "1:free saiz",
			"20:0": "2:free saiz",
			"4:0": "14:free saiz",
			"9:0": "25:free saiz",
			"37:0": "28:free saiz",
			"39:0": "36:free saiz",
			"32:0": "20:free saiz",
			"38:0": "29:free saiz",
			"1:0": "7:free saiz",
			"6:0": "19:free saiz",
			"7:0": "22:free saiz",
			"47:0": "48:free saiz",
			"44:0": "45:free saiz",
			"49:0": "50:free saiz",
			"27:0": "11:free saiz",
			"42:0": "43:free saiz",
			"35:0": "26:free saiz",
			"28:0": "12:free saiz",
			"10:0": "30:free saiz",
			"5:0": "18:free saiz",
			"26:0": "9:free saiz",
			"33:0": "21:free saiz",
			"36:0": "27:free saiz",
			"13:0": "33:free saiz",
			"18:0": "41:free saiz",
			"3:0": "13:free saiz",
			"8:0": "24:free saiz",
			"45:0": "46:free saiz",
			"30:0": "16:free saiz",
			"22:0": "4:free saiz",
			"19:0": "42:free saiz"
		},
		"_ddf": "boy",
		"props_img": {
			"0:0": ",
			"0:1": ",
			"0:2": ",
			"0:3": ",
			"0:4": ",
			"0:5": ",
			"0:6": ",
			"0:7": ",
			"0:8": ",
			"0:9": ",
			"0:10": ",
			"0:11": ",
			"0:12": ",
			"0:13": ",
			"0:14": ",
			"0:15": ",
			"0:16": ",
			"0:17": ",
			"0:18": ",
			"0:19": ",
			"0:20": ",
			"0:21": ",
			"0:22": ",
			"0:23": ",
			"0:24": ",
			"0:25": ",
			"0:26": ",
			"0:27": ",
			"0:28": ",
			"0:29": ",
			"0:30": ",
			"0:31": ",
			"0:32": ",
			"0:33": ",
			"0:34": ",
			"0:35": ",
			"0:36": ",
			"0:37": ",
			"0:38": ",
			"0:39": ",
			"0:40": ",
			"0:41": ",
			"0:42": ",
			"0:43": ",
			"0:44": ",
			"0:45": ",
			"0:46": ",
			"0:47": ",
			"0:48": ",
			"0:49": "
		},
		"format_check": "ok",
		"desc_img": [],
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "2b142bee747b8caf1442b5bb1235fff0",
	"secache_time": 1699949438,
	"secache_date": "2023-11-14 16:10:38",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",

總結:透過以上的步驟,您應該能夠以程式設計師的身份,教會客戶使用蝦皮的API介面獲取商品詳情。蝦皮的API介面提供了豐富的電商資料互動功能,為您的業務開發帶來便利和靈活性。記得在使用過程中遵循介面的規範,妥善保管API金鑰,並進行合理的請求規劃和錯誤處理。祝您使用愉快,並順利實現您的業務需求!


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/70026910/viewspace-2995311/,如需轉載,請註明出處,否則將追究法律責任。

相關文章