docs/get_url.md
Rama main · réplica de lectura del repositorio original.
# GET_URL API Documentation
## 🌐 Language Switch
[中文版](./get_url.zh.md) | [English](./get_url.md)
## Interface Information
```
POST /openapi/capcut-mate/v1/get_url
```
## Function Description
Extract links. This interface is used to extract link information from input content, converting multiple values into single value return.
## Request Parameters
```json
{
"output": "[魂牵梦萦https://sf.com;中国人https://jcaigc.cn],\"[]\""
}
```
### Parameter Description
| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| output | string |✅ | - | Content to extract |
### Parameter Details
#### output
- **Type**: string
- **Description**: Content from which to extract links
- **Example**: `"[魂牵梦萦https://sf.com;中国人https://jcaigc.cn],\"[]\""`
## Response Format
### Success Response (200)
```json
{
"code": 0,
"message": "success",
"output": "[魂牵梦萦https://sf.com;中国人https://jcaigc.cn],\"[]\""
}
```
### Response Field Description
| Field | Type | Description |
|-------|------|-------------|
| output | string | Extraction result |
### Error Response
```json
{
"code": 1001,
"message": "Parameter validation failed"
}
```
## Usage Examples
### cURL Examples
#### 1. Basic Usage
```bash
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/get_url \
-H "Content-Type: application/json" \
-d '{
"output": "[魂牵梦萦https://sf.com;中国人https://jcaigc.cn],\"[]\""
}'
```
## Error Code Description
| Error Code | Error Message | Description | Solution |
|------------|---------------|-------------|----------|
| 1001 | Parameter validation failed | output is missing (request body failed schema validation) | Provide a valid output parameter |
| 9999 | Unknown error | Unexpected internal processing error | Contact technical support |
## Notes
1. **Parameter Requirements**: output parameter is required
2. **Return Value**: Current version directly returns input content without additional processing
## Workflow
1. Validate required parameter (output)
2. Call service layer to handle business logic
3. Return processing result
## Related Interfaces
- [Create Draft](./create_draft.md)
---
<div align="right">
📚 **Project Resources**
**GitHub**: [https://github.com/Hommy-master/capcut-mate](https://github.com/Hommy-master/capcut-mate)
**Gitee**: [https://gitee.com/taohongmin-gitee/capcut-mate](https://gitee.com/taohongmin-gitee/capcut-mate)
</div>