{
  "openapi": "3.0.1",
  "info": {
    "title": "QQ Music Scraper: QQ音乐 Songs, Charts & Comments",
    "description": "Scrape QQ Music (QQ音乐/y.qq.com) song, album, artist, and playlist metadata, chart/toplist rankings, and full song comments (nick, avatar, content, praise count) via its open JSON APIs. No login, no API key. Look up by songmid/albummid/singermid/dissid or search by keyword.",
    "version": "0.1",
    "x-build-id": "RBaY3tUVL9zne72gY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~qq-music-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-qq-music-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/getascraper~qq-music-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-qq-music-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/getascraper~qq-music-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-qq-music-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "resourceType": {
            "title": "Resource type",
            "enum": [
              "search",
              "song",
              "album",
              "singer",
              "playlist",
              "chart",
              "chartIndex"
            ],
            "type": "string",
            "description": "search: song keyword lookup. song: one song's metadata (+lyrics/comments). album: album detail + tracklist. singer: artist bio + catalog. playlist: playlist detail + tracklist. chart: one chart's 100-song snapshot. chartIndex: list of all available charts/toplists.",
            "default": "search"
          },
          "searchKeyword": {
            "title": "Search keyword",
            "type": "string",
            "description": "Song title, artist name, or lyric fragment to search for. Used only when Resource type = \"search\". Example: 周杰伦 or Jay Chou."
          },
          "songMid": {
            "title": "Song mid",
            "type": "string",
            "description": "QQ Music's song mid (e.g. 001Bbywq2gicae), not the numeric songid. Found in a song's URL (y.qq.com/n/ryqq/songDetail/<songmid>) or in this Actor's own \"search\" output (songMid field). Used only when Resource type = \"song\"."
          },
          "albumMid": {
            "title": "Album mid",
            "type": "string",
            "description": "QQ Music's album mid (e.g. 003DFRzD192KKD). Found in an album's URL (y.qq.com/n/ryqq/albumDetail/<albummid>) or in this Actor's \"search\"/\"song\" output (albumMid field). Used only when Resource type = \"album\"."
          },
          "singerMid": {
            "title": "Singer mid",
            "type": "string",
            "description": "QQ Music's singer/artist mid (e.g. 0025NhlN2yWrP4). Found in a singer's URL (y.qq.com/n/ryqq/singer/<singermid>) or in this Actor's output (singers[].mid field). Used only when Resource type = \"singer\"."
          },
          "dissId": {
            "title": "Playlist ID (dissid)",
            "type": "string",
            "description": "QQ Music's numeric playlist ID (e.g. 7707261125). Found in a playlist's URL (y.qq.com/n/ryqq/playlist/<dissid>). Used only when Resource type = \"playlist\"."
          },
          "chartId": {
            "title": "Chart / toplist ID",
            "type": "string",
            "description": "QQ Music's numeric chart/toplist ID (e.g. 26 for the 巅峰榜·热歌 hot-songs chart). Run Resource type = \"chartIndex\" first to discover all available chart IDs. Used only when Resource type = \"chart\"."
          },
          "includeLyrics": {
            "title": "Include full lyrics",
            "type": "boolean",
            "description": "Fetch the full timed (LRC) lyrics for the song. Adds one extra request. Only applies when Resource type = \"song\".",
            "default": false
          },
          "includeComments": {
            "title": "Include song comments",
            "type": "boolean",
            "description": "Fetch song comments (nick, avatar, content, praise count) as separate dataset items. This is the Actor's differentiated data - nobody else on Apify exposes QQ Music comments. Only applies when Resource type = \"song\".",
            "default": false
          },
          "commentsSortBy": {
            "title": "Comments sort order",
            "enum": [
              "newest",
              "hot"
            ],
            "type": "string",
            "description": "\"newest\" (chronological, newest first) is the reliable choice - every comment has populated text. \"hot\" (praise-ranked) can occasionally return a hot comment with no text populated by QQ Music's own API - see this Actor's AGENTS.md. Only applies when Include song comments is on.",
            "default": "newest"
          },
          "commentsSince": {
            "title": "Comments since (cursor)",
            "type": "string",
            "description": "ISO date/time (e.g. 2026-07-01 or 2026-07-01T00:00:00Z). Only comments posted after this moment are fetched - use this for recurring/scheduled runs to pull just the new comments since the last run, instead of re-fetching the whole history. Leave empty to fetch the most recent Max comments. Only applies when Include song comments is on and Comments sort order = \"newest\"."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of songs/charts to return: search results, album tracks, singer catalog songs, playlist tracks, or chart entries (chart/chartIndex modes). Ignored for Resource type = \"song\" (always 1 song).",
            "default": 20
          },
          "maxComments": {
            "title": "Max comments per song",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of comments to fetch for one song. Only applies when Include song comments is on.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "QQ Music's JSON APIs showed zero anti-bot signature during build-time recon (no WAF cookie, no signature, no TLS/JA3 gating) - datacenter proxy is the correct, cheaper default. Switch to residential only if you start seeing repeated connection failures at high volume.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}