API DocsVideosList videos

List videos

GET/api/videos
videos:read

List all videos in the authenticated account.

Examples

curl
curl https://flare.link/api/videos \
  -H "Authorization: Bearer flr_pat_..."
node
const res = await fetch("https://flare.link/api/videos", {
  headers: { Authorization: "Bearer flr_pat_..." }
});
const data = await res.json();
console.log(data.videos.length);
python
import requests

res = requests.get(
  "https://flare.link/api/videos",
  headers={"Authorization": "Bearer flr_pat_..."}
)
print(res.json()["videos"])
ruby
require "net/http"

uri = URI("https://flare.link/api/videos")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer flr_pat_..."
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.body
go
package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("GET", "https://flare.link/api/videos", nil)
  req.Header.Set("Authorization", "Bearer flr_pat_...")
  resp, _ := http.DefaultClient.Do(req)
  body, _ := io.ReadAll(resp.Body)
  fmt.Println(string(body))
}
php
<?php
$ch = curl_init("https://flare.link/api/videos");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authorization: Bearer flr_pat_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
csharp
using System.Net.Http.Headers;

using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "flr_pat_...");
var res = await client.GetAsync("https://flare.link/api/videos");
var body = await res.Content.ReadAsStringAsync();

Expected response

{
  "success": true,
  "videos": [
    {
      "id": "vid_demo_123",
      "fileName": "demo.mp4",
      "duration": 120,
      "createdAt": "2025-01-01T12:00:00.000Z"
    }
  ]
}