Skip to content

Xianyu (GooFish) Product Details API (V1) ​

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

Retrieves the public detail for a Xianyu (GooFish) second-hand listing by item ID. Use it to inspect a known resale item after search or link discovery.

Parameters ​

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

Code Samples ​

bash
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/xianyu/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/xianyu/get-item-detail/v1?token=YOUR_API_KEY&itemId=VALUE
API Endpoint: BASE_URL + /api/xianyu/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/xianyu-goofish/product-details-v1-en.json

Parameters:
- token (query): Access token for this API service. (Required)
- itemId (query): A unique product identifier on Xianyu. (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/xianyu/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/xianyu/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/xianyu/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/xianyu/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/xianyu/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).

Item and response status4 fields

data

An object contains listing details and may include a removal status. A successful response can also contain an unavailable-item message or null.

FieldTypeDescription
itemDOobjectItem details reported for the requested Xianyu listing.
itemDO.itemIdstringXianyu listing ID.
itemDO.titlestringTitle of the listing.
itemDO.itemStatusStrstringListing status message. It may indicate that the listing has been removed.
Listing information and categories16 fields

data.itemDO

FieldTypeDescription
descstringPlain-text description of the listing.
richTextDescstringRich-text version of the listing description.
itemTypestringReported type of the listing.
itemStatusstringReported listing status code as text.
gmtCreatestringListing creation timestamp as a string of milliseconds since the Unix epoch.
GMT_CREATE_DATE_KEYstringFormatted creation date for the listing.
quantitystringQuantity reported for the listing, as text.
categoryIdstringCategory ID reported on the item.
itemCatDTOobjectCategory identifiers associated with the listing.
itemCatDTO.catIdstringCategory ID in the category object.
itemCatDTO.leafIdstringLeaf category ID.
itemCatDTO.channelCatIdstringCategory ID in the Xianyu channel.
itemCatDTO.rootChannelCatIdstringRoot category ID in the Xianyu channel.
itemCatDTO.level2ChannelCatIdstringSecond-level category ID in the Xianyu channel.
itemCatDTO.level3ChannelCatIdstringThird-level category ID in the Xianyu channel.
itemCatDTO.tbCatIdstringAssociated Taobao category ID.
Price and shipping12 fields

data.itemDO

FieldTypeDescription
soldPricestringPrice amount reported for the listing, returned as decimal text. It can also be present for a removed listing.
originalPricestringOriginal price reported for the listing, as text.
defaultPricestringDefault-price field returned as text. It can be blank or nonnumeric.
priceUnitstringPrice display unit label. It can be empty.
transportFeestringShipping fee reported for the item, as text.
promotionPriceDOobjectPromotional price information, when provided.
promotionPriceDO.promotionNamestringPromotional price label.
promotionPriceDO.promotionPriceMinstringMinimum promotional price reported as text.
promotionPriceDO.minDiscountFeeStrstringDisplay text for the reported minimum discount amount.
priceRelativeTagsarrayTags displayed with the product price.
priceRelativeTags[]objectOne price display tag.
priceRelativeTags[].textstringText shown in the price tag.
Engagement7 fields

data.itemDO

FieldTypeDescription
browseCntstringBrowse count reported for the listing, as text.
wantCntstringReported number of users who indicated interest in the listing, as text.
wantCntUnitstringDisplay unit for the interest count.
soldCntstringSales count reported for the listing, as text.
collectCntstringCollection count reported for the listing, as text.
favorCntstringReported favorite count for the listing, as text.
interactFavorCntstringFavorite count from the listing interaction data, as text.
Images and video19 fields

data.itemDO

FieldTypeDescription
defaultPicturestringDefault listing image URL.
noPicItemstringText flag indicating whether the item is marked as having no picture.
imageInfosarrayImages in the listing gallery. This list can be empty.
imageInfos[]objectOne image in the listing gallery.
imageInfos[].majorstringText flag indicating whether this is marked as the main image.
imageInfos[].widthSizestringImage width in pixels, as text.
imageInfos[].heightSizestringImage height in pixels, as text.
imageInfos[].typestringImage type code as text.
imageInfos[].urlstringGallery image URL.
videoPlayInfoobjectListing video information, when provided.
videoPlayInfo.videoIdstringVideo identifier reported for the listing.
videoPlayInfo.majorstringText flag indicating whether this is marked as the main video.
videoPlayInfo.typestringVideo type code as text.
videoPlayInfo.widthSizestringVideo width in pixels, as text.
videoPlayInfo.heightSizestringVideo height in pixels, as text.
videoPlayInfo.urlstringImage URL associated with the video entry.
videoPlayInfo.playUrlstringListing video playback URL.
videoPlayInfo.ld320pUrlstringVideo playback URL for the 320p rendition.
videoPlayInfo.sd480pUrlstringVideo playback URL for the 480p rendition.
Properties and topics26 fields

data.itemDO

FieldTypeDescription
commonTagsarrayGeneral display tags on the listing.
commonTags[]objectOne general display tag.
commonTags[].textstringText shown in the general tag.
itemLabelExtListarrayAdditional labels on the listing.
itemLabelExtList[]objectOne additional label on the listing.
itemLabelExtList[].labelIdstringIdentifier reported for the label.
itemLabelExtList[].labelTypestringType code reported for the label.
itemLabelExtList[].propertyIdstringIdentifier of the property associated with the label.
itemLabelExtList[].propertyTextstringDisplay text of the property associated with the label.
itemLabelExtList[].valueIdstringIdentifier of the label value.
itemLabelExtList[].valueTextstringDisplay text for the label value.
itemLabelExtList[].textstringDisplay text of the label.
cpvLabelsarrayCategory property labels associated with the listing.
cpvLabels[]objectOne category property label.
cpvLabels[].propertyIdstringCategory property ID.
cpvLabels[].propertyNamestringCategory property name.
cpvLabels[].valueIdstringCategory property value ID.
cpvLabels[].valueNamestringDisplay name of the category property value.
cpvTopicsarrayTopics associated with category properties on the listing.
cpvTopics[]objectOne topic associated with category properties.
cpvTopics[].idstringTopic ID.
cpvTopics[].namestringTopic display name.
cpvTopics[].pvListarrayProperty and value IDs associated with the topic.
cpvTopics[].pvList[]objectOne property and value pair associated with the topic.
cpvTopics[].pvList[].propertyIdstringCategory property ID.
cpvTopics[].pvList[].valueIdstringCategory property value ID.
Item services and charity badge7 fields

data.itemDO

FieldTypeDescription
uiItemServiceDOListarrayService guarantee entries provided with the listing.
uiItemServiceDOList[]objectOne service guarantee entry.
charitableItemstringText flag for whether the listing is marked as charitable.
charitableTagobjectDisplay tag for a charitable listing.
charitableTag.iconHeightstringTag icon height in pixels, as text.
charitableTag.iconWidthstringTag icon width in pixels, as text.
charitableTag.iconUrlstringTag icon image URL.
Seller profile12 fields

data.sellerDO

Seller profile and service information associated with the listing.

FieldTypeDescription
sellerIdstringXianyu seller ID.
nickstringSeller display name.
desensitizationNickstringMasked form of the seller display name.
uniqueNamestringUnique account name reported for the seller.
portraitUrlstringSeller profile image URL.
citystringCity reported on the seller profile.
publishCitystringCity reported for publication of the listing.
businessTypestringReported business type for the seller.
userRegDaystringReported days since seller registration, as text.
registerTimestringSeller registration time reported as timestamp text.
itemCountstringReported number of seller listings, as text.
hasSoldNumIntegerstringReported number of items sold by the seller, as text.
Seller replies and reviews9 fields

data.sellerDO

FieldTypeDescription
newGoodRatioRatestringSeller positive review rate as display text.
replyRatio24hstringSeller reply rate within 24 hours as display text.
replyIn24hRatioDoublestringNumeric form of the reported 24-hour reply rate, returned as text.
replyIntervalstringSeller reply interval as display text.
avgReply30dLongstringReported average reply duration over the last 30 days, returned as text.
remarkDOobjectCounts for seller review categories.
remarkDO.sellerDefaultRemarkCntstringReported default review count for the seller, as text.
remarkDO.sellerGoodRemarkCntstringReported positive review count for the seller, as text.
remarkDO.sellerBadRemarkCntstringReported negative review count for the seller, as text.
Seller badges26 fields

data.sellerDO

FieldTypeDescription
idleFishCreditTagobjectXianyu credit badge displayed for the seller.
idleFishCreditTag.iconHeightstringTag icon height in pixels, as text.
idleFishCreditTag.iconWidthstringTag icon width in pixels, as text.
idleFishCreditTag.iconUrlstringTag icon image URL.
sellerInfoTagsarraySeller information tags displayed with the listing.
sellerInfoTags[]objectOne seller information tag.
sellerInfoTags[].iconHeightstringTag icon height in pixels, as text.
sellerInfoTags[].iconWidthstringTag icon width in pixels, as text.
sellerInfoTags[].iconUrlstringTag icon image URL.
sellerInfoTags[].textstringText shown in the seller information tag.
identityTagsarrayDisplay tags for seller identity.
identityTags[]objectOne seller identity tag.
identityTags[].iconHeightstringTag icon height in pixels, as text.
identityTags[].iconWidthstringTag icon width in pixels, as text.
identityTags[].iconUrlstringTag icon image URL.
identityTags[].textstringText shown in the seller identity tag.
levelTagsarrayDisplay tags for seller level.
levelTags[]objectOne seller level tag.
levelTags[].iconHeightstringTag icon height in pixels, as text.
levelTags[].iconWidthstringTag icon width in pixels, as text.
levelTags[].iconUrlstringTag icon image URL.
goodSellerTagobjectGood seller badge displayed with the profile, when provided.
goodSellerTag.iconHeightstringTag icon height in pixels, as text.
goodSellerTag.iconWidthstringTag icon width in pixels, as text.
goodSellerTag.iconUrlstringTag icon image URL.
goodSellerTag.textstringText shown in the good seller badge.
Other listings from the seller7 fields

data.sellerDO

FieldTypeDescription
sellerItemsarrayEntries displayed for the seller's other listings. This list can be empty and can include an entry without an item ID.
sellerItems[]objectOne entry in the seller's other listings.
sellerItems[].itemIdstringRelated listing ID, when present.
sellerItems[].titlestringTitle displayed for the related listing.
sellerItems[].textstringDisplay text for the related listing entry.
sellerItems[].iconUrlstringImage URL accompanying the related listing entry.
sellerItems[].typestringType code for the related listing entry.

Response Example ​

Loading the response example...