채널 API
채널 정보 조회, 검색, 랭킹 API입니다.
채널 조회
채널 ID 또는 webPath로 채널 정보를 가져옵니다.
Endpoint
GET /v1/channels/{identifier}Request
Path Parameters
| Name | Type | Default |
|---|---|---|
identifier | string채널 ID (숫자) 또는 webPath (문자열) |
Query Parameters
| Name | Type | Default |
|---|---|---|
expand | boolean통계 정보 포함 여부 | false |
Response
Examples
cURL
Terminal
# ID로 조회
curl https://openapi.meloming.com/v1/channels/1
# webPath로 조회
curl https://openapi.meloming.com/v1/channels/meloming-official
# 통계 포함
curl "https://openapi.meloming.com/v1/channels/1?expand=true"채널 검색
Endpoint
GET /v1/channels/searchRequest
Query Parameters
| Name | Type | Default |
|---|---|---|
q | string검색어 (채널명, webPath, 닉네임) | |
page | number페이지 번호 | 1 |
limit | number결과 수 (최대 100) | 20 |
Response
| Name | Type | Default |
|---|---|---|
items | ChannelWithCountsResponse[]채널 목록 | |
pagination | Pagination페이지네이션 정보 |
Examples
cURL
Terminal
curl "https://openapi.meloming.com/v1/channels/search?q=멜로밍&limit=10"채널 랭킹
인기도 점수를 기반으로 채널 순위를 조회합니다.
Endpoint
GET /v1/channels/rankingRequest
Query Parameters
| Name | Type | Default |
|---|---|---|
limit | number조회 개수 (최대 50) | 10 |
days | number최근 N일 기준 | 30 |
favoritesWeight | number즐겨찾기 가중치 | 1.0 |
songLikesWeight | number노래 좋아요 가중치 | 1.0 |
songsWeight | number등록 노래 수 가중치 | 0.5 |
Response
인기도 점수 계산식: (즐겨찾기 × favoritesWeight) + (노래 좋아요 × songLikesWeight) + (노래 수 × songsWeight)
Examples
cURL
Terminal
# 기본 랭킹 조회
curl "https://openapi.meloming.com/v1/channels/ranking?limit=10"
# 커스텀 가중치 적용
curl "https://openapi.meloming.com/v1/channels/ranking?limit=20&favoritesWeight=2.0&songLikesWeight=1.5"Last updated on