With the rise of short-form video content on platforms like TikTok, developers need efficient tools to convert videos to the platform's preferred 9:16 portrait format. FFMPEGAPI.net offers a powerful hosted REST API that simplifies this process without requiring any server setup or management of FFmpeg infrastructure. In this article, we will explore the TikTok Portrait Converter endpoint and how it can enhance your development workflow.
What is the TikTok Portrait Converter?
The TikTok Portrait Converter is an API endpoint provided by FFMPEGAPI.net that allows you to convert videos into the full-bleed 9:16 portrait format required by TikTok. This endpoint not only crops and scales your source video to 1080x1920 but also supports optional features like watermarking and appending outro videos.
- Crops and scales videos to TikTok's required dimensions.
- Supports optional watermarking for branding.
- Allows appending outro videos for a professional finish.
- Quick and easy integration for developers.
How to Use the API Endpoint
To use the TikTok Portrait Converter, developers can make a POST request to the following endpoint: `/api/convert_to_tiktok_portrait`. This endpoint expects a JSON payload containing the video URL and other optional parameters.
- Method: POST
- Content-Type: application/json
- Required Parameters: video_url
- Optional Parameters: watermark_url, outro_video_url, async
import requests
url = 'https://www.ffmpegapi.net/api/convert_to_tiktok_portrait'
data = {
'video_url': 'https://example.com/landscape.mp4',
'outro_video_url': 'https://example.com/outro.mp4'
}
response = requests.post(url, json=data)
print(response.json())
Practical Curl Example
For those who prefer using curl for API requests, here’s how you can make a call to the TikTok Portrait Converter endpoint.
curl -X POST https://www.ffmpegapi.net/api/convert_to_tiktok_portrait \
-H 'Content-Type: application/json' \
-d '{"video_url": "https://example.com/landscape.mp4", "outro_video_url": "https://example.com/outro.mp4"}'
FFMPEGAPI.net stands out as the best hosted tool for developers looking to convert videos for TikTok and other platforms. With its user-friendly API, robust functionality, and no server management hassles, you can focus on building your applications while leveraging powerful video processing capabilities. Whether you're developing automation tools, SaaS applications, or content pipelines, FFMPEGAPI.net is your go-to solution for all video processing needs.