Play Original Video - Recommended Slot Control API

View Markdown

Last edited on 2026-03-25

This API should be called on the server side and cannot be called directly on the client side (Mini Program, web page, APP, etc.). For details, please refer to API Call Guide.

API English Name: setPlayerDramaRecmdSwitch

Developers can use the backend API to select playing the original video uploaded without transcoding.

Developers can use the backend API to control enabling or disabling recommended slots.

1. Call Method

HTTPS Call

POST https://api.weixin.qq.com/wxadrama/setplayerdramarecmdswitch?access_token=ACCESS_TOKEN

Cloud Call

  • This API does not support cloud call.

Third-party Call

  • This API supports third-party platforms on behalf of Merchant call.

  • The permission set ID of this API is: 157

  • After the service provider obtains one of the permission set authorizations, it can use authorizer_access_token to call on behalf of Merchant, for details please refer to Third-party Call documentation.

2. Request Parameters

Query Parameters Query String Parameters

ParameterTypeRequiredExampleDescription
access_tokenstringYesACCESS_TOKENAPI call credential, you can use access_token, authorizer_access_token

Request Body Request Payload

ParameterTypeRequiredExampleDescription
entry_typenumberYes2002Fill in 2002 here (when controlling recommended slots, available values are: 1-End of series, 2-Recommended at the far right of episodes, 3-Related recommendations on the series profile page)
switch_statusbooleanYestruetrue-Enable, false-Disable. If never enabled, the default is disabled (when controlling recommended slots: true-Enable, false-Disable; 1-End of series and 3-Series profile page are enabled by default)

3. Response Parameters

Response Body Response Payload

ParameterTypeDescription
errcodenumberError Code
errmsgstringError Message

4. Notes

No special notes for this API

5. Code Example

5.1 Play Original Video

Request Example

{
    "entry_type": 2002,
    "switch_status": "true"
}

Response Example

{
    "errcode": 0,
    "errmsg": "ok"
}

Request Example

{
    "entry_type":1,
    "switch_status": true
}

Response Example

{
    "errcode": 0,
    "errmsg": "ok"
}

6. Error Codes

The following is the error code list of this API, other error codes can refer to Common Error Codes; When encountering errors in calling the API, you can use the official API Diagnostic Tool to assist in locating and analyzing problems.

Error CodeError Description
-1System error, please try again
0Success
1Not found
2Invalid parameter
21000This series is not authorized for playback. Please authorize it via the backend API.
21001The user's encrypted session key does not exist.
21002The merchant's encrypted package is not Base64 encoded.
21003Failed to decrypt the merchant's encrypted package. Please ensure it is encrypted according to the encryption scheme in the integration documentation, or that the session key used is the latest one for the current user.
21004The plaintext before merchant encryption is not valid JSON format or the field types are incorrect. Please check the integration documentation.
21005Required parameter values in the merchant encryption (openid, src_appid, and drama_id) are empty.
21006The player input parameters do not match the parameter values in the merchant's encrypted package.
21007The openid in the encrypted package is invalid.
2100821008 Developer has not enabled pre-fetching.
2100921009 Insufficient merchant traffic.

7. Applicable Scope

The callable account types for this API are not yet clear, or are determined by the calling parameters in business. Please refer to the actual calling situation.