Xianyu · E-commerce
Search listings by keyword
Send a keyword; get matching listings with price, price cut, want count, publish time, location, shipping, tags and photos.
POST/v1/xianyu/search
$0.007per record
- a record, minimum counted
- ≈ $0.010715
- 1,000 records
- ≈ $10.7143
- minimum per page of 10 records
- $0.107143
Paid balance onlyOne request, no cursor
Send it
POST with a JSON body, or GET with the same parameters in the query string. Your key goes in the Authorization header.
curl -X POST "https://api.silklinedata.com/v1/xianyu/search" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"keyword":"iphone"}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/xianyu/search",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"keyword": "iphone",
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/xianyu/search", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"keyword": "iphone"
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);What comes back
Records from a real request on 2026-11-09. Names, avatars and profile links of ordinary users show as <masked>; long text is cut here, not in the API.
{
"data": [
{
"type": "listing",
"listingId": "1092456183642",
"url": "https://www.goofish.com/item?id=10924…",
"searchKeyword": "iphone",
"position": 1,
"title": "Apple/苹果 iPhone 17 256GB 中国大陆版…",
"price": 4689,
"originalPrice": null,
"priceDrop": null,
"wantCount": 0,
"publishedAt": "2026-10-23T14:01:51Z",
"location": "江苏",
"shipping": "包邮",
"tags": [
"严选",
"99新·功能A",
"电池健康95%+"
],
"isVideo": false,
"isAd": false,
"isAuction": false,
"categoryId": "50025386",
"coverUrl": "https://img.alicdn.com/bao/uploaded/i…",
"imageUrls": [
"https://img.alicdn.com/bao/uploaded/i…",
"https://img.alicdn.com/bao/uploaded/i…",
"https://img.alicdn.com/bao/uploaded/i…"
],
"sellerReviewCount": 6822,
"sellerGoodRate": 36
},
{
"type": "listing",
"listingId": "1092166351289",
"url": "https://www.goofish.com/item?id=10921…",
"searchKeyword": "iphone",
"position": 2,
"title": "Apple/苹果 iPhone 17 256GB 中国大陆版…",
"price": 4189,
"originalPrice": null,
"priceDrop": null,
"wantCount": 0,
"publishedAt": "2026-10-22T10:12:26Z",
"location": "江苏",
"shipping": "包邮",
"tags": [
"严选",
"99新·功能A",
"电池健康90-95%"
],
"isVideo": false,
"isAd": false,
"isAuction": false,
"categoryId": "50025386",
"coverUrl": "https://img.alicdn.com/bao/uploaded/i…",
"imageUrls": [
"https://img.alicdn.com/bao/uploaded/i…",
"https://img.alicdn.com/bao/uploaded/i…",
"https://img.alicdn.com/bao/uploaded/i…"
],
"sellerReviewCount": 6822,
"sellerGoodRate": 36
}
],
"cursor": null,
"meta": {
"request_id": "req_01JD8Q…",
"charged_usd": "0.107143",
"balance_usd": "9.875000",
"items": 2
}
}Fields 22
| Field | Type | Example value |
|---|---|---|
| type | string | listing |
| listingId | string | 1092456183642 |
| url | string | https://www.goofish.com/item?id=1092456183642 |
| searchKeyword | string | iphone |
| position | number | 1 |
| title | string | Apple/苹果 iPhone 17 256GB 中国大陆版 白色 下方真机照片就是本机,只要在上架的就是有货;机器详情… |
| price | number | 4689 |
| originalPrice | null | null |
| priceDrop | null | null |
| wantCount | number | 0 |
| publishedAt | string | 2026-10-23T14:01:51Z |
| location | string | 江苏 |
| shipping | string | 包邮 |
| tags | array | ["严选","99新·功能A","电池健康95%+"] |
| isVideo | boolean | false |
| isAd | boolean | false |
| isAuction | boolean | false |
| categoryId | string | 50025386 |
| coverUrl | string | https://img.alicdn.com/bao/uploaded/i2/O1CN01ORrPeFRr7MD5HIi… |
| imageUrls | array | ["https://img.alicdn.com/bao/uploaded/i2/O1CN01ORrPeFRr7MD5H… |
| sellerReviewCount | number | 6822 |
| sellerGoodRate | number | 36 |
Parameters 2
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| limit | integer | no | How many records to return, 1 to 100. A request never returns more than this. | 5 |
| keyword | string | yes | Search keyword, Chinese or English. Leave it empty to use "iphone". | iphone |
Paging
This endpoint answers in one request: raise limit (up to 100) for more records. cursor is always null.
What a request costs
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged.
Here a page holds up to 10 records and its minimum is $0.107143; a request for 100 records reads 10 pages.
- 1 record: up to $0.107143
- 20 records: up to $0.214286
- 100 records: up to $1.07143
The response's meta says what was charged (charged_usd) and what is left (balance_usd). Errors on our side are not charged.
Questions
What parameters does Search listings by keyword take?
Required: keyword. Every request also takes limit (1 to 100).
How many records does one request return?
Up to 100 (limit 1 to 100). A page holds up to 10 records, so 100 records take 10 pages in one request.
Can I page through more results?
No. This endpoint answers in full in one request; the answer's cursor is null.
How much does it cost?
Per record: record $0.007. The minimum is $0.107143 per page: with few records or none, a request pays at most that for each page it reads, possibly less. 100 records cost at most $1.07143.
What does a request cost when it fails or comes back empty?
You pay per record; when a request returns few records or none, it is charged at most the endpoint minimum for each page it reads, possibly less, and errors or timeouts on our side are not charged. Each answer's meta says what the request was charged and the balance left.