# Xianyu Second-hand Search

> Search Xianyu (闲鱼, Goofish) listings by keyword and compare asking prices, sellers, locations and conditions. Runs on live data with your SandBase account.

- Type: SandBase tool
- Category: E-commerce
- Price: $0.028571 per run, billed to your SandBase account
- Page: https://www.sandbase.ai/tools/commerce/xianyu-second-hand-search

## About

Search Xianyu (闲鱼, Goofish) listings by keyword and compare asking prices, sellers, locations and conditions.

## How it works

1. **Enter an item and choose a sort** Type the item in Item, up to 100 characters, such as iPhone 15. Choose a Sort: Most active, Newest, Price: low to high, Price: high to low or Seller credit. The keyword is sent as typed, so use the words sellers put in their listing titles.
2. **Search xianyu/search/items, page one** SandBase sends your item as keyword and your sort to xianyu/search/items, with page fixed at 1. Each Xianyu search is billed to your SandBase account at the price the page shows before you run.
3. **Compare asking prices and sellers** The page lists Xianyu listings with asking price in Chinese yuan, seller, location and condition. It shows the results count, median asking price and price range. Each listing links back to Xianyu, and the complete xianyu/search/items JSON is under Raw API response.

## What people use it for

- **Resellers**: Price used electronics.
- **Buyers**: Know a fair second-hand price.
- **Brands**: Watch resale value of your products.

## Xianyu data with an API

```bash
curl -X POST https://api.sandbase.ai/v1/api/xianyu/search/items \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "iPhone 15",
  "sort": "active",
  "page": "1"
}'
```

- [xianyu/search/items API](https://www.sandbase.ai/apis/xianyu/search/items)
- [All Xianyu APIs](https://www.sandbase.ai/apis/xianyu)

## FAQ

### Does Xianyu Second-hand Search show sold prices?

No. Xianyu Second-hand Search shows current asking prices on Xianyu, in Chinese yuan.

### Which sort orders does Xianyu Second-hand Search offer?

Xianyu Second-hand Search offers Most active, Newest, Price: low to high, Price: high to low and Seller credit.

### Does Xianyu Second-hand Search read more than one page?

No. Xianyu Second-hand Search requests page 1 of the results. Call the endpoint with a different page value to go further.

### Do I need a Xianyu or Taobao account for Xianyu Second-hand Search?

No. Xianyu Second-hand Search runs on your SandBase account and does not connect to any Xianyu account.

### Is Xianyu Second-hand Search free on xianyu/search/items?

No. Xianyu Second-hand Search bills every xianyu/search/items call to your SandBase account. The page and sandbase inspect show the price first. Pricing: https://www.sandbase.ai/pricing

### Can I get Xianyu listings from the xianyu/search/items API?

Yes. Call POST /v1/api/xianyu/search/items with a SandBase API key, sending keyword, sort and page. Xianyu Second-hand Search shows the request example.
