Compress video API

Compress videos using the Shotstack cloud based video compressor API. Use the cloud based API to seamlessly transcode and compress media.

  • Ikea
  • McDonald's
  • Twitter
  • Randstad
  • Nike
  • Coca-Cola
  • Zillow
  • Angel
  • ClickFunnels
  • TheSoul Publishing

The internet's most advanced image and video editing API

Shotstack is the most user friendly, powerful and reliable infrastructure solution to automatically compress video.

JSON
{
    "timeline": {
        "background": "#000000",
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "video",
                            "src": "https://shotstack-ingest-api-v1-au.s3.ap-southeast-2.amazonaws.com/62hne3bb81/zzyb59hr-40pm-1t1j-xkqm-1uooql4lmrbi/source.m4v",
                            "trim": 2
                        },
                        "start": 0,
                        "offset": {
                            "x": 0,
                            "y": 0
                        },
                        "position": "center",
                        "length": 6
                    }
                ]
            }
        ]
    },
    "output": {
        "size": {
            "width": 1280,
            "height": 720
        },
        "format": "mp4",
        "quality": "low"
    }
}
The JSON for the video above

Demo's & Code Examples

Automatically compress video by using demo code

  • Pexels Video Maker

    Search the Pexels stock footage video library and the Shotstack API will automatically compile an edit with music and a title

    Go to demo
  • Watermark Video

    Add a watermark to a video using the Shotstack API. This free demo lets you upload a video and add a watermark

    Go to demo

Start free

  • 10 free credits to start
  • No credit card required