123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833 |
- export interface RequestBaseConfig {
- cookie?: string
- realIP?: string // IPv4/IPv6 filled in X-Real-IP
- proxy?: string // HTTP proxy
- }
- export interface MultiPageConfig {
- limit?: string | number
- offset?: string | number
- }
- export interface ImageUploadConfig {
- imgFile: {
- name: string
- data: string | Buffer
- }
- imgSize?: number
- imgX?: number
- imgY?: number
- }
- export interface APIBaseResponse {
- code: number
- cookie: string
- [index: string]: unknown
- }
- export interface Response<Body = APIBaseResponse> {
- status: number // The Http Response Code
- body: Body // API Response body
- cookie: string[]
- }
- export const enum SubAction {
- sub = 1,
- unsub = 0,
- }
- export function activate_init_profile(
- params: { nickname: string } & RequestBaseConfig,
- ): Promise<Response>
- export function album(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function album_detail(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function album_detail_dynamic(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export const enum AlbumListArea {
- all = 'ALL',
- zh = 'ZH',
- ea = 'EA',
- kr = 'KR',
- jp = 'JP',
- }
- export const enum ListOrder {
- hot = 'hot',
- new = 'new',
- }
- export function album_list(
- params: { area?: AlbumListArea; type: string } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export const enum AlbumListStyleArea {
- zh = 'Z_H',
- ea = 'E_A',
- kr = 'KR',
- jp = 'JP',
- }
- export function album_list_style(
- params: { area?: AlbumListStyleArea } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function album_new(
- params: { area?: AlbumListArea } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function album_newest(params: RequestBaseConfig): Promise<Response>
- export const enum AlbumSongsaleboardType {
- daily = 'daily',
- week = 'week',
- year = 'year',
- total = 'total',
- }
- export const enum AlbumSongsaleboardAlbumType {
- album = 0,
- single = 1,
- }
- export function album_songsaleboard(
- params: {
- albumType?: AlbumSongsaleboardAlbumType // 0 为数字专辑,1 为数字单曲
- type?: AlbumSongsaleboardType
- year?: string | number // 年份,默认本年。 type 为 year 时有效
- } & RequestBaseConfig,
- ): Promise<Response>
- export function album_sub(
- params: {
- id: string | number
- t: SubAction
- } & RequestBaseConfig,
- ): Promise<Response>
- export function album_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function artist_album(
- params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function artist_desc(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export const enum ArtistListArea {
- zh = 'Z_H',
- ea = 'E_A',
- kr = 'KR',
- jp = 'JP',
- }
- export const enum ArtistArea {
- all = '-1',
- zh = '7',
- ea = '96',
- ja = '8',
- kr = '16',
- other = '0',
- }
- export const enum ArtistType {
- male = '1',
- female = '2',
- band = '3',
- }
- export function artist_list(
- params: {
- area: ArtistArea
- initial?:
- | 'a'
- | 'b'
- | 'c'
- | 'd'
- | 'e'
- | 'f'
- | 'g'
- | 'h'
- | 'i'
- | 'j'
- | 'k'
- | 'l'
- | 'm'
- | 'n'
- | 'o'
- | 'p'
- | 'q'
- | 'r'
- | 's'
- | 't'
- | 'u'
- | 'v'
- | 'w'
- | 'x'
- | 'y'
- | 'z'
- | 'A'
- | 'B'
- | 'C'
- | 'D'
- | 'E'
- | 'F'
- | 'G'
- | 'H'
- | 'I'
- | 'J'
- | 'K'
- | 'L'
- | 'M'
- | 'N'
- | 'O'
- | 'P'
- | 'Q'
- | 'R'
- | 'S'
- | 'T'
- | 'U'
- | 'V'
- | 'W'
- | 'X'
- | 'Y'
- | 'Z'
- type?: ArtistType
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function artist_mv(
- params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export const enum ArtistSongsOrder {
- hot = 'hot',
- time = 'time',
- }
- export function artist_songs(
- params: {
- id: string | number
- order?: ArtistSongsOrder
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function artist_sub(
- params: { id: string | number; t: SubAction } & RequestBaseConfig,
- ): Promise<Response>
- export function artist_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function artist_top_song(
- params: {
- id: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function artists(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function audio_match(
- params: {
- duration: string | number
- audioFP: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function avatar_upload(
- params: ImageUploadConfig & RequestBaseConfig,
- ): Promise<Response>
- export const enum BannerType {
- pc = 0,
- android = 1,
- iphone = 2,
- ipad = 3,
- }
- export function banner(
- params: { type?: BannerType } & RequestBaseConfig,
- ): Promise<Response>
- export function batch(
- params: { [index: string]: unknown } & RequestBaseConfig,
- ): Promise<Response>
- export function captcha_sent(
- params: { phone: string; ctcode?: number | string } & RequestBaseConfig,
- ): Promise<Response>
- export function captcha_verify(
- params: {
- ctcode?: number | string
- phone: number | string
- captcha: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function cellphone_existence_check(
- params: {
- phone: number | string
- countrycode: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function check_music(
- params: { id: string | number; br: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export const enum SearchType {
- single = 1,
- album = 10,
- artist = 100,
- playlist = 1000,
- user = 1002,
- mv = 1004,
- lyric = 1006,
- dj = 1009,
- video = 1014,
- complex = 1018,
- }
- export function cloudsearch(
- params: {
- keywords: string
- type?: SearchType
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export const enum CommentType {
- song = 0,
- mv = 1,
- playlist = 2,
- album = 3,
- dj = 4,
- video = 5,
- event = 6,
- }
- export const enum CommentAction {
- add = 1,
- delete = 0,
- reply = 2,
- }
- export function comment(
- params: {
- id: string | number
- type: CommentType
- t: CommentAction.delete
- commentId: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment(
- params: {
- type: CommentType.event
- t: CommentAction.delete
- threadId: string
- commentId: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment(
- params: {
- id: string | number
- type: CommentType
- t: CommentAction.add
- content: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment(
- params: {
- type: CommentType.event
- t: CommentAction.add
- threadId: string
- content: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment(
- params: {
- id: string | number
- type: CommentType
- t: CommentAction.reply
- content: string | number
- commentId: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment(
- params: {
- type: CommentType.event
- t: CommentAction.reply
- threadId: string
- content: string | number
- commentId: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment_album(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_dj(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_event(
- params: {
- threadId: string
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_floor(
- params: {
- id: string | number
- parentCommentId: string | number
- type: CommentType
- limit?: string | number
- time?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment_hot(
- params: {
- id: string | number
- type: CommentType
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_hotwall_list(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function comment_like(
- params: {
- id: string | number
- type: CommentType
- t: SubAction
- cid: string | number
- threadId?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment_music(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_mv(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_playlist(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function comment_video(
- params: {
- id: string | number
- before?: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function countries_code_list(
- params: RequestBaseConfig,
- ): Promise<Response>
- export const enum DailySigninType {
- android = 0,
- pc = 1,
- }
- export function daily_signin(
- params: { type?: DailySigninType } & RequestBaseConfig,
- ): Promise<Response>
- export function digitalAlbum_ordering(
- params: {
- payment: string
- id: string | number
- quantity: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function digitalAlbum_purchased(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_banner(params: RequestBaseConfig): Promise<Response>
- export function dj_category_excludehot(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function dj_category_recommend(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function dj_catelist(params: RequestBaseConfig): Promise<Response>
- export function dj_detail(
- params: { rid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_hot(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_paygift(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_personalize_recommend(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_program(
- params: {
- rid: string | number
- asc: 'true' | 1 | 'false' | 0
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function dj_program_detail(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_program_toplist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_program_toplist_hours(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_radio_hot(
- params: {
- cateId: string | number
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function dj_recommend(params: RequestBaseConfig): Promise<Response>
- /*
- 有声书 10001
- 知识技能 453050
- 商业财经 453051
- 人文历史 11
- 外语世界 13
- 亲子宝贝 14
- 创作|翻唱 2001
- 音乐故事 2
- 3D|电子 10002
- 相声曲艺 8
- 情感调频 3
- 美文读物 6
- 脱口秀 5
- 广播剧 7
- 二次元 3001
- 明星做主播 1
- 娱乐|影视 4
- 科技科学 453052
- 校园|教育 4001
- 旅途|城市 12
- */
- export function dj_recommend_type(
- params: { type: number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_sub(
- params: { t: SubAction; rid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_today_perfered(
- params: { page?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_toplist(
- params: { type?: ListOrder } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_toplist_hours(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_toplist_newcomer(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function dj_toplist_pay(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function dj_toplist_popular(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function event(
- params: { pagesize?: number; lasttime?: number } & RequestBaseConfig,
- ): Promise<Response>
- export function event_del(
- params: { evId: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function event_forward(
- params: {
- forwords: string
- evId: string | number
- uid: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function fm_trash(
- params: { id: string | number; time?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function follow(
- params: { t: SubAction; id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function history_recommend_songs(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function history_recommend_songs_detail(
- params: { date?: string } & RequestBaseConfig,
- ): Promise<Response>
- export function homepage_block_page(
- params: {
- refresh?: 'true' | 'false' | boolean
- cursor?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function homepage_dragon_ball(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function hot_topic(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function like(
- params: {
- like?: 'true' | 'false' | boolean
- id: string | number
- alg?: string
- time?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function likelist(
- params: { uid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function login(
- params: { email: string; password: string } & RequestBaseConfig,
- ): Promise<Response>
- export function login(
- params: { email: string; md5_password: string } & RequestBaseConfig,
- ): Promise<Response>
- export function login_cellphone(
- params: {
- phone: number | string
- countrycode?: number | string
- password: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function login_cellphone(
- params: {
- phone: number | string
- countrycode?: number | string
- md5_password: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function login_cellphone(
- params: {
- phone: number | string
- countrycode?: number | string
- captcha: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function login_refresh(params: RequestBaseConfig): Promise<Response>
- export function login_status(params: RequestBaseConfig): Promise<Response>
- export function logout(params: RequestBaseConfig): Promise<Response>
- export function lyric(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function lyric_new(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function msg_comments(
- params: {
- uid: string | number
- before?: string | number
- limit?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function msg_forwards(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function msg_notices(
- params: {
- limit?: string | number
- lasttime?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function msg_private(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function msg_private_history(
- params: {
- before?: string | number
- limit?: string | number
- uid: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export const enum MvArea {
- all = '全部',
- zh = '内地',
- hk = '港台',
- ea = '欧美',
- kr = '韩国',
- jp = '日本',
- }
- export const enum MvType {
- all = '全部',
- offical = '官方版',
- raw = '原生',
- live = '现场版',
- netease = '网易出品',
- }
- export const enum MvOrder {
- trend = '上升最快',
- hot = '最热',
- new = '最新',
- }
- export function mv_all(
- params: {
- area?: MvArea
- type?: MvType
- order?: MvOrder
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function mv_detail(
- params: { mvid?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function mv_detail_info(
- params: { mvid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function mv_exclusive_rcmd(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function mv_first(
- params: { area?: MvArea; limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function mv_sub(
- params: { t: SubAction; mvid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function mv_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function mv_url(
- params: { id?: string | number; r?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function personal_fm(params: RequestBaseConfig): Promise<Response>
- export function personalized(
- params: { limit?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function personalized_djprogram(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function personalized_mv(params: RequestBaseConfig): Promise<Response>
- export function personalized_newsong(
- params: {
- area?: string | number
- limit?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function personalized_privatecontent(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function personalized_privatecontent_list(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_catlist(params: RequestBaseConfig): Promise<Response>
- export function playlist_cover_update(
- params: { id: string } & ImageUploadConfig & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_create(
- params: {
- name: string
- privacy: 0 | 10
- type?: PlaylistType
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_delete(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_desc_update(
- params: { id: string | number; desc: string } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_detail(
- params: { id: string | number; s?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_highquality_tags(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function playlist_hot(params: RequestBaseConfig): Promise<Response>
- export function playlist_name_update(
- params: { id: string | number; name: string } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_order_update(
- params: { ids: string } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_subscribe(
- params: { t: SubAction; id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_subscribers(
- params: { id?: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_tags_update(
- params: { id: string | number; tags: string } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_tracks(
- params: {
- op: 'add' | 'del'
- pid: string | number
- tracks: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_update(
- params: {
- id: string | number
- name: string
- desc?: string
- tags?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playmode_intelligence_list(
- params: {
- id: string | number
- pid: string | number
- sid?: string | number
- count?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function program_recommend(
- params: { type: string } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function rebind(
- params: {
- captcha: string
- phone: string
- oldcaptcha: string
- ctcode?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function recommend_resource(params: RequestBaseConfig): Promise<Response>
- export function recommend_songs(params: RequestBaseConfig): Promise<Response>
- export function register_cellphone(
- params: {
- captcha: string
- phone: string
- password: string
- nickname: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function related_allvideo(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function related_playlist(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export const enum ResourceType {
- mv = 1,
- dj = 4,
- video = 5,
- event = 6,
- }
- type PlaylistType = 'NROMAL' | 'VIDEO'
- export function resource_like(
- params: {
- t: SubAction
- type: ResourceType
- id?: string | number
- threadId?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function scrobble(
- params: {
- id: string | number
- sourceid: string | number
- time: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function search(
- params: {
- keywords: string
- type?: SearchType
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function search_default(params: RequestBaseConfig): Promise<Response>
- export function search_hot(params: RequestBaseConfig): Promise<Response>
- export function search_hot_detail(params: RequestBaseConfig): Promise<Response>
- export function search_multimatch(
- params: { type?: number; keywords: string } & RequestBaseConfig,
- ): Promise<Response>
- export const enum SearchSuggestType {
- mobile = 'mobile',
- web = 'web',
- }
- export function search_suggest(
- params: { keywords: string; type?: SearchSuggestType } & RequestBaseConfig,
- ): Promise<Response>
- export function send_playlist(
- params: {
- playlist: string | number
- msg: string
- user_ids: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function send_text(
- params: { msg: string; user_ids: string } & RequestBaseConfig,
- ): Promise<Response>
- export function setting(params: RequestBaseConfig): Promise<Response>
- export const enum ShareResourceType {
- song = 'song',
- playlist = 'playlist',
- mv = 'mv',
- djprogram = 'djprogram',
- djradio = 'djradio',
- }
- export function share_resource(
- params: {
- type?: ShareResourceType
- msg?: string
- id?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function simi_artist(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function simi_mv(
- params: { mvid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function simi_playlist(
- params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function simi_song(
- params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function simi_user(
- params: { id: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function song_detail(
- params: { ids: string } & RequestBaseConfig,
- ): Promise<
- Response<{
- songs: SongDetail[]
- privileges: unknown[]
- code: number
- }>
- >
- type SongDetail = {
- name: string
- id: number
- pst: number
- t: number
- ar: SongDetailArtist[]
- alia: string[]
- pop: number
- st: number
- rt: string | null
- fee: SongDetailFee
- v: number
- crbt: string | null
- cf: string
- al: SongDetailAlbum
- dt: number
- h: SongDetailQuality | null
- m: SongDetailQuality | null
- l: SongDetailQuality | null
- sq: SongDetailQuality | null
- hr: SongDetailQuality | null
- a: unknown | null
- cd: string
- no: number
- rtUrl: unknown | null
- ftype: number
- rtUrls: unknown[]
- djId: number
- copyright: SongDetailCopyright
- s_id: number
- mark: number
- originCoverType: SongDetailOriginCoverType
- originSongSimpleData: unknown | null
- tagPicList: unknown | null
- resourceState: boolean
- version: number
- songJumpInfo: unknown | null
- entertainmentTags: unknown | null
- awardTags: unknown | null
- single: number
- noCopyrightRcmd: unknown | null
- mv: number
- rtype: number
- rurl: unknown | null
- mst: number
- cp: number
- publishTime: number
- }
- type SongDetailArtist = {
- id: number
- name: string
- tns: unknown[]
- alias: unknown[]
- }
- type SongDetailFee = 0 | 1 | 4 | 8
- type SongDetailAlbum = {
- id: number
- name: string
- picUrl: string
- tns: unknown[]
- pic: number
- }
- type SongDetailQuality = {
- br: number
- fid: number
- size: number
- vd: number
- sr: number
- }
- type SongDetailCopyright = 0 | 1 | 2
- type SongDetailOriginCoverType = 0 | 1 | 2
- export function song_order_update(
- params: { pid: string | number; ids: string } & RequestBaseConfig,
- ): Promise<Response>
- export function song_url(
- params: { id: string | number; br?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export const enum SoundQualityType {
- standard = 'standard',
- exhigh = 'exhigh',
- lossless = 'lossless',
- hires = 'hires',
- jyeffect = 'jyeffect',
- jymaster = 'jymaster',
- sky = 'sky',
- }
- export function song_url_v1(
- params: { id: string | number; level: SoundQualityType } & RequestBaseConfig,
- ): Promise<Response>
- export function top_album(
- params: {
- area?: AlbumListArea
- type?: ListOrder
- year?: string
- mouth?: string
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function top_artists(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function top_list(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function top_mv(
- params: { area?: MvArea } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function top_playlist(
- params: { cat?: string; order?: ListOrder } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function top_playlist_highquality(
- params: {
- cat?: string
- before?: string | number
- limit?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export const enum TopSongType {
- all = 0,
- zh = 7,
- ea = 96,
- kr = 16,
- ja = 8,
- }
- export function top_song(
- params: { type: TopSongType } & RequestBaseConfig,
- ): Promise<Response>
- export function toplist(params: RequestBaseConfig): Promise<Response>
- export const enum ToplistArtistType {
- zh = 1,
- ea = 2,
- kr = 3,
- ja = 4,
- }
- export function toplist_artist(
- params: { type?: ToplistArtistType } & RequestBaseConfig,
- ): Promise<Response>
- export function toplist_detail(params: RequestBaseConfig): Promise<Response>
- export function user_audio(
- params: { uid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function user_cloud(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function user_cloud_del(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function user_cloud_detail(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function user_detail(
- params: { uid: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function user_dj(
- params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function user_event(
- params: {
- lasttime?: string | number
- limit?: string | number
- uid: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function user_followeds(
- params: {
- uid: string | number
- lasttime?: string | number
- limit?: string | number
- } & RequestBaseConfig,
- ): Promise<Response>
- export function user_follows(
- params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function user_level(params: RequestBaseConfig): Promise<Response>
- export function user_playlist(
- params: { uid: string | number } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export const enum UserRecordType {
- all = 0,
- weekly = 1,
- }
- export function user_record(
- params: { uid: string | number; type?: UserRecordType } & RequestBaseConfig,
- ): Promise<Response>
- export function user_subcount(params: RequestBaseConfig): Promise<Response>
- export function user_update(
- params: {
- birthday: string
- city: string
- gender: string
- nickname: string
- province: string
- signature: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function video_category_list(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function video_detail(
- params: { id: string } & RequestBaseConfig,
- ): Promise<Response>
- export function video_detail_info(
- params: { vid: string } & RequestBaseConfig,
- ): Promise<Response>
- export function video_group(
- params: { id: string; offset?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function video_group_list(params: RequestBaseConfig): Promise<Response>
- export function video_sub(
- params: { t?: SubAction; id: string } & RequestBaseConfig,
- ): Promise<Response>
- export function video_timeline_all(
- params: { offset?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function video_timeline_recommend(
- params: { offset?: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function video_url(
- params: { id: string | number; res?: number } & RequestBaseConfig,
- ): Promise<Response>
- export function weblog(
- params: { data?: { [index: string]: unknown } } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_mylike(
- params: {
- time?: number | string
- limit: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_track_add(
- params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_track_delete(
- params: { pid?: number | string; ids: number | string } & RequestBaseConfig,
- ): Promise<Response>
- export function comment_new(
- params: {
- type?: number | string
- id: number | string
- pageNo?: number | string
- pageSize?: number | string
- sortType?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function calendar(
- params: {
- startTime?: number | string
- endTime: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_video_recent(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function user_binding(
- params: { uid?: number | string } & RequestBaseConfig,
- ): Promise<Response>
- export function user_replacephone(
- params: {
- phone: number | string
- captcha: number | string
- oldcaptcha: number | string
- countrycode?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function user_safe(params: RequestBaseConfig): Promise<Response>
- export function dj_subscriber(
- params: {
- id: number | string
- limit?: number | string
- time?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function user_account(params: RequestBaseConfig): Promise<Response>
- export function yunbei(params: RequestBaseConfig): Promise<Response>
- export function yunbei_info(params: RequestBaseConfig): Promise<Response>
- export function yunbei_sign(params: RequestBaseConfig): Promise<Response>
- export function yunbei_receipt(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function yunbei_expense(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function yunbei_tasks(params: RequestBaseConfig): Promise<Response>
- export function yunbei_today(params: RequestBaseConfig): Promise<Response>
- export function yunbei_tasks_todo(params: RequestBaseConfig): Promise<Response>
- export function yunbei_task_finish(
- params: {
- userTaskId: number | string
- depositCode?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function msg_recentcontact(params: RequestBaseConfig): Promise<Response>
- export function hug_comment(
- params: {
- uid: number | string
- cid: number | string
- sid: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function comment_hug_list(
- params: {
- page: number | string
- cursor: number | string
- idCursor: number | string
- pageSize?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function topic_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function topic_sublist(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function artist_new_mv(
- params: {
- limit?: number | string
- startTimestamp?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function artist_new_song(
- params: {
- limit?: number | string
- startTimestamp?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function artist_detail(
- params: {
- id: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function cloud(
- params: {
- songFile: {
- name: string
- data: Buffer
- }
- } & RequestBaseConfig,
- ): Promise<Response>
- export function topic_detail(
- params: {
- actid?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function topic_detail_event_hot(
- params: {
- actid?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function login_qr_key(params: RequestBaseConfig): Promise<Response>
- export function login_qr_create(
- params: {
- key?: number | string
- qrimg?: boolean | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function login_qr_check(
- params: {
- key?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_detail_dynamic(
- params: { id: string | number } & RequestBaseConfig,
- ): Promise<Response>
- export function user_bindingcellphone(
- params: {
- phone: number | string
- captcha: number | string
- countrycode?: number | string
- password?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function listen_together_status(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function user_comment_history(
- params: {
- limit?: number | string
- uid: number | string
- time?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function cloud_match(
- params: {
- uid: number | string
- sid: number | string
- asid: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function yunbei_rcmd_song(
- params: {
- id: number | string
- reason?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function yunbei_rcmd_song_history(
- params: {
- size?: number | string
- cursor?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function song_purchased(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function mlog_url(
- params: {
- id?: number | string
- res?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function mlog_to_video(
- params: {
- id?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function vip_growthpoint(params: RequestBaseConfig): Promise<Response>
- export function vip_growthpoint_details(
- params: MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function vip_tasks(params: RequestBaseConfig): Promise<Response>
- export function vip_growthpoint_get(
- params: {
- ids?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function artist_fans(
- params: { id: number | string } & MultiPageConfig & RequestBaseConfig,
- ): Promise<Response>
- export function digitalAlbum_detail(
- params: {
- id: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function digitalAlbum_sales(
- params: {
- ids: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function musician_data_overview(
- params: RequestBaseConfig,
- ): Promise<Response>
- export function musician_play_trend(
- params: {
- startTime: number | string
- endTime: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function musician_tasks(params: RequestBaseConfig): Promise<Response>
- export function musician_cloudbean(params: RequestBaseConfig): Promise<Response>
- export function musician_cloudbean_obtain(
- params: {
- id: number | string
- period: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function vip_info(
- params: {
- uid?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function vip_info_v2(
- params: {
- uid?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function musician_sign(params: RequestBaseConfig): Promise<Response>
- export function song_download_url(
- params: {
- id: number | string
- br?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function playlist_track_all(
- params: {
- id: number | string
- s?: number | string
- } & MultiPageConfig &
- RequestBaseConfig,
- ): Promise<Response>
- export function artist_video(
- params: {
- id: number | string
- size?: number | string
- cursor?: number | string
- order?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function sign_happy_info(params: RequestBaseConfig): Promise<Response>
- export function record_recent_song(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function record_recent_video(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function record_recent_voice(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function record_recent_playlist(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function record_recent_album(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function record_recent_dj(
- params: {
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function signin_progress(
- params: {
- moduleId?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function nickname_check(
- params: {
- nickname: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function musician_tasks_new(params: RequestBaseConfig): Promise<Response>
- export function playlist_update_playcount(
- params: {
- id?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function vip_timemachine(
- params: {
- startTime?: number | string
- endTime?: number | string
- limit?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function song_wiki_summary(
- params: {
- id: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function sheet_list(
- params: {
- id: number | string
- abTest?: 'a' | 'b'
- } & RequestBaseConfig,
- ): Promise<Response>
- export function sheet_preview(
- params: {
- id: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function style_list(params: RequestBaseConfig): Promise<Response>
- export function style_preference(params: RequestBaseConfig): Promise<Response>
- export function style_detail(
- params: {
- tagId: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function style_song(
- params: {
- tagId: number | string
- size?: number | string
- cursor?: number | string
- sort?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function style_album(
- params: {
- tagId: number | string
- size?: number | string
- cursor?: number | string
- sort?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function style_playlist(
- params: {
- tagId: number | string
- size?: number | string
- cursor?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function style_artist(
- params: {
- tagId: number | string
- size?: number | string
- cursor?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function pl_count(params: RequestBaseConfig): Promise<Response>
- export function get_userids(
- params: {
- nicknames: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function voicelist_list_search(
- params: {
- limit?: string | number
- offset?: string | number
- name?: string
- displayStatus?: string
- type?: string
- voiceFeeType?: string | number
- radioId?: string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function voice_delete(
- params: {
- ids: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function djRadio_top(
- params: {
- djRadioId?: number | string
- sortIndex?: number | string
- dataGapDays?: number | string
- dataType?: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
- export function voice_lyric(
- params: {
- id: number | string
- } & RequestBaseConfig,
- ): Promise<Response>
|