# Xianyu API on SandBase

> Read Xianyu (Goofish) second-hand listings for resale research: keyword search sorted by activity, recency, seller credit or price, and listing details by item ID.

Source: https://www.sandbase.ai/apis/xianyu

- Endpoints: 2
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [Xianyu Item Details](https://www.sandbase.ai/apis/xianyu/item/detail.md): $0.028571 per call
  Get a Xianyu (Goofish) second-hand listing by item ID: title, price, description, images, seller and location.
- [Xianyu Item Search](https://www.sandbase.ai/apis/xianyu/search/items.md): $0.028571 per call
  Search Xianyu (Goofish) second-hand listings by keyword, sorted by activity, recency, seller credit or price.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
