# Ximalaya API on SandBase

> Ximalaya data API endpoints available through one SandBase API key.

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

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

- [Ximalaya Album Comments](https://www.sandbase.ai/apis/ximalaya/album-comments.md): $0.03 per call
  Retrieve comments for an album with pagination. Returns comment content, author nickname, likes, reply count, region, creation timestamp, and overall album score/rating statistics.
- [Ximalaya Album Info](https://www.sandbase.ai/apis/ximalaya/album-info.md): $0.03 per call
  Retrieve detailed metadata for a single album by its numeric ID. Returns title, cover, play count, subscription count, pricing, intro text, category, dates added and last changed, and anchor details. ...
- [Ximalaya Album Tracks](https://www.sandbase.ai/apis/ximalaya/album-tracks.md): $0.03 per call
  List tracks within an album with pagination. Returns track title, duration (seconds), play count, likes, comments count, pricing info, and order number. Paginates via page number.
- [Ximalaya Categories](https://www.sandbase.ai/apis/ximalaya/categories.md): $0.03 per call
  Retrieve all top-level content categories on Ximalaya. Each category has a pinyin name usable as a key in get_category_albums. Returns the full category tree in one call (no pagination).
- [Ximalaya Category Albums](https://www.sandbase.ai/apis/ximalaya/category-albums.md): $0.03 per call
  List albums within a category, sorted by popularity. Category is identified by its pinyin name (from get_categories). Paginates via page number; each page returns up to page_size albums with play coun...
- [Ximalaya Search Albums](https://www.sandbase.ai/apis/ximalaya/search-albums.md): $0.03 per call
  Full-text search for albums by keyword. Supports Chinese and English queries. Returns paginated results with album summaries including play counts, track counts, anchor name, and intro text.
- [Ximalaya User Info](https://www.sandbase.ai/apis/ximalaya/user-info.md): $0.03 per call
  Retrieve public profile information for a user or anchor by numeric UID. Returns nickname, avatar, fan count, following count, track/album counts, personal signature, province/city, anchor grade, and ...

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