Xianyu Listing details API
API health
- 24h health
- 100%
- 24h average time
- 38.67 s
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Get full Xianyu listings for 1 to 20 item IDs or goofish.com links. Get description, condition score, shipping fee, location and detailed seller stats. condition_level uses a 10-point scale. sold_count is null when Xianyu hides it. Listings that cannot be read are refunded.
Send POST https://api.everyinfra.com/api/v1/social with platform set to xianyu and action set to item_detail. Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous only: everything it returns (every target of a batch, or every SKU of a product) is read within this call, and "mode": "async" returns a 422 before any charge.
AI prompt
#Please help me write a data collection script with the EveryInfra Xianyu Listing details endpoint (xianyu/item_detail).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to xianyu and action to item_detail, and put the parameters inside params.
- Required parameters:
- urls: For item_detail, an array of 1–20 Xianyu listings: each entry is a numeric item ID (the item_id returned by search) or a https://www.goofish.com/item?id=<digits> link, and each listing may appear once.
- Optional parameters:
- limit: The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows.
- Returns a list of records. Main fields of each record: item_id (Numeric Xianyu listing ID (string)), url, title, text, price, original_price (Original price the seller entered, in y…), currency, shipping_fee, condition_level, status, quantity, want_count (Number of users who tapped the want but…); 45 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=xianyu.
- Example request body:
{
"platform": "xianyu",
"action": "item_detail",
"params": {
"urls": [
"https://www.goofish.com/item?id=<ITEM_ID>"
]
}
}
- Price: $5.56 per 1,000 requests; failed and empty results are not charged.
- This endpoint runs synchronously only; do not add "mode": "async" to the body.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | xianyu | Platform identifier, fixed value. |
action | body | string | Yes | item_detail | Capability identifier, fixed value. |
urls | body.params | array | Yes | - | For item_detail, an array of 1–20 Xianyu listings: each entry is a numeric item ID (the item_id returned by search) or a https://www.goofish.com/item?id=<digits> link, and each listing may appear once. Billing is per listing, and listings that cannot be read are refunded. App share short links are not accepted. |
limit | body.params | integer (1–) | No | - | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "xianyu",
"action": "item_detail",
"params": {
"urls": [
"https://www.goofish.com/item?id=<ITEM_ID>"
]
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "xianyu", "action": "item_detail", "results": [ { "item_id": …, "url": …, "title": …, "text": …, "price": …, "original_price": …, "currency": …, "shipping_fee": …, "condition_level": …, "status": …, "quantity": …, "want_count": …, "view_count": …, "collect_count": …, "sold_count": …, "province": …, "city": …, "category_id": …, "image_url": …, "images": …, "posted_at": …, "seller_id": …, "seller_name": …, "seller_url": …, "seller_item_count": …, "seller_sold_count": …, "seller_good_review_rate": …, "seller_reply_rate_24h": …, "district": …, "division_id": …, "lat": …, "lng": …, "poi_name": …, "poi_id": …, "seller_avatar_url": …, "seller_city": …, "seller_bio": …, "seller_joined_at": …, "seller_last_seen": …, "seller_zhima_verified": …, "seller_zhima_level": …, "seller_zhima_level_code": …, "seller_credit_level": …, "seller_identity_tags": …, "seller_other_items": …, "platform": … } ], "count": …, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
item_id | Numeric Xianyu listing ID (string); pass it as is in urls of item_detail. |
url | Link to the record on the platform. |
title | Title. null when the platform has no titles (for example text-only posts). |
text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
price | Price as a number without a currency symbol; see currency. |
original_price | Original price the seller entered, in yuan; null when not entered. |
currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
shipping_fee | Keeps the platform's own meaning |
condition_level | Keeps the platform's own meaning |
status | Keeps the platform's own meaning |
quantity | Keeps the platform's own meaning |
want_count | Number of users who tapped the want button. In search it comes from the card's label and is null when the card does not show it; null is not zero. |
view_count | Views or plays. null means not disclosed, not 0. |
collect_count | Saves or favorites. null means not disclosed, not 0. |
sold_count | Keeps the platform's own meaning |
province | Keeps the platform's own meaning |
city | Where the listing is, at city level as Xianyu shows it; some listings show only the province. Finer location, when the listing has it, is in district, lat, lng and poi_name. |
category_id | Xianyu category ID (string). |
image_url | Image link. Capabilities with several images may return an image_urls array. |
images | Array of image links in the platform's display order; absent when there are no images. |
posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
seller_id | Numeric seller ID (string). |
seller_name | Seller nickname. Xianyu partly masks it for signed-out visitors, and it is returned as the page shows it. |
seller_url | Keeps the platform's own meaning |
seller_item_count | Keeps the platform's own meaning |
seller_sold_count | Keeps the platform's own meaning |
seller_good_review_rate | Keeps the platform's own meaning |
seller_reply_rate_24h | Keeps the platform's own meaning |
district | Keeps the platform's own meaning |
division_id | Keeps the platform's own meaning |
lat | Keeps the platform's own meaning |
lng | Keeps the platform's own meaning |
poi_name | Keeps the platform's own meaning |
poi_id | Keeps the platform's own meaning |
seller_avatar_url | Seller profile photo URL. |
seller_city | Keeps the platform's own meaning |
seller_bio | Keeps the platform's own meaning |
seller_joined_at | Keeps the platform's own meaning |
seller_last_seen | Keeps the platform's own meaning |
seller_zhima_verified | Keeps the platform's own meaning |
seller_zhima_level | Keeps the platform's own meaning |
seller_zhima_level_code | Keeps the platform's own meaning |
seller_credit_level | Keeps the platform's own meaning |
seller_identity_tags | Keeps the platform's own meaning |
seller_other_items | Keeps the platform's own meaning |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- Alibaba Open Platform: Xianyu Item IDs and Condition Grades ↗
Alibaba's item query API for authorized Xianyu ISV partners identifies one listing by its numeric Xianyu item ID and grades condition with stuff_status: 100 is brand new, 95 is 95% new, and -1 is nearly new. Calls require authorization inside Alibaba's partner environment; the source confirms the identifier and condition terminology only and does not mean EveryInfra uses this API or can read every field of any listing.
Checked 2026-09-29