Endpoint
Request Headers
| Parameter | Value | Description |
|---|---|---|
| x-api-key | API Key | Request authorization. If both Authorization and x-api-key are set, platform rules determine precedence (often Authorization first). |
| Authorization | Bearer {token} | Optional Bearer token. Get Token |
| Content-Type | application/json | Required for JSON body |
Body Attributes
| Parameter | Type | Required | Description |
|---|---|---|---|
| video_url | String | true | Publicly accessible source video URL (http or https) |
| type | String | true | For head swap, always head |
Response Attributes
| Parameter | Type | Description |
|---|---|---|
| code | Integer | Business status code (1000 = success) |
| msg | String | Status message (often Analyze success on success) |
| data | Object | Analysis record |
| - _id | String | Analysis record id — use with Get Analysis Result |
| - create_time | Long | Creation time (ms) |
| - uid | Integer | User id |
| - team_id | String | Team id |
| - video_url | String | Source video URL |
| - type | String | head |
| - status | Integer | 1 queue, 2 processing, 3 completed, 4 failed |
| - task_id | String | Internal processing id (support / tickets) |
| - progress | Number | Approximate progress 0–100 |
| - analysis_result | Object | null | Usually null right after submit; populated when completed |
| - error_reason | String | Error description if any |
| - error_code | Number | Error code if any |
Example
Request Body
Request
Response
Important Notes
- Save
data._idand poll Get Analysis Result untilstatusis3or4. - Video length must be within the documented duration window (about 3–20 seconds).
- Invalid
video_url, wrongtype, or service issues return non-1000code/ descriptivemsg.