Discover/ximalaya.com API
live

ximalaya.com APIximalaya.com

Access Ximalaya audio content via API: browse categories, fetch album and track metadata, search by keyword, retrieve comments, and pull user profiles.

Endpoints
7
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/6306b7e5-8c54-4f86-ba68-c4aaf14e4300/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/6306b7e5-8c54-4f86-ba68-c4aaf14e4300/get_categories' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 7 totalclick to expand

Get all content categories available on Ximalaya. Returns a list of category objects with IDs, names, and display titles.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "ret": "integer status code (200 for success)",
    "data": "object containing 'categories' array of category objects with id, name, title, categoryType, orderNum, parentId, isDisplay"
  },
  "sample": {
    "data": {
      "ret": 200,
      "data": {
        "categories": [
          {
            "id": 2,
            "name": "music",
            "title": "音乐",
            "orderNum": 4,
            "parentId": 0,
            "isDisplay": true,
            "categoryType": 0
          },
          {
            "id": 3,
            "name": "book",
            "title": "有声书",
            "orderNum": 1,
            "parentId": 0,
            "isDisplay": true,
            "categoryType": 0
          }
        ]
      }
    },
    "status": "success"
  }
}

About the ximalaya.com API

The Ximalaya API provides 7 endpoints covering China's largest podcast and audiobook platform, returning structured data across categories, albums, tracks, comments, and user profiles. With get_album_tracks you can retrieve paginated track listings including duration, play counts, pricing flags, and comment totals. Album-level detail via get_album_info includes subscription counts, anchor identity, and pay-gating status.

Categories and Album Discovery

The get_categories endpoint returns a flat list of all top-level and nested content categories, each carrying id, name, title, categoryType, parentId, orderNum, and isDisplay fields. Once you have a category name in pinyin format (verified values include youshengshu, yinyue, ertong, xiangsheng), get_category_albums returns a paginated list of albums sorted by popularity, with per-album fields such as albumId, coverPath, anchorName, isPaid, isFinished, and track counts.

Album Detail and Track Listings

get_album_info accepts a numeric album_id and returns nested album metadata under albumPageMainInfo: albumTitle, cover, playCount, subscribeCount, shortIntro, isPaid, and anchor details. get_album_tracks adds a sort_asc parameter (true / false) and paginates a list of track objects, each with trackId, title, duration, playtimes, likes, comments, isPaid, isFree, and price. Note that get_album_tracks returns ret: 0 on success, while several other endpoints signal success with ret: 200.

Comments and User Profiles

get_album_comments returns an albumScore, allCommentsCount, a scoreDiagram distribution, and a paginated list of comment objects with commentId, content, user info, likes, and reply counts. The optional order parameter accepts values like content-score-desc to sort by rating. get_user_info takes a numeric uid obtainable from album or track responses and returns nickName, cover, personalSignature, fansCount, gender, province, city, anchorGrade, and follower counts.

Search

search_albums accepts a query string supporting both Chinese characters and English, and returns an album.docs array with per-result fields including albumId, title, playCount, tracksCount, and anchor information. Pagination is available via page and page_size parameters.

Common use cases
  • Build a catalog browser for Ximalaya audiobooks using get_category_albums filtered to the youshengshu category.
  • Monitor subscription and play-count trends for specific albums by polling get_album_info over time.
  • Aggregate user ratings and comment sentiment for albums using albumScore and scoreDiagram from get_album_comments.
  • Search Ximalaya's library by keyword with search_albums to surface relevant audio content for a recommendation engine.
  • Retrieve track-level pricing flags (isPaid, isFree, price) from get_album_tracks to map paid content distribution across categories.
  • Pull anchor profiles via get_user_info using UIDs from album responses to enrich creator datasets with fansCount and anchorGrade.
  • Cross-reference category hierarchy from get_categories with album metadata to analyze content distribution by parentId and categoryType.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Ximalaya have an official developer API?+
Ximalaya does not offer a publicly documented developer API for third-party access. Access to platform data for developers has historically required partnership agreements, and no self-serve API portal is available at ximalaya.com.
How does the `get_album_tracks` endpoint handle sorting and pagination?+
Pass sort_asc=true for ascending track order or sort_asc=false for descending. Use page and page_size to paginate. Each track object in the returned list includes trackId, title, duration, playtimes, likes, comments, isPaid, isFree, and price. A successful response returns ret: 0, unlike most other endpoints which return ret: 200.
Can I retrieve individual track audio stream URLs through this API?+
Not currently. The API returns track metadata including trackId, duration, playtimes, and pricing flags, but does not expose audio stream URLs. You can fork this API on Parse and revise it to add an endpoint that returns playback URLs for specific track IDs.
Are there limitations on which category names work with `get_category_albums`?+
The category_name parameter requires pinyin format. Verified working values are youshengshu, yinyue, ertong, and xiangsheng. You can obtain the full set of valid category names and their IDs first by calling get_categories, then matching the name field from those results.
Does the API cover track-level comments or only album-level comments?+
Currently only album-level comments are covered via get_album_comments, which returns comment content, user identity, likes, reply counts, and score distribution for a given album_id. Track-level comments are not exposed. You can fork this API on Parse and revise it to add a track comments endpoint using a trackId as input.
Page content last updated . Spec covers 7 endpoints from ximalaya.com.
Related APIs in MusicSee all →
djmag.com API
Access the latest DJ and electronic music news, discover rankings of the world's top 100 DJs and clubs, view detailed club profiles, and search through DJ Mag's extensive article archive. Stay updated on the electronic music scene with curated features, news updates, and industry insights all in one place.
glastonburyfestivals.co.uk API
Discover historical and current Glastonbury Festival line-ups, find artist set times and stage locations, and search for specific performers across all festival years. Stay updated with the latest festival news and explore detailed information about festival areas and stages.
puntoticket.com API
Browse and search events happening in Chile with PuntoTicket, viewing featured shows, filtering by category, and checking detailed pricing and availability for concerts, theater, sports, and more. Find the perfect event by exploring all listings or discovering what's trending right now.
aoni.co.jp API
Browse and search voice actors, actresses, and junior talents from Aoni Production with detailed profiles including audio samples and work history. Access company information, news updates, and booking details to discover Japanese voice acting talent.
merchbar.com API
Search and discover music merchandise across vinyls, CDs, apparel, and accessories, then track product details, new arrivals, and sales by artist. Find exactly what you're looking for with real-time product information and pricing updates.
amoeba.com API
Search and browse Amoeba Music's catalog of vinyl records and CDs, including used listings, to find product details and discover new releases. Check store information to plan your visits to Amoeba's physical locations.
boletia.com API
Browse and search events on Boletia.com to discover concerts, shows, and performances across different venues and organizers, then view detailed event information and available ticket options. Filter events by category, venue, organizer, or explore trending music events in Mexico City.
axs.com API
Search for events, performers, and venues across AXS.com to find tickets, pricing, and availability information in your area or by category. Browse featured events, explore venues by city, and access detailed event information all in one place.