taobao-api

PAID
By muhaha2k | Updated 17 days ago | eCommerce
Popularity

8.9 / 10

Latency

3,936ms

Service Level

94%

Health Check

100%

Back to All Discussions

Can I use it for TMALL?

Rapid account: Lkefnm
lkefnm
3 months ago

What should I use for the equivalent API if I canโ€™t use it?

Rapid account: Dataapi
dataapi Commented 3 months ago

hi lkefnm,

itโ€™s my pleasure ๐Ÿ˜ƒ

Rapid account: Lkefnm
lkefnm Commented 3 months ago

hi dataapi ,

it is complete!
Thank you very much.

Rapid account: Dataapi
dataapi Commented 3 months ago

hi lkefnm,

Please visit this page first (https://rapidapi.com/dataapi/api/taobao-api2/pricing) and chose the plan you needed.

When you get your API key, you could put API key in the sample code below.

โ€“
import requests

url = โ€œhttps://taobao-api2.p.rapidapi.com/taobao/v1/item/712424796414/detailโ€

headers = {
โ€œX-RapidAPI-Keyโ€: โ€œ{PUT YOUR RAPIDAPI KEY Here}โ€,
โ€œX-RapidAPI-Hostโ€: โ€œtaobao-api2.p.rapidapi.comโ€
}

response = requests.get(url, headers=headers)

print(response.json())

Rapid account: Lkefnm
lkefnm Commented 3 months ago

Thank you for the prompt response, and I have confirmed that it works perfectly. I am a beginner in Python, and I am sorry for the presumptuous request, but could you please teach me as well? Is it possible to receive the results in an array and extract them by specifying a key?

Rapid account: Dataapi
dataapi Commented 3 months ago

hi sir.

Yes, you can use this API for tmall.

e.g.

You can get id (727880798260) from the tmall product url (https://detail.tmall.com/item.htm?id=727880798260) first and put this id to call my api.

curl --request GET
โ€“url https://taobao-api2.p.rapidapi.com/taobao/v1/item/727880798260/detail
โ€“header โ€˜X-RapidAPI-Host: taobao-api2.p.rapidapi.comโ€™
โ€“header โ€˜X-RapidAPI-Key: {Your RapidAPI Key}โ€™

if you have any questions, please kindly let me know.

Thanks.

Join in the discussion - add comment below:

Login / Signup to post new comments