Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Nuxt.js demo app for Taobao Affiliate APIs that showcases product search, TKL generation, and order tracking.

Next.js ecommerce starter built as a web programming final exam, using MongoDB, Prisma, Tailwind CSS, and JWT auth.
Taobaokeapi is an open-source Nuxt.js demo that shows how to build a Taobao affiliate (Taobaoke) shopping promotion site on top of the official Taobao Affiliate APIs.
Taobaokeapi is a demo application built with Node.js and Nuxt.js that illustrates how to integrate the Taobao Affiliate API suite into a mobile-friendly web UI. It takes as input a user token from api.taobaokeapi.com and a Taobao Union promotion site ID and ad zone ID, and it outputs a working storefront where visitors can browse promoted products, generate Taobao password (淘口令) shareable texts, and view order details. The project's README is written in Chinese and targets developers who want a ready-made reference for the Taobao Affiliate APIs.
taobao.tbk.sc.material.optional to fetch a feed of Taobao promotional products with optional filtering, displayed in a category and product list layout.taobao.tbk.tpwd.create to turn a product link into a shareable 淘口令 (Tao password) string.taobao.tbk.sc.tpwd.convert to resolve TKL texts into trackable affiliate links.taobao.tbk.sc.order.details.get to retrieve order information for commission tracking.nuxt.config.js with a root URL.The README walks through these steps: clone the GitHub repository, open nuxt.config.js to set the frontend root URL in the env block, edit server/config.js with a usertoken obtained from https://api.taobaokeapi.com/?tbklogin=1 and the promotion site's site_id and adzone_id, then install dependencies using Yarn or npm, run yarn dev or npm run dev for local development, and use yarn build or npm run build plus pm2 start for production.
The demo covers four APIs: taobao.tbk.sc.material.optional for product search, taobao.tbk.tpwd.create for generating 淘口令, taobao.tbk.sc.tpwd.convert for TKL conversion and link redirect, and taobao.tbk.sc.order.details.get for querying orders.
Yes. You need a usertoken from api.taobaokeapi.com and a Taobao Union promotion site with site_id and adzone_id. These are required for the affiliate API calls to return data.
The source code is open-source on GitHub, so the code itself is free. You will need to obtain your own API credentials from Taobao Union to use the affiliate APIs.
Build the project with yarn build or npm run build, then start it with PM2 using pm2 start. The default local development server runs at http://localhost:3000/.