Polyv Help Center

Help Center

Query PPT for Video Creation

Updated: 2025-07-25 00:09:59

Interface Description

1、根据ppt文件id查询用于视频创作的ppt信息
2、接口支持https协议

Interface URL

http://api.polyv.net/live/v4/ai/video-produce/ppt/get

Request Method

GET

Interface Constraints

  1. The interface supports both HTTP and HTTPS. HTTPS is recommended to ensure interface security. Interface calls have frequency limits. See details

Request Parameter Description

Parameter Required Type Description
appId true String Account appId See details for obtaining the key
timestamp true Long Current 13-digit millisecond timestamp, valid within 3 minutes
fileId true String PPT file ID
sign true String Signature, a 32-character uppercase MD5 value. The appSecret key used to generate the signature is critical for communication data security. It must not be stored or used directly on the client side. All APIs must be called through the customer's own server to relay requests to the POLYV server to obtain response data. See signature generation rules

Example

http://api.polyv.net/live/v4/ai/video-produce/ppt/get?timestamp=1716107535043&appId=gopl67qi7e&fileId=fd758a9783bb3feaa0bce41a3se9610ab976635677927pptVideocommon&sign=6625340A6017272DF55CD1F5DC42CFCB

Response Parameter Description

Parameter Type Description
code Integer Response status code, 200 for success, non-200 for failure
status String Response result, determined by business logic, returns success on success, error on failure
success Boolean Response result, determined by business logic, returns true on success, false on failure
data Object Detailed information returned on success See data field description
error Object Error information when status code is non-200 See Error field description
requestId String Request ID, a unique UUID generated for each request, used only for troubleshooting and debugging, not for business logic

Data Parameter Description

Parameter Type Description
fileId String PPT file ID
fileName String File name
fileUrl String PPT file URL
totalPage Integer Total number of PPT pages, available only after transcoding is complete
status String PPT document status See PPT document status description
convertType String PPT transcoding type; common: static transcoding; animate: animated PPT transcoding
previewImage String PPT file preview image URL (small image)
previewBigImage String PPT file preview image URL (large image)
createTime Long PPT document creation time, 13-digit timestamp

PPT Document Status Description

Value Type Description
normal String Document transcoding and parsing completed. Note: Only in this status can the PPT be used to create a video creation task
failUpload String Upload failed
waitConvert String PPT transcoding and parsing in progress
failConvert String PPT transcoding and parsing failed

Response Example

Success Example

{
  "code": 200,
  "status": "success",
  "requestId": "613c683f-efd2-4676-836c-6b674a42c191",
  "data": {
    "autoId": 80003611,
    "fileId": "fd758a9783bb3feaa0bce41af48610ab976635677927pptVideocommon",
    "fileName": "测试3.pptx",
    "fileUrl": "http://doc-2.polyv.net/sources/20250529/fd758a9783bb3feaa0bce41a3se9610ab976635677927pptVideocommon.pptx",
    "fileType": ".pptx",
    "totalPage": 1,
    "status": "normal",
    "createTime": 1748498090000,
    "convertType": "common",
    "previewImage": "http://doc-2.polyv.net/images/2025/05/fd758a9783bb3feaa0bce41a3se9610ab976635677927pptVideocommon/fd758a9783bb3feaa0bce41af48610ab976635677927pptVideocommon_0000_s.jpeg",
    "previewBigImage": "http://doc-2.polyv.net/images/2025/05/fd758a9783bb3feaa0bce41a3se9610ab976635677927pptVideocommon/fd758a9783bb3feaa0bce41af48610ab976635677927pptVideocommon_0000.jpeg",
    "sourceType": "pptVideo",
    "hasRemarks": false
  },
  "success": true
}

Error Parameter Description

Parameter Type Description
code Integer Error code, used to identify the specific error cause
desc String Error description, corresponding to error.code
联系客服,在线咨询