Trim Video Segment

This Endpoint allows users to extract a specific segment from a video by providing start and end timestamps. It is ideal for creating clips or highlights from longer videos.

GIFGIF
GEThttps://api.spikes.studio/get-video-segment

Required Parameters

  • Name
    video_url
    Type
    string
    Description
    The URL of the video for which the text will be added.
  • Name
    start_time
    Type
    string
    Description
    The start timestamp of the video segment to extract.
    • Format "HH:MM:SS"
    • Example: "00:02:00" (2 minutes into the video)
  • Name
    end_time
    Type
    string
    Description
    The end timestamp of the video segment to extract.
    • Format "HH:MM:SS"
    • Example: "00:05:00" (5 minutes into the video)

Response

  • Name
    video_url
    Type
    string
    Description

    A URL to the extracted video segment.

  • Name
    video_information
    Type
    array
    Description

    An array of video information:

  • Name
    id
    Type
    string
    Description

    The unique identifier of the video.

  • Name
    video_length
    Type
    number
    Description

    The length of the video.

  • Name
    date
    Type
    timestamp
    Description

    The date the video was created.

Request

GET
https://api.spikes.studio/get-video-segment
  https://api.spikes.studio/get-video-segment?video_url=https://example.com/video.mp4&start_time=00:02:00&end_time=00:05:00

Response

  {
    "video_url": "https://example.com/video_segment.mp4",
    "video_information": [
      {
        "id": "123456",
        "video_length": "5 minutes",
        "date": "2024-04-15"
      }
    ]
  }

Errors

  • Name
    400 Bad Request
    Description

    The request was malformed or missing required parameters.

  • Name
    401 Unauthorized
    Description

    The API key provided was invalid or missing.

  • Name
    404 Not Found
    Description

    The requested resource was not found.

  • Name
    500 Internal Server Error
    Description

    500 Internal Server Error

Was this page helpful?