Skip to content

Taobao and Tmall Product Details API (V8) ​

GET
API health status
Healthy Available Limited Mostly unavailable No data
Loading health status...

Retrieves Taobao or Tmall product details by item ID through the V8 endpoint, which provides accurate SKU quantity information. Use it to perform direct product lookup for catalog research, product monitoring, or ecommerce analysis.

Highlights ​

Condition · Price

Returns the original product price and SKU prices. For pre-sale products, distinguish the deposit from the total price.

Capability · Attributes

Provides product attributes as names and values.

Capability · SKU options

Provides SKU identifiers, specification options and quantity information.

Capability · Main and carousel images

Provides product main and carousel images.

Condition · Description images

Verified samples return an empty description-image list and a description retrieval URL. Further retrieval is required to obtain the images.

Capability

This endpoint returns accurate SKU quantity information.

Condition

This endpoint may occasionally fail due to rate limiting; retry the request when it fails.

Parameters ​

NameInTypeRequiredDefaultDescription
tokenquerystringYes-Access token for this API service.
itemIdquerystringYes-Unique product identifier on Taobao/Tmall (item ID).

Code Samples ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE'
text
I want to use the "Product Details (V8)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE
HTTP Method: GET
Authentication: Append the "token" query parameter to the URL.
OpenAPI Definition: https://docs.justoneapi.com/openapi/taobao-and-tmall/product-details-v8-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): Unique product identifier on Taobao/Tmall (item ID). (Required)

Return format: safely handle JSON or text according to the actual Content-Type.

Response Handling & Error Codes:
1. Business results should be determined by the "code" field in the response body (code 0 means success).
2. Timeout Recommendation: Set the request timeout to 120 seconds. If 120 seconds is too long for your use case, use at least 60 seconds, but a small number of requests may time out before receiving a result.
3. Business Code Reference:
   - 0: Success
   - 100: Invalid or Inactive Token
   - 301: Collection Failed. Please Retry.
   - 302: Rate Limit Exceeded
   - 303: Daily Quota Exceeded
   - 400: Invalid Parameters
   - 500: Internal Server Error
   - 600: Permission Denied
   - 601: Insufficient Balance
   - 602: Token Budget Exceeded
4. Code 601 means the shared account balance is insufficient. Code 602 means the current API token's own cumulative budget limit has been reached. Token budget limits do not transfer funds out of the shared account balance.

Please help me write a script in my preferred programming language to call this API and handle the response.
python
import requests

BASE_URL = "https://api.justoneapi.com"  # Provided by OpenAPI servers

url = BASE_URL + "/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
js
const BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
const url = BASE_URL + "/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // Provided by OpenAPI servers
        final String url = BASE_URL + "/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
go
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // Provided by OpenAPI servers

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
php
<?php
$BASE_URL = 'https://api.justoneapi.com'; // Provided by OpenAPI servers
$url = $BASE_URL . '/api/taobao/get-item-detail/v8?token=YOUR_API_KEY&itemId=VALUE';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}

Response Fields ​

Key fields in a successful response (code = 0).

Product overview10 fields

data

Taobao or Tmall product details returned by V8.

FieldTypeDescription
itemobjectProduct identity, media, and category.
item.itemIdstringTaobao or Tmall product ID, returned as a string.
item.titlestringProduct title.
item.subtitlestringProduct subtitle when provided.
item.categoryIdstringProduct category ID, returned as a string.
item.rootCategoryIdstringTop-level product category ID, returned as a string.
item.brandValueIdstringBrand option ID on the product, returned as a string.
item.skuTextstringText summarizing the SKU options displayed for the product.
item.favcountstringReported favorite count as text.
item.vagueSellCountstringSales count display text, which can be rounded or abbreviated.
Product images, videos, and description links9 fields

data.item

FieldTypeDescription
imagesarrayProduct image URLs in display order. URLs can be protocol-relative.
images[]string-
videosarrayVideos shown in the product media gallery.
videos[]objectOne product gallery video.
videos[].urlstringVideo URL.
videos[].typestringType value returned for the video.
videos[].videoThumbnailUrlstringVideo thumbnail URL.
tmallDescUrlstringProduct description retrieval link. It can be protocol-relative.
taobaoPcDescUrlstringProduct description retrieval link for the desktop page.
SKU options13 fields

data.skuBase

SKU identities and the product's option definitions.

FieldTypeDescription
skusarraySKU entries with their identifiers and selected options.
skus[]objectOne listed SKU and its option combination.
skus[].skuIdstringSKU ID as text. Use it as a key in skuCore.sku2info to look up the corresponding price and quantity when present.
skus[].propPathstringEach selected option joins its pid and vid with a colon. A semicolon separates multiple options. Resolve the IDs against skuBase.props.
propsarrayOption definitions and their available values.
props[]objectOne product option definition.
props[].pidstringOption definition ID, returned as a string.
props[].namestringOption name displayed on the product page.
props[].valuesarrayValues in this option definition.
props[].values[]objectOne choice under an option.
props[].values[].vidstringOption value ID, returned as a string.
props[].values[].namestringDisplay name of this option value.
props[].values[].imagestringImage URL for this option value when provided.
SKU prices and quantities10 fields

data.skuCore

Price, quantity, and fulfillment details for SKU entries.

FieldTypeDescription
sku2infoobjectObject keyed by skuBase.skus[].skuId, with a possible 0 product summary entry. Each value can contain price (priceText, priceMoney, and type), quantity as text, and logisticsTime. In verified individual SKU entries with a single numeric price, priceMoney was 100 times priceText. Range text and summary prices can have different representations.
sku2info.{key}objectOne price and quantity entry selected by its map key.
sku2info.{key}.priceobjectPrice information returned for this map entry.
sku2info.{key}.price.priceTextstringDisplayed price text. A product summary can show a price range.
sku2info.{key}.price.priceMoneystringRaw price amount as text. Verified individual SKU entries with a single numeric price encoded it in hundredths of the displayed amount.
sku2info.{key}.price.typestringType value associated with this price.
sku2info.{key}.quantitystringReported quantity as text for this map entry. The summary entry is separate from individual SKU quantities.
sku2info.{key}.logisticsTimestringFulfillment timing text associated with this map entry when available.
skuItemobjectProduct-level context associated with the SKU section.
skuItem.locationstringLocation label returned with the SKU details.
Product attributes5 fields

data.props

Product attributes grouped for display.

FieldTypeDescription
groupPropsarrayArray of objects keyed by group name. Each group contains an array of objects mapping displayed attribute names to their text values.
groupProps[]objectProduct attribute groups with names that vary by product.
groupProps[].{key}arrayThe list of attribute entries under one group name.
groupProps[].{key}[]objectOne object mapping product attribute names to text values.
groupProps[].{key}[].{key}stringDisplayed attribute value as text.
Product prices27 fields

data.itemPrice

Product-level price presentation fields.

FieldTypeDescription
priceobjectMain price entry under the product-level price information.
price.priceTextstringPrice display text, which can include a range.
price.priceMoneystringRaw amount in this price presentation, returned as text.
price.typestringPrice type value returned by the platform.
subPriceobjectSecondary price entry when provided.
subPrice.priceTextstringPrice display text, which can include a range.
subPrice.priceMoneystringRaw amount in this price presentation, returned as text.
subPrice.typestringPrice type value returned by the platform.
extraPricesarraySupplementary product price display entries.
extraPrices[]objectOne supplementary product price entry.
extraPrices[].priceTextstringPrice display text, which can include a range.
extraPrices[].priceMoneystringRaw amount in this price presentation, returned as text.
extraPrices[].priceTitlestringTitle displayed beside this price.
extraPrices[].typestringPrice type value returned by the platform.
extraPrices[].lineThroughstringStrikethrough display flag for the price entry, returned as text.
newExtraPricesarrayAdditional list of supplementary price display entries when returned.
newExtraPrices[]objectOne additional supplementary price entry.
newExtraPrices[].priceTextstringPrice display text, which can include a range.
newExtraPrices[].priceMoneystringRaw amount in this price presentation, returned as text.
newExtraPrices[].priceTitlestringTitle displayed beside this price.
newExtraPrices[].typestringPrice type value returned by the platform.
newExtraPrices[].lineThroughstringStrikethrough display flag for the price entry, returned as text.
transmitPriceobjectPrice text in the transmit-price presentation field.
transmitPrice.priceTextstringPrice display text, which can include a range.
priceTagarrayPrice labels shown with the product.
priceTag[]objectOne product price label.
priceTag[].textstringPrice label display text.
Page price display16 fields

data.priceSection

Price section displayed on the product page.

FieldTypeDescription
priceobjectMain price presentation in the price section.
price.priceTextstringPrice display text, which can include a range.
price.priceMoneystringRaw amount in this price presentation, returned as text.
price.priceTitlestringTitle displayed beside this price.
price.priceTypestringPrice display type value returned by the platform.
price.newLinestringLine-break display flag for the price entry, returned as text.
price.priceSizestringText size value for the displayed price.
extraPriceobjectSupplementary price presentation when provided.
extraPrice.priceTextstringPrice display text, which can include a range.
extraPrice.priceMoneystringRaw amount in this price presentation, returned as text.
extraPrice.priceTitlestringTitle displayed beside this price.
extraPrice.priceTypestringPrice display type value returned by the platform.
extraPrice.priceColorstringColor value for the displayed price.
extraPrice.lineThroughstringStrikethrough display flag for the price entry, returned as text.
extraPrice.newLinestringLine-break display flag for the price entry, returned as text.
extraPrice.priceTailstringTrailing text displayed with this price.
Promotion display10 fields

data.priceSection.promotion

Promotion presentation in the price section.

FieldTypeDescription
entranceTipstringLabel displayed for the promotions entry.
entranceUrlstringLink associated with the promotions entry.
itemsarrayPromotion entries shown with the product price. The list can be empty.
items[]objectOne displayed promotion entry.
items[].contentstringPromotion display text.
items[].typestringPromotion type value returned by the platform.
items[].textColorstringColor value used to display promotion text.
items[].bgImagestringBackground image for the promotion display.
items[].startTimestringReported promotion start time as text.
items[].endTimestringReported promotion end time as text.
Seller and shop17 fields

data.seller

Seller and shop profile fields shown with the product.

FieldTypeDescription
userIdstringSeller account ID, returned as a string.
shopIdstringShop ID, returned as a string.
shopNamestringShop display name.
shopUrlstringShop link. It may use a relative or app-specific form.
taoShopUrlstringAdditional shop link returned by the platform.
shopIconstringShop icon URL.
fansstringShop follower count display text.
allItemCountstringReported number of shop items as text.
sellerTypestringSeller type value returned by the platform.
shopTypestringShop type value returned by the platform.
sellerNickstringSeller nickname.
creditLevelstringSeller credit level as text.
creditLevelIconstringSeller credit level icon URL.
tagIconstringSeller tag icon URL.
goodRatePercentagestringPositive rating percentage text shown for the seller.
certIconstringCertification icon URL when present.
certTextstringSeller or shop certification display text.
Delivery and purchase14 fields

data

FieldTypeDescription
deliveryobjectShipping information shown for the product.
delivery.fromstringDisplayed shipping origin.
delivery.tostringDisplayed delivery destination.
delivery.completedTostringExpanded delivery destination text when provided.
delivery.areaIdstringDelivery area ID, returned as a string.
delivery.postagestringShipping charge or postage text shown on the product page.
delivery.addressWeexUrlstringLink for the address selector used by the product page.
tradeobjectPurchase and cart state shown in the product response.
trade.buyEnablestringWhether the displayed purchase action is enabled, returned as text.
trade.cartEnablestringWhether the displayed add-to-cart action is enabled, returned as text.
trade.buyUrlstringLink value for the purchase action.
trade.hintBannerobjectPurchase-area hint banner when present.
trade.hintBanner.textstringHint banner display text.
trade.hintBanner.bgColorstringBackground color used for the hint banner.
Review preview17 fields

data.rate

Product review preview and review keywords when available. This can be null.

FieldTypeDescription
totalCountstringTotal review count as reported in the review preview, returned as text.
vagueCountstringAbbreviated review count displayed on the product page.
keywordsarrayReview keywords shown on the product page.
keywords[]objectOne review keyword entry.
keywords[].wordstringDisplayed review keyword.
keywords[].countstringCount text associated with the keyword.
rateListarrayReviews included in the preview.
rateList[]objectOne review in the product preview.
rateList[].contentstringReview content.
rateList[].userNamestringReviewer display name.
rateList[].headPicstringReviewer avatar URL.
rateList[].dateTimestringReview date or time text shown by the platform.
rateList[].createTimeIntervalstringRelative age text associated with the review.
rateList[].skuInfostringText describing the SKU shown on the review.
rateList[].imagesarrayImage URLs included in the review.
rateList[].images[]string-
rateList[].feedIdstringReview feed identifier, returned as a string.
Consumer protection16 fields

data.consumerProtection

Consumer protection information displayed with the product.

FieldTypeDescription
urlstringLink to the consumer protection information.
tradeConsumerServiceobjectPurchase protection service display details.
tradeConsumerService.serviceobjectDisplayed consumer protection services.
tradeConsumerService.service.titlestringDisplayed service section title.
tradeConsumerService.service.iconstringService section icon URL when provided.
tradeConsumerService.service.itemsarrayConsumer protection service entries.
tradeConsumerService.service.items[]objectOne consumer protection service entry.
tradeConsumerService.service.items[].titlestringDisplayed service title.
tradeConsumerService.service.items[].iconstringService icon URL.
tradeConsumerService.service.items[].descstringDisplayed service description.
tradeConsumerService.nonServiceobjectDisplayed list of services excluded for the product.
tradeConsumerService.nonService.titlestringSection title for excluded services.
tradeConsumerService.nonService.itemsarrayExcluded service entries displayed for the product.
tradeConsumerService.nonService.items[]objectOne displayed excluded service entry.
tradeConsumerService.nonService.items[].iconstringIcon URL for the displayed service entry.
tradeConsumerService.nonService.items[].titlestringTitle of the displayed service entry.
Q&A, live broadcasts, and other displays24 fields

data.vertical

Optional product-page modules.

FieldTypeDescription
verticalsobjectOptional modules returned for this product.
verticals.askAllobjectProduct Q&A preview information.
verticals.askAll.titlestringTitle of the Q&A section.
verticals.askAll.askTextstringQ&A entry display text.
verticals.askAll.askIconstringQ&A entry icon URL.
verticals.askAll.linkUrlstringLink to the product Q&A entry.
verticals.askAll.questNumstringDisplayed question count as text.
verticals.groupChatobjectShop group-chat entry displayed on the product page.
verticals.groupChat.titlestringGroup chat display title.
verticals.groupChat.imagestringGroup chat display image URL.
verticals.groupChat.fansCountstringFollower count text displayed with the group chat entry.
verticals.groupChat.urlstringLink to the group chat entry.
verticals.groupChat.descstringGroup chat display description.
verticals.transparentBroadcastobjectLive broadcast entry when shown on the product page.
verticals.transparentBroadcast.liveIdstringLive broadcast ID, returned as a string.
verticals.transparentBroadcast.jumpUrlstringNavigation link for the live broadcast.
verticals.transparentBroadcast.playUrlstringPlayback URL returned for the live broadcast.
verticals.interobjectCross-border price or tax information when displayed.
verticals.inter.taxDescTittlestringTitle of the import tax information display.
verticals.inter.taxDescarrayImport tax explanation entries with product-specific labels.
verticals.inter.taxDesc[]objectOne import tax explanation entry.
verticals.inter.tariffobjectTariff label and displayed value.
verticals.inter.tariff.namestringDisplayed tariff label.
verticals.inter.tariff.valuestringDisplayed tariff value as text.

Response Example ​

Loading the response example...