Download Asset through Frame API

Hey guys is there a way to get the download link or download a video/asset through the API? Seeing documentation on uploading but nothing else - The most we can parse out through make are the various IDs and media URL.

We’re trying to automate a flow to download the asset from frame and then run a process to create vector embeddings of it.

would appreciate any help here.

hi @lifeofsid you would use the Show File endpoint with include=media_links.original query param to get the download_url:

"media_links": {
  "original": {
    "download_url": "https://assets.frame.io/uploads/cd58cb8e-24b3-4448-8d0f-9532fcd04d11/original.png?response-content-disposition=attachment%3B+filename%3D%22foo.png&Expires=1729857600&Signature=L09h0pi82dCrMYjr9lMHBragByWYh1&Key-Pair-Id=KKI497NESTHMN",
    "inline_url": "https://assets.frame.io/uploads/cd58cb8e-24b3-4448-8d0f-9532fcd04d11/original.png?response-content-disposition=inline%3B+filename%3D%22foo.png&Expires=1729857600&Signature=L09h0pi82dCrMYjr9lMHBragSDFXDFh&1Key-Pair-Id=KKI497NESTHMN"
},
1 Like

Hi. Sorry if this has been covered somewhere else but I can’t seem to find it anywhere. Is it possible to download a publicly shared downloadable asset from someone else’s account through the V4 API programmatically? Thank you so much for any insight.

@CharlieAnderson

hi @SushiandFrenchFries the API itself is for authenticated users (hence OAuth2.0) and so you wouldn’t be able to get any information about a share unless a user was authenticated first. Also, we don’t surface information about the assets in the share via API yet, it is coming later.

OK thank goodness. I thought I was just missing it somewhere! Appreciate the reply.

So just so I’m clear… currently if a user A creates a public share with download enabled and shares that link. Even if user B is authenticated there is no way to download the shared asset via the V4 API? Thanks again.

Hi @SushiandFrenchFries correct. We do not surface shares that are shared with a user in the API at this time. The user would have to be added to the project where this asset is located in order to be able to surface the download_url via the API. This is something we could add later as we finish work on the inbox feature in the main product, and then surface via API.

Thank you for the clarification.