example-data.com
Menu
Browse docs and collections

Overview

videos / #143

Et theologus valeo adinventitias totidem

Et theologus valeo adinventitias totidem

In adfero depulso blanditiis. Curvo damnatio contra succurro defluo confero. Vicinus barba coaegresco decet thymbra.

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/videos/143" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/videos/143"
);
const video = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/videos.d.ts https://example-data.com/types/videos.d.ts
import type { Video } from "./types/videos";

const res = await fetch(
  "https://example-data.com/api/v1/videos/143"
);
const video = (await res.json()) as Video;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/videos/143"
)
video = res.json()

Response

{
  "id": 143,
  "userId": 98,
  "title": "Et theologus valeo adinventitias totidem",
  "slug": "et-theologus-valeo-adinventitias-totidem-143",
  "description": "In adfero depulso blanditiis. Curvo damnatio contra succurro defluo confero. Vicinus barba coaegresco decet thymbra.",
  "videoUrl": "https://example.com/videos/143.mp4",
  "thumbnailUrl": "https://picsum.photos/seed/video-143/1280/720",
  "durationSeconds": 5786,
  "viewCount": 3498773,
  "likeCount": 156664,
  "isPublic": true,
  "publishedAt": "2023-11-07T04:26:13.910Z",
  "createdAt": "2023-11-06T17:29:26.685Z"
}