STRTOLIST API Documentation

March 1, 2026 Β· View on GitHub

🌐 Language Switch

δΈ­ζ–‡η‰ˆ | English

Interface Information

POST /openapi/capcut-mate/v1/str_to_list

Function Description

Convert string to list. This interface is used to convert input string to list format.

More Documentation

πŸ“– For more detailed documentation and tutorials, please visit: https://docs.jcaigc.cn

Request Parameters

{
  "obj": "{   \"infos\": [     \"https://assets.jcaigc.cn/min.mp4\",     \"https://assets.jcaigc.cn/max.mp4\"   ] }"
}

Parameter Description

ParameterTypeRequiredDefaultDescription
objstringβœ…-Object content

Parameter Details

obj

  • Type: string
  • Description: String content to convert
  • Example: "{ \"infos\": [ \"https://assets.jcaigc.cn/min.mp4\", \"https://assets.jcaigc.cn/max.mp4\" ] }"

Response Format

Success Response (200)

{
  "infos": [
    "{   \"infos\": [     \"https://assets.jcaigc.cn/min.mp4\",     \"https://assets.jcaigc.cn/max.mp4\"   ] }"
  ]
}

Response Field Description

FieldTypeDescription
infosarray[string]String list

Error Response (4xx/5xx)

{
  "detail": "Error message description"
}

Usage Examples

cURL Examples

1. Basic Usage

curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/str_to_list \
  -H "Content-Type: application/json" \
  -d '{
    "obj": "{   \"infos\": [     \"https://assets.jcaigc.cn/min.mp4\",     \"https://assets.jcaigc.cn/max.mp4\"   ] }"
  }'

Error Code Description

Error CodeError MessageDescriptionSolution
400obj is requiredMissing obj parameterProvide a valid obj parameter
500String to list conversion failedInternal processing errorContact technical support

Notes

  1. Parameter Requirements: obj parameter is required
  2. Return Value: Put input string as single element in list and return

Workflow

  1. Validate required parameter (obj)
  2. Call service layer to handle business logic
  3. Return converted string list

πŸ“š Project Resources
GitHub: https://github.com/Hommy-master/capcut-mate
Gitee: https://gitee.com/taohongmin-gitee/capcut-mate