For AI

Answers

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

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 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 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:

{
  "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.

Sources

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

Updated

Connect once, then just ask.

Every new key comes with $0.20 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp