# How do I search Xianyu listings by keyword and export them?

> Search live listings on Xianyu (闲鱼), China's biggest second-hand marketplace, export price, region, wants and listing time, then add condition, views and saves by item ID. Fields and cost.

Canonical page: https://okdata.online/answers/xianyu-search-export/

**Short answer: **okdata's Xianyu listing search returns about 10 listings a page for $0.022, with title, asking price, region, how many people want it and when it was listed, sorted by newest, price or seller credit if you like. For condition, views, saves and shipping, look up each item ID with Xianyu listing details at $0.022. Ten pages for one keyword (about 100 listings) cost $0.22.

Xianyu (闲鱼, also branded Goofish) is Alibaba's second-hand marketplace and the biggest in China: individuals list used phones, cameras, bags and almost anything else, at a price open to haggling. Brands watch it for grey-market stock and resale prices; resellers and analysts use it to price used goods. The website searches but does not export. Xianyu listing search returns live listings by keyword, page by page, which is enough for a price distribution; for condition, views and saves, look up the listings you care about one by one.

## The calls

1. **Search.** Call [Xianyu listing search](/apis/xianyu/products/search/) with Chinese keywords in `query`. `sort` takes `default` (Xianyu's own order), `newest`, `price_asc`, `price_desc` or `credit` (seller credit). With `view=full`, each listing has its `id`, link, title and `price` (the asking price in yuan), plus under `ext` the seller's region `area`, `wants` (people who tapped "I want this"), the listing time and a `tag` string such as 全新/包邮/极好 (new / free shipping / excellent). Page with `page.next_cursor`.
2. **Details.** Pass the item ID to [Xianyu listing details](/apis/xianyu/products/get/) for the full description, all photos, `ext.condition`, `ext.labels` (brand, model, how long it was used), `views`, `wants`, `favorites`, `shipping_fee` and whether it is still for sale, along with the seller's city and items sold. The ID is also the number in a `goofish.com` link.

## A real run

On November 20, 2026 we searched for 拍立得 (instant cameras) sorted by newest. All 10 listings had gone up in the previous 27 hours, priced from 128 to 1,699 yuan; `wants` was 0 on every one and `original_price` empty. One listing's details:

```json
{
  "id": "1102447248445",
  "title": "富士宽幅wide 400",
  "price": 904,
  "currency": "CNY",
  "ext": {
    "condition": "几乎全新",
    "labels": { "品牌": "Fujifilm/富士", "型号": "instax WIDE400", "已用年限": "6个月内" },
    "views": 16, "wants": 0, "favorites": 0, "shipping_fee": 0, "status": "在线"
  }
}
```

A Fujifilm Instax Wide 400 "almost new", used under six months, at 904 yuan with free shipping. In search, `sold`, `rating` and `reviews` are marked `platform`: Xianyu does not publish them.

## What it costs

| Approach | Calls | Cost |
|---|---|---|
| One page | 1 | $0.022 |
| Ten pages for one keyword (about 100 listings) | 10 | $0.22 |
| Ten pages, details for 20 listings | 30 | $0.66 |
| One newest-first page a day to watch a brand | 30 a month | $0.66 |

For a price distribution alone, skip the details; the asking prices in search are enough.

## Gotchas

- **Asking price, not sale price.** Buyers haggle on Xianyu. `price` is what the seller asks; what it sells for, and any sales record, are not visible.
- **Keywords pull in parts and broken units.** Our results included a Mini 8 listed as "doesn't power on, selling for parts". Filter by title and condition, or by model in the details' `labels`, before computing prices.
- **New listings have no wants yet.** Sorted by newest, `wants` and views have not built up; re-check details a few days later to judge demand.
- **Sellers are individuals.** Store the seller's city or items sold only if you need them, and leave names and avatars out.
- **Listings disappear fast.** An ID stored a few days ago may be sold or withdrawn, and its status in details will change.

## Related

- Buyer reviews of new goods on Taobao and Tmall: [How do I export Taobao and Tmall product reviews for analysis?](/answers/taobao-tmall-reviews-export/)
- Douyin's store: [How do I get Douyin Shop product and review data?](/answers/douyin-shop-products-reviews/)
- Pricing and sourcing research: [product research](/solutions/product-research/)

## Endpoints used

- [Xianyu listing search](https://okdata.online/apis/xianyu/products/search/) `xianyu.products.search`: $0.022 per call · about 10 products per page
- [Xianyu listing details](https://okdata.online/apis/xianyu/products/get/) `xianyu.products.get`: $0.022 per call

## More about Xianyu (Goofish)

- [Xianyu (Goofish) API](https://okdata.online/apis/xianyu/)
- [How can a brand outside China see what its products sell for on Taobao, 1688, Douyin Shop and Xianyu?](https://okdata.online/answers/brand-price-check-china-marketplaces/)
- [Product detail API](https://okdata.online/roles/products-get/)
- [Product search API](https://okdata.online/roles/products-search/)

## Sources

Where people asked this (read 2026-11-20): 

- https://www.v2ex.com/t/617361

Updated 2026-11-20
