Face Swap API
  1. Other APIs
Face Swap API
  • Start Your Face Swap
  • Pricing
  • Face Swap APIs
    • Get Face Swap Task Info by ID
      POST
    • Create Face Swap Task
      POST
    • Cancel Face Swap Task (if still pending)
      POST
  • Other APIs
    • Face detection from image/video URL
      POST
    • Get video info from url
      POST
  1. Other APIs

Get video info from url

Developing
POST
/video-info-from-url
Last modified:2025-05-30 21:56:30
Maintainer:Not configured
This API accepts a video URL and returns metadata about the file, including its duration, resolution, file size, format, and a cover image (typically taken from the first or middle frame).
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/video-info-from-url' \
--header 'x-api-key: dfed35b0-350c-11f0-9d91-1607289bbab1' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "string"
}'
Response Response Example
{
    "code": 0,
    "info": "",
    "data": {
        "thumb": "https://fkfc1.sjc1.vultrobjects.com/media.mp4.jpg",
        "duration": 5.125,
        "width": 512,
        "height": 512,
        "codec": "h264"
    }
}

Request

Header Params
x-api-key
string 
optional
Example:
dfed35b0-350c-11f0-9d91-1607289bbab1
Body Params application/json
url
string 
required
The URL of the video file to analyze.
Examples

Responses

🟢200Success
application/json
Body
code
integer 
required
info
string 
required
data
object 
required
thumb
string 
required
duration
number 
required
width
integer 
required
height
integer 
required
frameRate
string 
required
codec
string 
required
Previous
Face detection from image/video URL
Built with