api

Video’s opvragen

GET https://api.mave.io/v1/videos

Hiermee haal je alle video-embeds in een space op. Hiervoor is het API-token vereist.

Queryparameters

Parameter Type
page integer
per_page integer (max. 100)
uploaded boolean; filtert op wel of niet geüploade video’s. Zonder deze parameter worden beide getoond, gesorteerd op upload.
collection string; filtert video’s op collectie.
show_collections boolean; bij true worden ook collecties getoond.

Response

{
  "current_page": 1, // the page you are looking at
  "data": [
    {
      "created": 1643723823,
      "duration": 0.108333, // duration of the video
      "width": 1920, // width of the video in pixels
      "height": 1080, // height of the video in pixels
      "id": "IIzFKHuukg", // this can be used to put into the component
      "last_upload": 1643746229,
      "name": "test.mp4", // name of the file or chosen name
      "object": "video",
      "poster_image": "https://image.mave.io/IIzFKHuukg.jpg?time=0", // defaults to first frame of the video
      "size": 358923, // size of the video in bytes
      "renditions": ["sd", "hd"], // size of the video
      "subtitles": ["en", "nl"] // available subtitles
    },
    {
      "created": 1643723737,
      "duration": null,
      "width": null,
      "height": null,
      "id": "k1iFD7h4rW",
      "last_upload": null,
      "name": null, // empty embed
      "object": "video",
      "poster_image": null,
      "size": null,
      "renditions": [],
      "subtitles": []
    },
    {
      "created": 1643723523,
      "duration": null,
      "width": null,
      "height": null,
      "id": "NyzCJgb28a",
      "last_upload": null,
      "name": null,
      "object": "video",
      "poster_image": null,
      "size": null,
      "renditions": [],
      "subtitles": []
    },
    {
      "created": 1643723504,
      "duration": null,
      "width": null,
      "height": null,
      "id": "rV4k65cLmE",
      "last_upload": null,
      "name": null,
      "object": "video",
      "poster_image": null,
      "size": null,
      "renditions": [],
      "subtitles": []
    }
  ], // all the video embeds that have been created
  "has_more": false, // the possibility whether there are more video embeds to retrieve
  "object": "list", // the type of object you're looking at
  "total_items": 4, // the total of video embeds
  "total_pages": 1 // the total pages that are available
}
🍪 Klik op ‘Accepteren’ om te bevestigen dat je het ermee eens bent dat we geen cookies gebruiken. Ja, deze banner is puur voor de show!
Accepteren