# Xianyu Listing details API (xianyu.item_detail)

- Canonical page: https://everyinfra.com/en/xianyu-api/item_detail
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "xianyu", "action": "item_detail", "params": {...}}
- Price: $0.005556 per call ($5.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- Mode: sync only; everything it returns (every target of a batch, or every SKU of a product) is read in one call, and "mode": "async" returns 422 before any charge

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=xianyu&action=item_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| urls | not declared | yes | not declared | 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 | integer (1–) | no | not declared | 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. |

## Response fields (items in `results`)

| 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 | platform-native meaning |
| condition_level | platform-native meaning |
| status | platform-native meaning |
| quantity | platform-native 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 | platform-native meaning |
| province | platform-native 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 | platform-native meaning |
| seller_item_count | platform-native meaning |
| seller_sold_count | platform-native meaning |
| seller_good_review_rate | platform-native meaning |
| seller_reply_rate_24h | platform-native meaning |
| district | platform-native meaning |
| division_id | platform-native meaning |
| lat | platform-native meaning |
| lng | platform-native meaning |
| poi_name | platform-native meaning |
| poi_id | platform-native meaning |
| seller_avatar_url | Seller profile photo URL. |
| seller_city | platform-native meaning |
| seller_bio | platform-native meaning |
| seller_joined_at | platform-native meaning |
| seller_last_seen | platform-native meaning |
| seller_zhima_verified | platform-native meaning |
| seller_zhima_level | platform-native meaning |
| seller_zhima_level_code | platform-native meaning |
| seller_credit_level | platform-native meaning |
| seller_identity_tags | platform-native meaning |
| seller_other_items | platform-native meaning |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
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>"
    ]
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "xianyu",
        "action": "item_detail",
        "params": {
            "urls": [
                "https://www.goofish.com/item?id=<ITEM_ID>",
            ],
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "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": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=xianyu
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
