Get Published Short Dramas

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: developerGetPublishedDrama

Developers can use this API to query short dramas that have been set to be published via the Short Drama Publishing Configuration API.

1. Call Method

HTTPS Call

POST https://api.weixin.qq.com/wxadrama/developergetpublisheddrama?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

None

3. Response Parameters

Response Body Response Payload

ParameterTypeDescription
listobjarraylist
errcodenumberError Code
errmsgstringError Message

Res.list(Array) Object Payload

list

ParameterTypeDescription
src_appidstringThe AppID of the submitter Mini Program
drama_idstringThe ID of the drama submitted for review
publish_timenumberPublishing timestamp (in seconds)

4. Notes

No special notes for this API

5. Code Example

Request Example

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

Response Example

{
    "list":[
        {"src_appid":"example_appid","drama_id":"example_drama_id_1","publish_time":1744626100},
        {"src_appid":"example_appid","drama_id":"example_drama_id_2","publish_time":1744626200},
    ]
    "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
1Does not exist
2Invalid parameter
21000This drama is not authorized for playback. Please authorize it via the backend API.
21001The encrypted sessionkey for the user does not exist.
21002The Merchant's encrypted package is not Base64 encoded.
21003Failed to decrypt the Merchant's encrypted package. Please ensure that you encrypted it according to the encryption scheme specified in the integration documentation, or that the `sessionkey` is the latest one for the current user.
21004The plaintext before Merchant encryption is not in a valid JSON format, or the field types are incorrect. Please check according to the integration documentation.
21005The required parameter values in the Merchant encryption (`openid`, `src_appid`, and `drama_id`) are empty.
21006The parameters passed to the player do not match the parameter values in the Merchant's encrypted package.
21007The `openid` in the encrypted package is invalid.
2100821008: The 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.