url_proxy

API endpoint

GET ?route=url_proxy&url=${Fetch URL}

Fetch URL should encode

In javascript, you should use encodeURIComponent to encode Fetch URL.

Example request

GET ?route=url_proxy&url=https%3A%2F%2Fpokeapi.co%2Fapi%2Fv2%2Fpokemon%2F1

Example of fetch resorce using url_proxy,fetch pokemon API

Youtube API

API endpoint

GET ?route=youtube&videoid=${video id(11 characters)}

Query parameter

Parameter Name Required Type Description
route Yes String The route to the specific API endpoint. Must be youtube
videoid Yes String The ID of the video to retrieve details for.
image_base64 No Number If set to 1, the response will include a base64 encoded image. Default is 0.

Success response

Failed response

{
  "title": "",
  "status": "failed notfound?"
}

Niconico API

API Endpoint

GET ?route=niconico&videoid=${video id}

This API response depend on niconico return ones, so sometimes change from this or send error.(23/11/3)

Query parameter

Parameter Name Required Type Description
route Yes String The route to the specific API endpoint. Must be niconico
videoid Yes String The ID of the video to retrieve details for.
image_base64 No Number If set to 1, the response will include a base64 encoded image. Default is 0.

Success response

Failed request

{
  "status": "invalid videoid",
  "thumbnail_url": ""
}

Bilibili API

API endpoint

GET ?route=bilibili&videoid=${BVID}

Query parameter

Parameter Name Required Type Description
route Yes String The route to the specific API endpoint. Must be bilibili
videoid Yes String The ID of the video to retrieve details for. Must be BVID not use AVID
image_base64 No Number If set to 1, the response will include a base64 encoded image. Default is 0.

Sucess Response

Failed request

{
  "code": -400,
  "message": "请求错误",
  "ttl": 1
}

Soundcloud API

API endpoint

GET ?route=soundcloud&videoid=${video id}

Query parameter

Parameter Name Required Type Description
route Yes String The route to the specific API endpoint. Must be soundcloud
videoid Yes String The ID of the video to retrieve details for.
image_base64 No Number If set to 1, the response will include a base64 encoded image. Default is 0.

Sucess Response

Failed response

{
  "status": "error not found?"
}

Apple Music API

Apple Music support uses the Apple Music API for metadata and MusicKit JS for playback. The iframe API must be configured with Apple Music developer credentials.

Metadata API endpoint

GET ?route=applemusic&videoid=${song id}

Query parameter

Parameter Name Required Type Description
route Yes String The route to the specific API endpoint. Must be applemusic
videoid Yes String The Apple Music catalog song ID.
kind No String Apple Music resource kind. v1 supports songs only. Default is songs.
storefront No String Apple Music storefront such as jp or us. Defaults to the API gate setting.
image_base64 No Number If set to 1, the response will include a base64 encoded image. Default is 0.

Success response

GET ?route=applemusic&videoid=2037093406&kind=songs&storefront=jp&image_base64=1
{
  "status": "success",
  "id": "2037093406",
  "kind": "songs",
  "storefront": "jp",
  "name": "Song name",
  "title": "Song name",
  "artistName": "Artist name",
  "albumName": "Album name",
  "duration": 180,
  "thumbnail_url": "https://is1-ssl.mzstatic.com/image/thumb/...",
  "url": "https://music.apple.com/...",
  "image_base64": "<BASE64 ENCODED JPEG IMAGE DATA>"
}
Parameter Name Parameter Description
status The request status.
id The Apple Music catalog song ID.
kind The Apple Music resource kind.
storefront The storefront used for the catalog request.
name The song name.
title The song title. Same value as name.
artistName The artist name.
albumName The album name.
duration The song duration in seconds.
thumbnail_url The artwork URL.
url The Apple Music web URL.
image_base64 The base64 image (only show image_base64 parameter to 1).

Failed response

{
  "status": "not_found",
  "code": 404,
  "message": "Apple Music catalog song not found"
}

Apple Music token API

The browser player requests a MusicKit developer token from this route. It only allows origins configured in APPLE_MUSIC_ALLOWED_ORIGINS.

API endpoint

GET ?route=applemusic-token

Success response

{
  "status": "success",
  "developerToken": "<MUSICKIT DEVELOPER TOKEN>",
  "expiresAt": 1767225600,
  "storefront": "jp"
}

Failed response

{
  "status": "failed",
  "message": "Apple Music token origin is not allowed",
  "product_type": "applemusic token api"
}