All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost | POST /api/v1/net_ease_cloud_music/app/decrypt_post_payload | 解密POST请求中的16进制payload/Decrypt the 16-bit payload in the POST request |
decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost_0 | POST /api/v1/net_ease_cloud_music/app/decrypt_post_payload | 解密POST请求中的16进制payload/Decrypt the 16-bit payload in the POST request |
encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost | POST /api/v1/net_ease_cloud_music/app/encrypt_post_payload | 加密POST请求中的payload并且返回16进制/Encrypt the payload in the POST request and return 16 hexadecimal |
encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost_0 | POST /api/v1/net_ease_cloud_music/app/encrypt_post_payload | 加密POST请求中的payload并且返回16进制/Encrypt the payload in the POST request and return 16 hexadecimal |
fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet | GET /api/v1/net_ease_cloud_music/app/fetch_artist_detail | 获取歌手信息/Fetch artist detail |
fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_artist_detail | 获取歌手信息/Fetch artist detail |
fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet | GET /api/v1/net_ease_cloud_music/app/fetch_music_comment | 获取歌曲评论/Fetch music comment |
fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_music_comment | 获取歌曲评论/Fetch music comment |
fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet | GET /api/v1/net_ease_cloud_music/app/fetch_music_log_video_url | Mlog(音乐视频)播放地址/Mlog (music video) playback address |
fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_music_log_video_url | Mlog(音乐视频)播放地址/Mlog (music video) playback address |
fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_lyric | 获取单一歌曲歌词/Fetch one music lyric |
fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_lyric | 获取单一歌曲歌词/Fetch one music lyric |
fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_url_v1 | 获取单一歌曲播放地址V1(只能返回MP3格式,支持参数较少)/Fetch one music URL V1 (only MP3 format is supported, with fewer parameters) |
fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get_0 | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_url_v1 | 获取单一歌曲播放地址V1(只能返回MP3格式,支持参数较少)/Fetch one music URL V1 (only MP3 format is supported, with fewer parameters) |
fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_url_v2 | 获取单一歌曲播放地址V2(支持更多参数)/Fetch one music URL V2 (support more parameters) |
fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get_0 | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_url_v2 | 获取单一歌曲播放地址V2(支持更多参数)/Fetch one music URL V2 (support more parameters) |
fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_v1 | 获取单一歌曲信息V1(信息更全) |
fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get_0 | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_v1 | 获取单一歌曲信息V1(信息更全) |
fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_v2 | 获取单一歌曲信息V2(信息更少) |
fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get_0 | GET /api/v1/net_ease_cloud_music/app/fetch_one_music_v2 | 获取单一歌曲信息V2(信息更少) |
fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet | GET /api/v1/net_ease_cloud_music/app/fetch_user_event | 获取用户动态/Fetch user event |
fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_user_event | 获取用户动态/Fetch user event |
fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet | GET /api/v1/net_ease_cloud_music/app/fetch_user_followers | 获取用户粉丝列表/Fetch user followers |
fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_user_followers | 获取用户粉丝列表/Fetch user followers |
fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet | GET /api/v1/net_ease_cloud_music/app/fetch_user_follows | 获取用户关注列表/Fetch user follows |
fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_user_follows | 获取用户关注列表/Fetch user follows |
fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet | GET /api/v1/net_ease_cloud_music/app/fetch_user_info | 获取用户信息/Get user information |
fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_user_info | 获取用户信息/Get user information |
fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet | GET /api/v1/net_ease_cloud_music/app/fetch_user_playlist | 获取用户歌单/Get user playlist |
fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet_0 | GET /api/v1/net_ease_cloud_music/app/fetch_user_playlist | 获取用户歌单/Get user playlist |
searchV1ApiV1NetEaseCloudMusicAppSearchV1Get | GET /api/v1/net_ease_cloud_music/app/search_v1 | 搜索接口V1/Search interface V1 |
searchV1ApiV1NetEaseCloudMusicAppSearchV1Get_0 | GET /api/v1/net_ease_cloud_music/app/search_v1 | 搜索接口V1/Search interface V1 |
String decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost(body)
解密POST请求中的16进制payload/Decrypt the 16-bit payload in the POST request
[中文] ### 用途: - 解密网易云音乐APP POST请求中的16进制payload。 ### 参数: - payload: 16进制payload。 ### 返回: - 解密后的payload # [English] ### Purpose: - Decrypt the 16-bit payload in the POST request of NetEase Cloud Music APP. ### Parameters: - payload: 16-bit payload. ### Returns: - Decrypted payload # [示例/Example] payload = "4AEEAB033C3F4068DBB74379B8C889D2187585FBBBC7CA1ADA7D10714AA139AE279A615DE7B87483A83A9091ED52D70B70DA02A7FE8A20317AA40F0FF461AC33DB77371E30F9C7F57783E800559AE08DD1E10EFC9CDC69D6815ADCDBF5A7D3006AA3B102FBE7296AB0DB9EA5C46AD12B"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String body = 4AEEAB033C3F4068DBB74379B8C889D2187585FBBBC7CA1ADA7D10714AA139AE279A615DE7B87483A83A9091ED52D70B70DA02A7FE8A20317AA40F0FF461AC33DB77371E30F9C7F57783E800559AE08DD1E10EFC9CDC69D6815ADCDBF5A7D3006AA3B102FBE7296AB0DB9EA5C46AD12B; // String |
try {
String result = apiInstance.decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | String | [optional] |
String
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost_0(body)
解密POST请求中的16进制payload/Decrypt the 16-bit payload in the POST request
[中文] ### 用途: - 解密网易云音乐APP POST请求中的16进制payload。 ### 参数: - payload: 16进制payload。 ### 返回: - 解密后的payload # [English] ### Purpose: - Decrypt the 16-bit payload in the POST request of NetEase Cloud Music APP. ### Parameters: - payload: 16-bit payload. ### Returns: - Decrypted payload # [示例/Example] payload = "4AEEAB033C3F4068DBB74379B8C889D2187585FBBBC7CA1ADA7D10714AA139AE279A615DE7B87483A83A9091ED52D70B70DA02A7FE8A20317AA40F0FF461AC33DB77371E30F9C7F57783E800559AE08DD1E10EFC9CDC69D6815ADCDBF5A7D3006AA3B102FBE7296AB0DB9EA5C46AD12B"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String body = 4AEEAB033C3F4068DBB74379B8C889D2187585FBBBC7CA1ADA7D10714AA139AE279A615DE7B87483A83A9091ED52D70B70DA02A7FE8A20317AA40F0FF461AC33DB77371E30F9C7F57783E800559AE08DD1E10EFC9CDC69D6815ADCDBF5A7D3006AA3B102FBE7296AB0DB9EA5C46AD12B; // String |
try {
String result = apiInstance.decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost_0(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#decryptPostPayloadApiV1NetEaseCloudMusicAppDecryptPostPayloadPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
body | String | [optional] |
String
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost(uri, addVariable, body)
加密POST请求中的payload并且返回16进制/Encrypt the payload in the POST request and return 16 hexadecimal
[中文] ### 用途: - 加密POST请求中的payload并且返回16进制。 ### 参数: - payload: 需要加密的payload。 ### 返回: - 加密后的16进制payload # [English] ### Purpose: - Encrypt the payload in the POST request and return 16 hexadecimal. ### Parameters: - payload: Payload to be encrypted. ### Returns: - Encrypted 16 hexadecimal payload # [示例/Example] payload = {"id": 2135155051, "br": 192000}
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uri = eapi/song/enhance/player/url/v1; // String | 请求URI/Request URI
Boolean addVariable = false; // Boolean | 是否添加变量/Whether to add variables
Object body = {"id":2135155051,"br":192000}; // Object |
try {
String result = apiInstance.encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost(uri, addVariable, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | 请求URI/Request URI | |
addVariable | Boolean | 是否添加变量/Whether to add variables | [optional] [default to false] |
body | Object | [optional] |
String
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost_0(uri, addVariable, body)
加密POST请求中的payload并且返回16进制/Encrypt the payload in the POST request and return 16 hexadecimal
[中文] ### 用途: - 加密POST请求中的payload并且返回16进制。 ### 参数: - payload: 需要加密的payload。 ### 返回: - 加密后的16进制payload # [English] ### Purpose: - Encrypt the payload in the POST request and return 16 hexadecimal. ### Parameters: - payload: Payload to be encrypted. ### Returns: - Encrypted 16 hexadecimal payload # [示例/Example] payload = {"id": 2135155051, "br": 192000}
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uri = eapi/song/enhance/player/url/v1; // String | 请求URI/Request URI
Boolean addVariable = false; // Boolean | 是否添加变量/Whether to add variables
Object body = {"id":2135155051,"br":192000}; // Object |
try {
String result = apiInstance.encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost_0(uri, addVariable, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#encryptPostPayloadApiV1NetEaseCloudMusicAppEncryptPostPayloadPost_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | 请求URI/Request URI | |
addVariable | Boolean | 是否添加变量/Whether to add variables | [optional] [default to false] |
body | Object | [optional] |
String
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet(artistId)
获取歌手信息/Fetch artist detail
[中文] ### 用途: - 获取歌手信息。 ### 参数: - artist_id: 歌手ID。 ### 返回: - 歌手信息 # [English] ### Purpose: - Fetch artist detail. ### Parameters: - artist_id: Artist ID. ### Returns: - Artist detail # [示例/Example] artist_id = "12213291"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String artistId = 12213291; // String | 歌手ID/Artist ID
try {
String result = apiInstance.fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet(artistId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
artistId | String | 歌手ID/Artist ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet_0(artistId)
获取歌手信息/Fetch artist detail
[中文] ### 用途: - 获取歌手信息。 ### 参数: - artist_id: 歌手ID。 ### 返回: - 歌手信息 # [English] ### Purpose: - Fetch artist detail. ### Parameters: - artist_id: Artist ID. ### Returns: - Artist detail # [示例/Example] artist_id = "12213291"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String artistId = 12213291; // String | 歌手ID/Artist ID
try {
String result = apiInstance.fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet_0(artistId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchArtistDetailApiV1NetEaseCloudMusicAppFetchArtistDetailGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
artistId | String | 歌手ID/Artist ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet(resourceId, beforeTime, limit)
获取歌曲评论/Fetch music comment
[中文] ### 用途: - 获取歌曲评论。 ### 参数: - resource_id: 资源ID,可以是歌曲ID,专辑ID等。 - beforeTime: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条评论的时间戳,或者查看返回的Next_Page_beforeTime字段。 - limit: 每页数量,默认为30。 ### 返回: - 歌曲评论 # [English] ### Purpose: - Fetch music comment. ### Parameters: - resource_id: Resource ID, can be song ID, album ID, etc. - beforeTime: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last comment returned on the first page on the second page, or check the Next_Page_beforeTime field returned. - limit: Number per page, default is 30. ### Returns: - Music comment # [示例/Example] resource_id = "2135155051" beforeTime = "0" limit = "30"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String resourceId = 2135155051; // String | 资源ID/Resource ID
String beforeTime = 0; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String limit = 30; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet(resourceId, beforeTime, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
resourceId | String | 资源ID/Resource ID | |
beforeTime | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to ""] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "30"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet_0(resourceId, beforeTime, limit)
获取歌曲评论/Fetch music comment
[中文] ### 用途: - 获取歌曲评论。 ### 参数: - resource_id: 资源ID,可以是歌曲ID,专辑ID等。 - beforeTime: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条评论的时间戳,或者查看返回的Next_Page_beforeTime字段。 - limit: 每页数量,默认为30。 ### 返回: - 歌曲评论 # [English] ### Purpose: - Fetch music comment. ### Parameters: - resource_id: Resource ID, can be song ID, album ID, etc. - beforeTime: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last comment returned on the first page on the second page, or check the Next_Page_beforeTime field returned. - limit: Number per page, default is 30. ### Returns: - Music comment # [示例/Example] resource_id = "2135155051" beforeTime = "0" limit = "30"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String resourceId = 2135155051; // String | 资源ID/Resource ID
String beforeTime = 0; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String limit = 30; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet_0(resourceId, beforeTime, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchMusicCommentApiV1NetEaseCloudMusicAppFetchMusicCommentGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
resourceId | String | 资源ID/Resource ID | |
beforeTime | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to ""] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "30"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet(mlogId, resolution)
Mlog(音乐视频)播放地址/Mlog (music video) playback address
[中文] ### 用途: - 获取Mlog(音乐视频)播放地址。 ### 参数: - mlogId: Mlog ID,可以在APP中点击分享按钮获取链接,链接中包含mlogId。 - resolution: 分辨率,默认为1080,保持默认即可。 ### 返回: - Mlog播放地址(有时候会有水印,根据视频源而定。) # [English] ### Purpose: - Fetch Mlog (music video) playback address. ### Parameters: - mlogId: Mlog ID, you can get the link by clicking the share button in the APP, the link contains mlogId. - resolution: Resolution, default is 1080, keep the default. ### Returns: - Mlog playback address (sometimes there will be a watermark, depending on the video source.) # [示例/Example] > 分享链接/Share link: https://fn.music.163.com/g/mlog/mlog-mobile/landing/mlog?id=a1qQQOQNVueO2g7&type=2 mlogId = "a1qQQOQNVueO2g7"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String mlogId = a1qQQOQNVueO2g7; // String | Mlog ID/Mlog ID
String resolution = 1080; // String | 分辨率/Resolution
try {
String result = apiInstance.fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet(mlogId, resolution);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
mlogId | String | Mlog ID/Mlog ID | |
resolution | String | 分辨率/Resolution | [optional] [default to "1080"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet_0(mlogId, resolution)
Mlog(音乐视频)播放地址/Mlog (music video) playback address
[中文] ### 用途: - 获取Mlog(音乐视频)播放地址。 ### 参数: - mlogId: Mlog ID,可以在APP中点击分享按钮获取链接,链接中包含mlogId。 - resolution: 分辨率,默认为1080,保持默认即可。 ### 返回: - Mlog播放地址(有时候会有水印,根据视频源而定。) # [English] ### Purpose: - Fetch Mlog (music video) playback address. ### Parameters: - mlogId: Mlog ID, you can get the link by clicking the share button in the APP, the link contains mlogId. - resolution: Resolution, default is 1080, keep the default. ### Returns: - Mlog playback address (sometimes there will be a watermark, depending on the video source.) # [示例/Example] > 分享链接/Share link: https://fn.music.163.com/g/mlog/mlog-mobile/landing/mlog?id=a1qQQOQNVueO2g7&type=2 mlogId = "a1qQQOQNVueO2g7"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String mlogId = a1qQQOQNVueO2g7; // String | Mlog ID/Mlog ID
String resolution = 1080; // String | 分辨率/Resolution
try {
String result = apiInstance.fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet_0(mlogId, resolution);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchMusicLogVideoUrlApiV1NetEaseCloudMusicAppFetchMusicLogVideoUrlGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
mlogId | String | Mlog ID/Mlog ID | |
resolution | String | 分辨率/Resolution | [optional] [default to "1080"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet(musicId)
获取单一歌曲歌词/Fetch one music lyric
[中文] ### 用途: - 获取单个音乐歌词。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐歌词 # [English] ### Purpose: - Fetch single music lyric. ### Parameters: - music_id: Music ID ### Returns: - Music lyric # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet_0(musicId)
获取单一歌曲歌词/Fetch one music lyric
[中文] ### 用途: - 获取单个音乐歌词。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐歌词 # [English] ### Purpose: - Fetch single music lyric. ### Parameters: - music_id: Music ID ### Returns: - Music lyric # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet_0(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicLyricApiV1NetEaseCloudMusicAppFetchOneMusicLyricGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get(musicId, br)
获取单一歌曲播放地址V1(只能返回MP3格式,支持参数较少)/Fetch one music URL V1 (only MP3 format is supported, with fewer parameters)
[中文] ### 用途: - 获取单个音乐播放地址,此接口只能返回MP3格式的音频文件链接。 ### 参数: - music_id: 音乐ID - br: 音质码率,分四个等级,128000,192000,320000,999000 ### 返回: - 音乐播放地址 # [English] ### Purpose: - Fetch single music URL, this interface can only return MP3 format audio file link. ### Parameters: - music_id: Music ID - br: Bitrate, divided into four levels, 128000,192000,320000,999000 ### Returns: - Music URL # [示例/Example] music_id = "2135155051" br = "192000"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
String br = 192000; // String | 音质码率/Bitrate
try {
String result = apiInstance.fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get(musicId, br);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID | |
br | String | 音质码率/Bitrate | [optional] [default to "192000"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get_0(musicId, br)
获取单一歌曲播放地址V1(只能返回MP3格式,支持参数较少)/Fetch one music URL V1 (only MP3 format is supported, with fewer parameters)
[中文] ### 用途: - 获取单个音乐播放地址,此接口只能返回MP3格式的音频文件链接。 ### 参数: - music_id: 音乐ID - br: 音质码率,分四个等级,128000,192000,320000,999000 ### 返回: - 音乐播放地址 # [English] ### Purpose: - Fetch single music URL, this interface can only return MP3 format audio file link. ### Parameters: - music_id: Music ID - br: Bitrate, divided into four levels, 128000,192000,320000,999000 ### Returns: - Music URL # [示例/Example] music_id = "2135155051" br = "192000"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
String br = 192000; // String | 音质码率/Bitrate
try {
String result = apiInstance.fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get_0(musicId, br);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicUrlV1ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV1Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID | |
br | String | 音质码率/Bitrate | [optional] [default to "192000"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get(musicId, level, encodeType)
获取单一歌曲播放地址V2(支持更多参数)/Fetch one music URL V2 (support more parameters)
[中文] ### 用途: - 获取单个音乐播放地址,此接口支持更多参数。 ### 参数: - music_id: 音乐ID - level: 音质等级,分五个等级,标准,较高,极高,无损,hires,后两个等级不一定有支持的音源。 - 标准:standard - 较高:higher - 极高:exhigh - 无损:lossLess - hires:hires - encodeType: 编码类型,分六种类型。 - aac:aac - mp3:mp3(默认) - flac:flac - alac:alac - ape:ape - wav:wav ### 返回: - 音乐播放地址 # [English] ### Purpose: - Fetch single music URL, this interface supports more parameters. ### Parameters: - music_id: Music ID - level: Quality level, divided into five levels, standard, higher, exhigh, lossLess, hires, the last two levels may not have supported audio sources. - standard - higher - exhigh - lossLess - hires - encodeType: Encoding type, divided into six types. - aac - mp3 (default) - flac - alac - ape - wav ### Returns: - Music URL # [示例/Example] music_id = "2135155051" level = "exhigh" encodeType = "mp3"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
String level = exhigh; // String | 音质等级/Quality level
String encodeType = mp3; // String | 编码类型/Encoding type
try {
String result = apiInstance.fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get(musicId, level, encodeType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID | |
level | String | 音质等级/Quality level | [optional] [default to "exhigh"] |
encodeType | String | 编码类型/Encoding type | [optional] [default to "mp3"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get_0(musicId, level, encodeType)
获取单一歌曲播放地址V2(支持更多参数)/Fetch one music URL V2 (support more parameters)
[中文] ### 用途: - 获取单个音乐播放地址,此接口支持更多参数。 ### 参数: - music_id: 音乐ID - level: 音质等级,分五个等级,标准,较高,极高,无损,hires,后两个等级不一定有支持的音源。 - 标准:standard - 较高:higher - 极高:exhigh - 无损:lossLess - hires:hires - encodeType: 编码类型,分六种类型。 - aac:aac - mp3:mp3(默认) - flac:flac - alac:alac - ape:ape - wav:wav ### 返回: - 音乐播放地址 # [English] ### Purpose: - Fetch single music URL, this interface supports more parameters. ### Parameters: - music_id: Music ID - level: Quality level, divided into five levels, standard, higher, exhigh, lossLess, hires, the last two levels may not have supported audio sources. - standard - higher - exhigh - lossLess - hires - encodeType: Encoding type, divided into six types. - aac - mp3 (default) - flac - alac - ape - wav ### Returns: - Music URL # [示例/Example] music_id = "2135155051" level = "exhigh" encodeType = "mp3"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
String level = exhigh; // String | 音质等级/Quality level
String encodeType = mp3; // String | 编码类型/Encoding type
try {
String result = apiInstance.fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get_0(musicId, level, encodeType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicUrlV2ApiV1NetEaseCloudMusicAppFetchOneMusicUrlV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID | |
level | String | 音质等级/Quality level | [optional] [default to "exhigh"] |
encodeType | String | 编码类型/Encoding type | [optional] [default to "mp3"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get(musicId)
获取单一歌曲信息V1(信息更全)| Fetch one music information V1 (more information)
[中文] ### 用途: - 获取单个音乐数据,此接口不会返回音频文件链接,仅返回音乐信息。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐数据 # [English] ### Purpose: - Fetch single music data, this interface will not return audio file link, only return music information. ### Parameters: - music_id: Music ID ### Returns: - Music data # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get_0(musicId)
获取单一歌曲信息V1(信息更全)| Fetch one music information V1 (more information)
[中文] ### 用途: - 获取单个音乐数据,此接口不会返回音频文件链接,仅返回音乐信息。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐数据 # [English] ### Purpose: - Fetch single music data, this interface will not return audio file link, only return music information. ### Parameters: - music_id: Music ID ### Returns: - Music data # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get_0(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicV1ApiV1NetEaseCloudMusicAppFetchOneMusicV1Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get(musicId)
获取单一歌曲信息V2(信息更少)| Fetch one music information V2 (less information)
[中文] ### 用途: - 获取单个音乐数据,此接口不会返回音频文件链接,仅返回音乐信息。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐数据 # [English] ### Purpose: - Fetch single music data, this interface will not return audio file link, only return music information. ### Parameters: - music_id: Music ID ### Returns: - Music data # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get_0(musicId)
获取单一歌曲信息V2(信息更少)| Fetch one music information V2 (less information)
[中文] ### 用途: - 获取单个音乐数据,此接口不会返回音频文件链接,仅返回音乐信息。 ### 参数: - music_id: 音乐ID ### 返回: - 音乐数据 # [English] ### Purpose: - Fetch single music data, this interface will not return audio file link, only return music information. ### Parameters: - music_id: Music ID ### Returns: - Music data # [示例/Example] music_id = "2135155051"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String musicId = 2135155051; // String | 歌曲ID/Music ID
try {
String result = apiInstance.fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get_0(musicId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchOneMusicV2ApiV1NetEaseCloudMusicAppFetchOneMusicV2Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
musicId | String | 歌曲ID/Music ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet(uid, time, limit)
获取用户动态/Fetch user event
[中文] ### 用途: - 获取用户动态。 ### 参数: - uid: 用户ID。 - _time: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条动态的时间戳,或者查看返回的Next_Page_time字段。 - limit: 每页数量,默认为10。 ### 返回: - 用户动态 # [English] ### Purpose: - Fetch user event. ### Parameters: - uid: User ID. - _time: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last event returned on the first page on the second page, or check the Next_Page_time field returned. - limit: Number per page, default is 10. ### Returns: - User event # [示例/Example] uid = "254132915" _time = "-1" limit = "10"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String time = -1; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String limit = 10; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet(uid, time, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
time | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to "-1"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "10"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet_0(uid, time, limit)
获取用户动态/Fetch user event
[中文] ### 用途: - 获取用户动态。 ### 参数: - uid: 用户ID。 - _time: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条动态的时间戳,或者查看返回的Next_Page_time字段。 - limit: 每页数量,默认为10。 ### 返回: - 用户动态 # [English] ### Purpose: - Fetch user event. ### Parameters: - uid: User ID. - _time: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last event returned on the first page on the second page, or check the Next_Page_time field returned. - limit: Number per page, default is 10. ### Returns: - User event # [示例/Example] uid = "254132915" _time = "-1" limit = "10"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String time = -1; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String limit = 10; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet_0(uid, time, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserEventApiV1NetEaseCloudMusicAppFetchUserEventGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
time | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to "-1"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "10"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet(uid, lasttime, pagesize)
获取用户粉丝列表/Fetch user followers
[中文] ### 用途: - 获取用户粉丝列表。 ### 参数: - uid: 用户ID。 - lasttime: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条动态的时间戳,或者查看返回的Next_Page_lasttime字段。 - pagesize: 每页数量,保持默认即可。 ### 返回: - 用户粉丝列表 # [English] ### Purpose: - Fetch user followers. ### Parameters: - uid: User ID. - lasttime: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last event returned on the first page on the second page, or check the Next_Page_lasttime field returned. - pagesize: Number per page, keep the default. ### Returns: - User followers list # [示例/Example] uid = "254132915" lasttime = "0" pagesize = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String lasttime = 0; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String pagesize = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet(uid, lasttime, pagesize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
lasttime | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to "0"] |
pagesize | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet_0(uid, lasttime, pagesize)
获取用户粉丝列表/Fetch user followers
[中文] ### 用途: - 获取用户粉丝列表。 ### 参数: - uid: 用户ID。 - lasttime: 时间戳,用于翻页,第一页不需要传递,第二页传递第一页返回的最后一条动态的时间戳,或者查看返回的Next_Page_lasttime字段。 - pagesize: 每页数量,保持默认即可。 ### 返回: - 用户粉丝列表 # [English] ### Purpose: - Fetch user followers. ### Parameters: - uid: User ID. - lasttime: Time stamp, used for paging, no need to pass on the first page, pass the time stamp of the last event returned on the first page on the second page, or check the Next_Page_lasttime field returned. - pagesize: Number per page, keep the default. ### Returns: - User followers list # [示例/Example] uid = "254132915" lasttime = "0" pagesize = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String lasttime = 0; // String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page
String pagesize = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet_0(uid, lasttime, pagesize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserFollowersApiV1NetEaseCloudMusicAppFetchUserFollowersGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
lasttime | String | 时间戳,用于翻页,第一页不需要传递/Time stamp, used for paging, no need to pass on the first page | [optional] [default to "0"] |
pagesize | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet(uid, offset, limit)
获取用户关注列表/Fetch user follows
[中文] ### 用途: - 获取用户关注列表。 ### 参数: - uid: 用户ID。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 ### 返回: - 用户关注列表 # [English] ### Purpose: - Fetch user follows. ### Parameters: - uid: User ID. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. ### Returns: - User follows list # [示例/Example] uid = "254132915" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet(uid, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet_0(uid, offset, limit)
获取用户关注列表/Fetch user follows
[中文] ### 用途: - 获取用户关注列表。 ### 参数: - uid: 用户ID。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 ### 返回: - 用户关注列表 # [English] ### Purpose: - Fetch user follows. ### Parameters: - uid: User ID. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. ### Returns: - User follows list # [示例/Example] uid = "254132915" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet_0(uid, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserFollowsApiV1NetEaseCloudMusicAppFetchUserFollowsGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet(uid)
获取用户信息/Get user information
[中文] ### 用途: - 获取用户信息。 ### 参数: - uid: 用户ID。 ### 返回: - 用户信息 # [English] ### Purpose: - Get user information. ### Parameters: - uid: User ID. ### Returns: - User information # [示例/Example] uid = "254132915"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
try {
String result = apiInstance.fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet_0(uid)
获取用户信息/Get user information
[中文] ### 用途: - 获取用户信息。 ### 参数: - uid: 用户ID。 ### 返回: - 用户信息 # [English] ### Purpose: - Get user information. ### Parameters: - uid: User ID. ### Returns: - User information # [示例/Example] uid = "254132915"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
try {
String result = apiInstance.fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet_0(uid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserInfoApiV1NetEaseCloudMusicAppFetchUserInfoGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet(uid, offset, limit)
获取用户歌单/Get user playlist
[中文] ### 用途: - 获取用户歌单。 ### 参数: - uid: 用户ID。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 ### 返回: - 用户歌单 # [English] ### Purpose: - Get user playlist. ### Parameters: - uid: User ID. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. ### Returns: - User playlist # [示例/Example] uid = "254132915" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet(uid, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet_0(uid, offset, limit)
获取用户歌单/Get user playlist
[中文] ### 用途: - 获取用户歌单。 ### 参数: - uid: 用户ID。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 ### 返回: - 用户歌单 # [English] ### Purpose: - Get user playlist. ### Parameters: - uid: User ID. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. ### Returns: - User playlist # [示例/Example] uid = "254132915" offset = "0" limit = "20"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String uid = 254132915; // String | 用户ID/User ID
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
try {
String result = apiInstance.fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet_0(uid, offset, limit);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#fetchUserPlaylistApiV1NetEaseCloudMusicAppFetchUserPlaylistGet_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
uid | String | 用户ID/User ID | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String searchV1ApiV1NetEaseCloudMusicAppSearchV1Get(keywords, offset, limit, type)
搜索接口V1/Search interface V1
[中文] ### 用途: - 搜索接口V1。 ### 参数: - keywords: 关键词。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 - _type: 搜索类型 搜索类型 (`type`): * 单曲搜索:`"type":"1"` * 歌手搜索:`"type":"100"` * 专辑搜索:`"type":"10"` * 歌单搜索:`"type":"1000"` * MV搜索:`"type":"1004"` * 主播电台搜索:`"type":"1009"` * 用户搜索:`"type":"1002"` ### 返回: - 搜索结果 # [English] ### Purpose: - Search interface V1. ### Parameters: - keywords: Keywords. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. - _type: Search type Search type (`type`): * Single search: `"type":"1"` * Singer search: `"type":"100"` * Album search: `"type":"10"` * Playlist search: `"type":"1000"` * MV search: `"type":"1004"` * Anchor radio search: `"type":"1009"` * User search: `"type":"1002"` ### Returns: - Search results # [示例/Example] keywords = "周杰伦" offset = "0" limit = "20" _type = "1"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String keywords = 周杰伦; // String | 关键词/Keywords
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
String type = 1; // String | 搜索类型/Search type
try {
String result = apiInstance.searchV1ApiV1NetEaseCloudMusicAppSearchV1Get(keywords, offset, limit, type);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#searchV1ApiV1NetEaseCloudMusicAppSearchV1Get");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keywords | String | 关键词/Keywords | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
type | String | 搜索类型/Search type | [optional] [default to "1"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
String searchV1ApiV1NetEaseCloudMusicAppSearchV1Get_0(keywords, offset, limit, type)
搜索接口V1/Search interface V1
[中文] ### 用途: - 搜索接口V1。 ### 参数: - keywords: 关键词。 - offset: 偏移量,第一次搜索传递0,第二次传递20,第三次传递40,以此类推。 - limit: 每页数量,保持默认即可。 - _type: 搜索类型 搜索类型 (`type`): * 单曲搜索:`"type":"1"` * 歌手搜索:`"type":"100"` * 专辑搜索:`"type":"10"` * 歌单搜索:`"type":"1000"` * MV搜索:`"type":"1004"` * 主播电台搜索:`"type":"1009"` * 用户搜索:`"type":"1002"` ### 返回: - 搜索结果 # [English] ### Purpose: - Search interface V1. ### Parameters: - keywords: Keywords. - offset: Offset, pass 0 for the first search, 20 for the second search, 40 for the third search, and so on. - limit: Number per page, keep the default. - _type: Search type Search type (`type`): * Single search: `"type":"1"` * Singer search: `"type":"100"` * Album search: `"type":"10"` * Playlist search: `"type":"1000"` * MV search: `"type":"1004"` * Anchor radio search: `"type":"1009"` * User search: `"type":"1002"` ### Returns: - Search results # [示例/Example] keywords = "周杰伦" offset = "0" limit = "20" _type = "1"
// Import classes:
import io.tikhub.client.ApiClient;
import io.tikhub.client.ApiException;
import io.tikhub.client.Configuration;
import io.tikhub.client.auth.*;
import io.tikhub.client.models.*;
import io.tikhub.client.api.NetEaseCloudMusicApiApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearer
HttpBearerAuth bearer = (HttpBearerAuth) defaultClient.getAuthentication("bearer");
bearer.setBearerToken("BEARER TOKEN");
NetEaseCloudMusicApiApi apiInstance = new NetEaseCloudMusicApiApi(defaultClient);
String keywords = 周杰伦; // String | 关键词/Keywords
String offset = 0; // String | 偏移量,保持默认即可/Offset, keep the default
String limit = 20; // String | 每页数量,保持默认即可/Number per page, keep the default
String type = 1; // String | 搜索类型/Search type
try {
String result = apiInstance.searchV1ApiV1NetEaseCloudMusicAppSearchV1Get_0(keywords, offset, limit, type);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling NetEaseCloudMusicApiApi#searchV1ApiV1NetEaseCloudMusicAppSearchV1Get_0");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
keywords | String | 关键词/Keywords | |
offset | String | 偏移量,保持默认即可/Offset, keep the default | [optional] [default to "0"] |
limit | String | 每页数量,保持默认即可/Number per page, keep the default | [optional] [default to "20"] |
type | String | 搜索类型/Search type | [optional] [default to "1"] |
String
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |