{
  "openapi": "3.0.1",
  "info": {
    "title": "K-pop Chart API – Melon, Genie, Bugs, FLO, VIBE Rankings",
    "description": "K-pop chart rankings across Korean streaming services in one table: Melon, Genie, Bugs, FLO and NAVER VIBE realtime, daily and weekly charts, with each song's rank per platform, a combined rank and all-kill flag. Song search on all 5. No login. $0.25/1K rows, 500 free monthly.",
    "version": "0.3",
    "x-build-id": "qJcIqvfE711UhtPQi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/k-data-lab~korean-music-chart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-k-data-lab-korean-music-chart-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/k-data-lab~korean-music-chart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-k-data-lab-korean-music-chart-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/k-data-lab~korean-music-chart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-k-data-lab-korean-music-chart-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": {
          "chartType": {
            "title": "Chart type (차트 종류)",
            "enum": [
              "realtime",
              "daily",
              "weekly",
              "none"
            ],
            "type": "string",
            "description": "Which chart to compare across Korean streaming services: \"realtime\" (default, the current charts), \"daily\", \"weekly\", or \"none\" (song search only). All selected platforms are fetched for the same moment and merged into one K-pop ranking with an all-kill flag. Realtime = Melon TOP100, Genie TOP200, Bugs realtime, FLO chart (last 24 h) and VIBE Today Top 100 (VIBE has no realtime overall chart, so its daily chart is used). Weekly leaves out VIBE (no weekly chart). Example: \"realtime\". 실시간·일간·주간 차트 또는 검색만.",
            "default": "realtime"
          },
          "platforms": {
            "title": "Streaming platforms (플랫폼)",
            "type": "array",
            "description": "Korean music streaming services to fetch charts and search from; pick any of melon, genie, bugs, flo, vibe. Default: all 5. Example: [\"melon\", \"genie\"] = Melon and Genie only. 멜론·지니·벅스·FLO·바이브 중 선택.",
            "items": {
              "type": "string",
              "enum": [
                "melon",
                "genie",
                "bugs",
                "flo",
                "vibe"
              ],
              "enumTitles": [
                "Melon (멜론)",
                "Genie (지니)",
                "Bugs (벅스)",
                "FLO (플로)",
                "NAVER VIBE (바이브)"
              ]
            },
            "default": [
              "melon",
              "genie",
              "bugs",
              "flo",
              "vibe"
            ]
          },
          "maxRank": {
            "title": "Max rank per platform (플랫폼별 최대 순위)",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "How deep to read each platform chart, 1-300. Each platform has its own cap: Melon and Bugs 100, Genie 200, FLO 100 (daily 250), VIBE 300. Example: 100 = each chart's TOP100; 10 = compare the top 10 only (cheapest test). 플랫폼 차트마다 몇 위까지.",
            "default": 100
          },
          "searchKeywords": {
            "title": "Song or artist search (optional) (검색어)",
            "type": "array",
            "description": "Search all 5 platforms at once by song title or artist, in Korean or English. The same song is merged into one row with each platform's song ID and link (cross-platform song ID matching). Empty = no search. Example: [\"아이유\", \"aespa\"]. 곡명·아티스트로 5개 플랫폼 동시 검색.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxSearchResults": {
            "title": "Max songs per keyword and platform (검색 결과 수)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Songs to take from each platform for each search keyword, 1-500, best matches first. Used only with search keywords. Example: 30 (default); 5 = top 5 per platform. 검색어·플랫폼마다 가져올 곡 수.",
            "default": 30
          },
          "outputMode": {
            "title": "Output rows (출력 형식)",
            "enum": [
              "both",
              "unified",
              "perPlatform"
            ],
            "type": "string",
            "description": "\"both\" (default), \"unified\" or \"perPlatform\". unified = one row per song with its rank, score and all-kill flag on every platform; perPlatform = one row per song per platform (told apart by the `source` column, same columns); both = unified rows plus per-platform rows. You pay per row, so pick \"unified\" if you only need the combined ranking. Example: \"unified\". 통합 순위표 / 플랫폼별 행 / 둘 다.",
            "default": "both"
          },
          "proxyConfiguration": {
            "title": "Proxy (프록시)",
            "type": "object",
            "description": "Usually not needed. The actor connects directly and retries through Apify Proxy on its own if a site refuses. Example: {\"useApifyProxy\": false} (default). 보통은 필요 없습니다.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}