Pexels Video Without Storing, How?

I want to use a video from Pexels but the link they give me looks like this:

https://player.vimeo.com/external/479728625.hd.mp4?s=84b5a866b5b24de0e1d3bc20fbd0a98d544bda93&profile_id=172&oauth2_token_id=57447761

Shotstack requires that my video asset end with .mp4

If I delete everything after .mp4 then the video is locked and won’t play, it only plays with the auth token included in the link.

This Pexels link doesn’t work because now they use a vimeo link with authorization tokens, and shotstack api doesn’t accept this, so the solution that works is saving all these footages to my own server, but it uses so much storage unnecessarily, is there a better way to solve this without me having to store the videos?

Hi! Could you tell me where and how you sourced the URL?

Through the Pexels API, this is the kind of link they provide now.

Hi!

I believe the link should be fine. Have you tried using the link in a call yet?

If you read through this page, you can see we have an example JSON with exactly the same URL types from VIMEO. Copying and pasting it:

{
    "timeline": {
        "soundtrack": {
            "src": "https://shotstack-assets.s3-ap-southeast-2.amazonaws.com/music/unminus/lit.mp3",
            "effect": "fadeOut"
        },
        "background": "#000000",
        "tracks": [
            {
                "clips": [
                    {
                        "asset": {
                            "type": "video",
                            "src": "https://shotstack-assets.s3.ap-southeast-2.amazonaws.com/overlays/arrow-overlay-orange.mov"
                        },
                        "start": 4.48,
                        "length": 2
                    }
                ]
            },
            {
                "clips": [
                	{
                        "asset": {
                            "type": "video",
                            "src": "https://player.vimeo.com/external/584755582.hd.mp4?s=d7b3a1970e4470b68b452a94c47efcbb6081aa55&profile_id=175&oauth2_token_id=57447761"
                        },
                        "start": 0,
                        "length": 5,
                        "transition": {
                            "in": "fade"
                        }
                    },
                    {
                        "asset": {
                            "type": "video",
                            "src": "https://player.vimeo.com/external/584755638.hd.mp4?s=aeabc8694c64615d1f6abc9e271ae0d705bbd95c&profile_id=175&oauth2_token_id=57447761"
                        },
                        "start": 5,
                        "length": 5,
                        "transition": {
                            "out": "fade"
                        }
                    }
                ]
            }
        ]
    },
    "output": {
        "format": "mp4",
        "resolution": "hd"
    }
}

Huh, you are right, it’s working fine, so this wasn’t causing the error thanks then problem solved on this front! :smile: