Skip to content

Taobao and Tmall Product Details API (V11) ​

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

Retrieves Taobao product details by item ID. Use it to look up product information for catalog research or monitoring.

Highlights ​

Capability · Product coverage

Supports product detail lookups for all Taobao products by item ID.

Capability · Price

Provides displayed product prices and SKU prices when available.

Capability · SKU options

Provides SKU identifiers, specification options, and reported inventory quantities.

Capability · Product images and video

Provides product images and videos when available.

Capability · Shipping

Provides the shipping origin and displayed postage when available.

Parameters ​

NameInTypeRequiredDefaultDescription
tokenquerystringYes-Access token for this API service.
itemIdquerystringYes-Taobao product ID.

Code Samples ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/taobao/get-item-detail/v11?token=YOUR_API_KEY&itemId=VALUE'
text
I want to use the "Product Details (V11)" API from JustOneAPI.
Base URL: https://api.justoneapi.com.
API Path: /api/taobao/get-item-detail/v11?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/taobao/get-item-detail/v11?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-v11-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): Taobao product 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/v11?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/v11?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/v11?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/v11?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/v11?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).

Field pathTypeDescription
dataobjectDetails for the requested Taobao product. A successful lookup can indicate that product details were unavailable.
data.existsbooleanWhether product details were found for the requested item ID.
data.reasonstringReason returned when product details were unavailable.
data.itemobjectProduct title, media and display labels.
data.item.titlestringProduct title.
data.item.titleIconstringIcon associated with the product title.
data.item.imagesarrayReported product images.
data.item.images[]stringURL of a product image.
data.item.videosarrayReported product videos.
data.item.videos[]objectOne product video.
data.item.videos[].videoIdstringProduct video identifier as text.
data.item.videos[].typestringReported video type.
data.item.videos[].urlstringProduct video URL.
data.item.videos[].videoThumbnailURLstringURL of the video thumbnail.
data.item.videos[].spatialVideoDimensionstringReported video dimensions as text.
data.item.videos[].weexRecommendUrlstringRelated content URL returned with this video.
data.item.videoDetailobjectDetails of a product video.
data.item.videoDetail.videoIdstringProduct video identifier as text.
data.item.videoDetail.typestringReported video type.
data.item.videoDetail.urlstringProduct video URL.
data.item.videoDetail.videoThumbnailURLstringURL of the video thumbnail.
data.item.videoDetail.spatialVideoDimensionstringReported video dimensions as text.
data.item.videoDetail.mainPicListarrayProduct images returned with the video details.
data.item.videoDetail.mainPicList[]stringURL of a product image.
data.item.vagueSellCountstringSales count as displayed on the product page. It can be abbreviated.
data.item.skuTextstringText shown for SKU selection.
data.item.showShopActivitySizestringReported shop activity display count as text.
data.priceobjectReported product prices and price labels.
data.price.priceobjectPrimary displayed product price.
data.price.price.priceTextstringDisplay text for the primary price.
data.price.price.typestringReported price type code.
data.price.extraPricesarrayAdditional prices displayed for the product.
data.price.extraPrices[]objectOne additional price.
data.price.extraPrices[].priceTextstringDisplay text for this price.
data.price.extraPrices[].priceTitlestringLabel shown with this price.
data.price.extraPrices[].lineThroughstringWhether the price is shown with a strikethrough, represented as text.
data.price.extraPrices[].typestringReported price type code.
data.price.priceTagarrayLabels displayed near the product price.
data.price.priceTag[]objectOne price label.
data.price.priceTag[].textstringText shown on the label.
data.price.priceTag[].bgColorstringBackground color of the label.
data.price.transmitPriceobjectAdditional price details.
data.price.transmitPrice.priceTextstringDisplay text for this price.
data.skuBaseobjectProduct variant identifiers and their specification options.
data.skuBase.propsarraySpecification properties available for the product.
data.skuBase.props[]objectOne specification property.
data.skuBase.props[].pidstringSpecification property ID as text.
data.skuBase.props[].namestringDisplay name of the specification property.
data.skuBase.props[].valuesarrayOptions for this property.
data.skuBase.props[].values[]objectOne specification option.
data.skuBase.props[].values[].vidstringSpecification option ID as text.
data.skuBase.props[].values[].namestringDisplay name of the option.
data.skuBase.props[].values[].imagestringURL of an image associated with the option.
data.skuBase.skusarraySKU identifiers and their specification combinations.
data.skuBase.skus[]objectOne SKU combination.
data.skuBase.skus[].skuIdstringSKU ID as text. Use it to look up the corresponding entry in skuCore.sku2info.
data.skuBase.skus[].propPathstringEncoded path of property and option IDs for this SKU.
data.skuCoreobjectReported variant price, quantity and delivery information.
data.skuCore.sku2infoobjectMap of SKU IDs to their reported price and quantity records.
data.skuCore.sku2info.{key}objectReported values for one SKU entry.
data.skuCore.sku2info.{key}.quantitystringReported inventory quantity for this entry, as text.
data.skuCore.sku2info.{key}.priceobjectReported price for this entry.
data.skuCore.sku2info.{key}.price.priceMoneystringNumeric representation of the reported price, returned as text.
data.skuCore.sku2info.{key}.price.priceTextstringDisplay text for the reported price.
data.skuCore.sku2info.{key}.price.typestringReported price type code.
data.skuCore.sku2info.{key}.logisticsTimestringReported delivery timing text for this entry.
data.skuCore.skuItemobjectDelivery information shown with the variant selector.
data.skuCore.skuItem.locationstringLocation text shown with the variant selector.
data.skuCore.skuItem.showAddressTaobaostringAddress display flag represented as text.
data.skuCore.abSwitchobjectAdditional variant display settings.
data.skuCore.atmosphereobjectAdditional variant display metadata.
data.skuTransformobjectAdditional display content for the variant selector.
data.skuTransform.extraTextstringAdditional text shown with variant choices.
data.skuTransform.skuContentsarrayAdditional content shown for variant choices.
data.skuTransform.skuContents[]objectOne variant content entry.
data.skuTransform.skuContents[].imgstringURL of an image shown for the variant choice.
data.deliveryobjectReported delivery information for the product.
data.delivery.fromstringReported shipping origin text.
data.delivery.tostringReported shipping destination text.
data.delivery.completedTostringAdditional shipping destination text.
data.delivery.areaIdstringDelivery area identifier as text.
data.delivery.postagestringDisplayed shipping fee or postage description.
data.delivery.addressWeexUrlstringURL returned for the delivery address interface.
data.delivery.overseaContraBandFlagstringOverseas shipping restriction flag represented as text.
data.delivery.extrasobjectAdditional delivery information.
data.consumerProtectionobjectConsumer protection information shown for the product.
data.consumerProtection.itemsarrayDisplayed consumer protection entries.
data.consumerProtection.items[]objectOne consumer protection entry.
data.consumerProtection.items[].titlestringTitle of the protection entry.
data.consumerProtection.items[].descstringDescription shown for the protection entry.
data.consumerProtection.channelobjectAdditional consumer protection information shown for the product.
data.consumerProtection.channel.logostringLogo URL displayed for the consumer protection channel.
data.consumerProtection.channel.titlestringTitle displayed for the consumer protection channel.
data.consumerProtection.passValuestringAdditional text returned with consumer protection information.
data.promotionobjectPromotional information displayed for the product.
data.promotion.entranceTipstringText shown for the promotions entry point.
data.promotion.entranceUrlstringURL for the promotions entry point.
data.promotion.itemsarrayDisplayed promotional entries.
data.promotion.items[]objectOne displayed promotional entry.
data.promotion.items[].contentstringPrimary promotional text.
data.promotion.items[].scontentstringAdditional promotional text.
data.promotion.items[].bgImagestringURL of the primary promotional background image.
data.promotion.items[].sbgImagestringURL of an additional promotional background image.
data.promotion.items[].textColorstringText color for the promotional entry.
data.promotion.items[].typestringReported promotion type.
data.promotionFloatingDataobjectDisplay information for a promotional overlay.
data.promotionFloatingData.promotionNamestringDisplayed promotion name.
data.promotionFloatingData.showNowstringCurrent promotion display flag as text.
data.promotionFloatingData.showWarmstringPromotion preview display flag as text.
data.promotionFloatingData.detailPromotionTimeDOobjectPromotion display metadata.
data.promotionFloatingData.detailPromotionTimeDO.promotionTypestringReported promotion type.
data.resourceobjectAdditional coupon, promotion and presentation resources.
data.resource.couponobjectCoupon resource returned with the product.
data.resource.coupon.h5LinkUrlstringURL for the coupon page.
data.resource.promsCalcInfoobjectReported promotion calculation information.
data.resource.promsCalcInfo.cheapestMoneystringReported lowest amount for this promotion calculation, returned as text.
data.resource.promsCalcInfo.hasCouponstringCoupon availability indicator as text.
data.resource.promsCalcInfo.hitPromItemsarrayPromotion entries returned by the calculation.
data.resource.promsCalcInfo.promTipobjectPresentation details for the promotion calculation.
data.resource.promsCalcInfo.promTip.iconstringIcon returned with the promotion tip.
data.resource.promsCalcInfo.promTip.titlestringText of the promotion tip.
data.resource.promsCalcInfo.promTip.useHuaBianstringAdditional display setting for the promotion tip.
data.resource.shopPromarrayShop promotions returned with the product.
data.resource.shopProm[]objectOne shop promotion.
data.resource.shopProm[].titlestringTitle of the shop promotion.
data.resource.shopProm[].contentarrayText shown for the promotion.
data.resource.shopProm[].content[]stringOne promotional text entry.
data.resource.shopProm[].actionUrlstringURL associated with the promotion.
data.resource.shopProm[].iconstringIcon shown for the promotion.
data.resource.shopProm[].iconTextstringText shown with the promotion icon.
data.resource.entrancesobjectAdditional resource entry points.
data.resource.floatViewobjectResources for a floating display.
data.resource.floatView.listarrayEntries returned for the floating display.
data.resource.newBigPromotionobjectAdditional promotion metadata.
data.tradeobjectAvailability and links for purchase and cart actions.
data.trade.buyEnablestringPurchase availability flag represented as text.
data.trade.buyUrlstringURL for the purchase action.
data.trade.buyParamobjectAdditional purchase action parameters.
data.trade.cartEnablestringAdd-to-cart availability flag represented as text.
data.trade.cartJumpUrlstringURL for the cart action.
data.trade.cartParamobjectAdditional cart action parameters.
data.trade.isBanSale4OverseastringOverseas purchase restriction flag represented as text.
data.verticalobjectAdditional content modules returned with the product.
data.vertical.askAllobjectProduct questions and answers entry point.
data.vertical.askAll.titlestringDisplayed title of the product questions section.
data.vertical.askAll.askTextstringText shown for the product questions entry point.
data.vertical.askAll.askIconstringIcon shown for the product questions entry point.
data.vertical.askAll.questNumstringReported question count as text.
data.vertical.askAll.linkUrlstringURL for the product questions section.
data.vertical.groupChatobjectGroup chat information, when available.
data.vertical.groupChat.titlestringDisplayed group chat title.
data.vertical.groupChat.descstringDisplayed group chat description.
data.vertical.groupChat.imagestringGroup chat image URL.
data.vertical.groupChat.fansCountstringDisplayed follower count as text.
data.vertical.groupChat.urlstringURL for the group chat entry point.
data.vertical.transparentBroadcastobjectLive video information, when available.
data.vertical.transparentBroadcast.liveIdstringLive broadcast identifier as text.
data.vertical.transparentBroadcast.playUrlstringURL for live video playback.
data.vertical.transparentBroadcast.jumpUrlstringURL for the live broadcast entry point.
data.vertical.overSeasobjectAdditional overseas shopping information.
data.vertical.videoFlowobjectAdditional video module information.
data.vertical.vipCommentobjectAdditional review content metadata.
data.galleryobjectAdditional product gallery information.
data.featureobjectProduct page feature settings.
data.layoutobjectProduct page layout information.
data.layout.layoutIdstringReported layout identifier as text.
data.extendedDataobjectAdditional product details returned with the response.
data.diversionobjectAdditional product recommendation metadata.
data.hybridobjectAdditional embedded content metadata.
data.skuVerticalobjectAdditional SKU module information.
data.weappDataobjectAdditional app presentation data.
data.debugobjectDiagnostic metadata returned with product details.
data.paramsobjectAdditional product page metadata.
data.traceDatasobjectTrace metadata returned with product details.

Response Example ​

Loading the response example...