Skip to content

1688 Product Details API (V1) ​

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

Retrieves the public product detail for a 1688 wholesale listing by item ID. Use it to review a known offer during product sourcing or catalog research.

Parameters ​

NameInTypeRequiredDefaultDescription
tokenquerystringYes-Access token for this API service.
itemIdquerystringYes-A unique product identifier on 1688.

Code Samples ​

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

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): A unique product identifier on 1688. (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/1688/get-item-detail/v1?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/1688/get-item-detail/v1?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/1688/get-item-detail/v1?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/1688/get-item-detail/v1?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/1688/get-item-detail/v1?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 and storefront15 fields

data

When data is an object, these fields describe the requested 1688 product. A successful response with no product details can contain an empty string.

FieldTypeDescription
itemobjectBasic product information and the merchant’s displayed store details.
item.offerIdstring1688 product offer ID, returned as text.
item.offerTitlestringDisplay title of the product offer.
item.companyNamestringBusiness name displayed for the merchant.
item.winportUrlstringStorefront link displayed for the merchant.
item.defaultOfferImgstringLink to the default display image for the product.
item.offerUnitstringSales unit displayed for the product.
item.saleOutbooleanWhether the product is marked as sold out.
item.pricestringPrice display text reported with the product summary.
item.saledCountintegerSales quantity reported in the product information.
item.saledCountStrstringSales quantity display text reported for the product.
item.topCategoryIdstringTop-level category ID reported for the product, returned as text.
item.postCategoryIdstringListing category ID reported for the product, returned as text.
item.businessTypestringBusiness type label reported for this listing.
item.consignOfferbooleanWhether the listing is marked as a consignment offer.
Product images and video45 fields

data

FieldTypeDescription
mainPicobjectProduct picture group returned for listings using this media layout.
mainPic.offerIdstring1688 product offer ID, returned as text.
mainPic.isPrivacybooleanWhether the media group is marked as private.
mainPic.videoUrlstringVideo link reported for the media group. The string can be empty.
mainPic.videoIdintegerNumeric video ID returned for the media group.
mainPic.offerImgListarrayProduct image links within this media group.
mainPic.offerImgList[]stringLink to one product image in the media group.
mainPic.offerImagesarrayProduct images with their type labels.
mainPic.offerImages[]objectOne image in this product media group.
mainPic.offerImages[].imgUrlstringLink to the product image.
mainPic.offerImages[].typestringProduct image type code returned as text.
mainPic.offerImages[].typeDesstringDisplay description of the product image type.
mainPic.offerInfoModelobjectProduct summary included with this media group.
mainPic.offerInfoModel.offerIdinteger1688 product offer ID, returned as an integer.
mainPic.offerInfoModel.titlestringProduct title reported in the media group.
mainPic.offerInfoModel.pricestringPrice display text reported in the media group.
mainPic.skuImagesarrayImages associated with SKU option names.
mainPic.skuImages[]objectOne SKU option image.
mainPic.skuImages[].imgUrlstringLink to the SKU option image.
mainPic.skuImages[].namestringDisplay name of the SKU option associated with this image.
mainPic.skuImages[].typestringType code reported for the SKU option image.
videoobjectVideo media group. It can be an empty object when product media is returned in mainPic.
video.offerIdstring1688 product offer ID, returned as text.
video.isPrivacybooleanWhether the media group is marked as private.
video.videoUrlstringVideo link reported for the media group. The string can be empty.
video.videoIdintegerNumeric video ID returned for the media group.
video.offerImgListarrayProduct image links within this media group.
video.offerImgList[]stringLink to one product image in the media group.
video.offerImagesarrayProduct images with their type labels.
video.offerImages[]objectOne image in this product media group.
video.offerImages[].imgUrlstringLink to the product image.
video.offerImages[].typestringProduct image type code returned as text.
video.offerImages[].typeDesstringDisplay description of the product image type.
video.offerInfoModelobjectProduct summary included with this media group.
video.offerInfoModel.offerIdinteger1688 product offer ID, returned as an integer.
video.offerInfoModel.titlestringProduct title reported in the media group.
video.offerInfoModel.pricestringPrice display text reported in the media group.
imagesarrayProduct image entries with reported URL variants.
images[]objectOne product image entry.
images[].imageURIstringMain URI reported for the product image.
images[].fullPathImageURIstringFull image URI reported for the product image.
images[].size220x220ImageURIstringImage URI reported for the 220×220 variant field.
images[].size310x310ImageURIstringImage URI reported for the 310×310 variant field.
images[].searchImageURIstringImage URI reported for use in search displays.
images[].summImageURIstringSummary-size image URI returned for the product.
Description and attributes23 fields

data

FieldTypeDescription
titleobjectHeading text and display badges for the product.
title.offerIdinteger1688 product offer ID, returned as an integer.
title.titlestringTitle displayed in the product heading.
title.selledNumberstringSales display text shown near the title.
title.wantBuystringPurchase-interest text shown near the title, when returned.
title.tagListarrayTags displayed near the title. The array can be empty.
title.tagList[]stringText of a displayed product tag.
title.scrollListarrayScrolling display text returned for the product heading.
title.scrollList[]objectOne displayed text entry in the heading.
title.scrollList[].prefixstringText shown before the main label.
title.scrollList[].textstringMain text of the displayed heading entry.
title.scrollList[].suffixstringText shown after the main label.
descriptionobjectExtended product description information.
description.detailUrlstringPlatform link to the extended product description.
description.isUseNewDetailbooleanWhether the product description uses the newer detail format.
attributeobjectProduct attribute information and displayed values.
attribute.offerIdinteger1688 product offer ID, returned as an integer.
attribute.titlestringHeading displayed for the product attributes.
attribute.propsListarrayAttribute names and values shown for the product.
attribute.propsList[]objectOne displayed product attribute.
attribute.propsList[].namestringDisplay name of the product attribute.
attribute.propsList[].valuestringDisplay value of the product attribute.
attribute.propsList[].showbooleanWhether the attribute is marked for display.
Pricing and quantity tiers18 fields

data

FieldTypeDescription
priceobjectProduct pricing, display units, and quantity tiers.
price.displayTypestringPrice display type label returned for the product.
price.unitstringUnit displayed next to the product price.
price.priceModelobjectPrice tiers reported by quantity for the product.
price.priceModel.priceDisplayTypestringDisplay type code in the price model.
price.priceModel.currentPricesarrayCurrent price tiers by order quantity.
price.priceModel.currentPrices[]objectOne price tier for a starting order quantity.
price.priceModel.currentPrices[].pricestringPrice for this quantity tier, returned as display text.
price.priceModel.currentPrices[].beginAmountintegerStarting order quantity for the price tier.
price.priceModel.originalPricesarrayOriginal price tiers by order quantity, when present.
price.priceModel.originalPrices[]objectOne price tier for a starting order quantity.
price.priceModel.originalPrices[].pricestringPrice for this quantity tier, returned as display text.
price.priceModel.originalPrices[].beginAmountintegerStarting order quantity for the price tier.
price.priceModel.originalPriceDisplaystringOriginal price display text, when present.
price.priceModel.currentPricesWithOnePiecearrayCurrent quantity tiers that include one-piece pricing, when present.
price.priceModel.currentPricesWithOnePiece[]objectOne price tier for a starting order quantity.
price.priceModel.currentPricesWithOnePiece[].pricestringPrice for this quantity tier, returned as display text.
price.priceModel.currentPricesWithOnePiece[].beginAmountintegerStarting order quantity for the price tier.
Coupons and promotions27 fields

data

FieldTypeDescription
couponobject | arrayCoupon information when available. Responses can also return an empty array here.
coupon.offerIdinteger1688 product offer ID, returned as an integer.
coupon.buttonNamestringLabel of the coupon action button.
coupon.pageNamestringDisplay name of the coupon section.
coupon.couponRuleLinkTextstringDisplay text for the coupon rules link.
coupon.couponListarrayCoupon labels included in the listing.
coupon.couponList[]objectOne coupon display label.
coupon.couponList[].couponTypestringType code reported for this coupon.
coupon.couponList[].couponContentstringText displayed for this coupon.
coupon.couponInfoListarrayDetailed coupon display groups, when returned.
coupon.couponInfoList[]objectOne detailed coupon display group.
coupon.couponInfoList[].namestringDisplay name of the coupon group.
coupon.couponInfoList[].summarystringDisplay summary of the coupon group.
coupon.couponInfoList[].buttonNamestringLabel of the coupon group action button.
coupon.couponInfoList[].typestringType code reported for the coupon group.
coupon.couponInfoList[].promotionItemsarrayPromotion entries included in this coupon display group.
coupon.couponInfoList[].promotionItems[]objectOne coupon promotion entry.
coupon.couponInfoList[].promotionItems[].summarystringSummary text displayed for the promotion.
coupon.couponInfoList[].promotionItems[].labelstringDisplay label reported for the promotion.
coupon.couponInfoList[].promotionItems[].promotionDisplayNamestringPromotion name shown in the coupon display.
coupon.couponInfoList[].promotionItems[].availablePeriodstringAvailability period shown for the promotion.
coupon.couponInfoList[].promotionItems[].startTimestringPromotion start time returned as text.
coupon.couponInfoList[].promotionItems[].endTimestringPromotion end time returned as text.
coupon.couponInfoList[].promotionItems[].detailstringDetailed display text for the promotion.
coupon.couponInfoList[].promotionItems[].discountFeestringDiscount amount reported as display text.
coupon.couponInfoList[].promotionItems[].appliedbooleanWhether the promotion is marked as applied.
coupon.couponInfoList[].promotionItems[].canApplybooleanWhether the promotion is marked as available to apply.
Shipping and protection30 fields

data

FieldTypeDescription
deliveryobjectShipping and buyer protection information reported for the listing.
delivery.offerIdinteger1688 product offer ID, returned as an integer.
delivery.locationstringShipping origin displayed for the product.
delivery.logisticsstringLogistics display text returned for the product.
delivery.deliveryLimitTxtstringDisplay text for the reported delivery or dispatch commitment.
delivery.postFreebooleanWhether shipping is marked as free in this response.
delivery.postFeeValueintegerNumeric shipping fee value reported for this listing.
delivery.templateIdintegerIdentifier of the reported shipping template.
delivery.unitWeightintegerUnit weight value reported for shipping.
delivery.skuWeightobjectWeight values keyed by the reported SKU identifiers.
delivery.skuWeight.{key}numberWeight value reported for this SKU key.
delivery.deliveryLimitTimeModelobjectDetails of the delivery-time commitment returned for the listing.
delivery.deliveryLimitTimeModel.limitTimeDayintegerDay count reported for the delivery-time limit.
delivery.deliveryLimitTimeModel.limitTimeDescstringDisplay description of the delivery-time limit.
delivery.deliveryLimitTimeModel.expectTimeDescstringDisplay description of the expected dispatch time.
delivery.protectionInfosarrayProtection services included in the delivery information.
delivery.protectionInfos[]objectOne displayed service or protection entry.
delivery.protectionInfos[].serviceNamestringDisplay name of the service.
delivery.protectionInfos[].serviceCodestringCode reported for the service.
delivery.protectionInfos[].descriptionstringDisplay description of the protection service.
delivery.protectionInfos[].longDescriptionstringLonger description of the protection service.
delivery.protectionInfos[].buyerDescriptionstringBuyer-facing description of the protection service.
delivery.protectionInfos[].agreeDeliveryHoursintegerAgreed delivery time reported in hours, when returned.
delivery.buyerProtectionModelarrayAdditional buyer protection entries displayed with delivery.
delivery.buyerProtectionModel[]objectOne displayed service or protection entry.
delivery.buyerProtectionModel[].serviceNamestringDisplay name of the service.
delivery.buyerProtectionModel[].serviceCodestringCode reported for the service.
delivery.buyerProtectionModel[].enabledbooleanWhether the buyer protection entry is marked enabled.
delivery.buyerProtectionModel[].shortBuyerDescstringShort description displayed to the buyer.
delivery.buyerProtectionModel[].textDescstringDisplay description for the buyer protection entry.
Services and purchase options21 fields

data

FieldTypeDescription
serviceobjectServices and descriptions displayed for the product.
service.offerIdinteger1688 product offer ID, returned as an integer.
service.service1stringFirst service display label returned for the product.
service.service2stringSecond service display label, when returned.
service.service3stringThird service display label, when returned.
service.serviceDetailarrayDetailed information about displayed services.
service.serviceDetail[]objectOne displayed service or protection entry.
service.serviceDetail[].serviceNamestringDisplay name of the service.
service.serviceDetail[].serviceCodestringCode reported for the service.
service.serviceDetail[].descriptionstringDescription displayed for the service.
service.serviceDescarrayService descriptor entries included in the listing.
service.serviceDesc[]objectOne displayed service or protection entry.
service.serviceDesc[].serviceNamestringDisplay name of the service.
service.serviceDesc[].serviceCodestringCode reported for the service.
service.serviceDesc[].typestringType label reported for this service descriptor.
orderobjectDisplayed purchase modes for the listing.
order.sceneListarrayPurchase modes displayed for the product.
order.sceneList[]objectOne displayed purchase option.
order.sceneList[].sceneNamestringDisplay name of the purchase mode.
order.selectedSceneobjectPurchase mode marked as selected in the listing.
order.selectedScene.sceneNamestringDisplay name of the selected purchase mode.

Response Example ​

Loading the response example...