taobao API access instructions
-
API address:
https://api-sever.cn/taobao/ -
Call example:
_https://api-gw.onebound.cn/taobao/item_search/?key=& &q=design&start_price=0&end_price=0&page=1&cat=0&discount_only=&sort=&page_size=&seller_info=&nick=&ppath=&imgid=&filter=&&leng=zh -CN&secret=
-
Parameter Description
- General parameter description
- Do not pass parameters randomly, otherwise fees will be deducted regardless of success or failure.
- URL description https://api-gw.onebound.cn/Platform/API type/ Platform: Taobao, JD.com, etc., API type: [item_search, item_get, item_search_shop, etc.]
- version:API version
- key: call key, test key: test_api_key
- secret: call secret, test secret: (no need to fill in)
- 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] returns the data format, the default is json
- lang:[cn,en,ru] translation language, default cn simplified Chinese
- secret: key
-
API:item_search parameter description:
- q:Search keyword
- cat:category ID
- start_price:start price
- end_price: end price
- sort: Sort [bid, bid, bid2,_bid2,_sale,_credit]
(bid: total price, bid2: product price, sale: sales volume, credit credit, add prefix to sort from large to small) - page: number of pages
- page_size: Number of items per page, default 40
- seller_info: Whether to obtain merchant information [yes, no], default yes
-
API: item_get parameter description: num_iid: baby ID
- General parameter description
Error code explanation
Status code (error_code) | status information | A detailed description | Whether to charge |
---|---|---|---|
0000 | success | The interface call is successful and relevant data is returned | yes |
2000 | Search success but no result | The interface access was successful, but the search yielded no results. | yes |
4000 | Server internal error | Server internal error | no |
4001 | Network error | Network Error | no |
4002 | Target server error | Target server error | no |
4003 | Param error | User input parameter error | neglect |
4004 | Account not found | User account does not exist | neglect |
4005 | Invalid authentication credentials | Authorization failed | neglect |
4006 | API stopped | Your current API is disabled | neglect |
4007 | Account stopped | Your account has been deactivated | neglect |
4008 | API rate limit exceeded | The concurrency limit has been reached | neglect |
4009 | API maintenance | API under maintenance | neglect |
4010 | API not found with these values | API does not exist | neglect |
4012 | Please add api first | Please add api first | neglect |
4013 | Number of calls exceeded | The number of calls exceeds the limit | neglect |
4014 | Missing url param | Parameter missing | neglect |
4015 | Wrong pageToken | The parameter pageToken is incorrect | neglect |
4016 | Insufficient balance | Insufficient balance | neglect |
4017 | timeout error | Request timed out | no |
5000 | unknown error | unknown mistake | no |