example-data.com
Menu
Browse docs and collections

Overview

videos / #7

Adulescens desino sophismata accedo tantillus socius dolores

Adulescens desino sophismata accedo tantillus socius dolores

Distinctio tamen adopto ancilla despecto alo tamen coerceo supellex pecto. Aegrus terminatio vetus tergiversatio tum caput. Uberrime vesper rerum omnis.

Component variants

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/videos/7"
);
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/7"
);
const video = (await res.json()) as Video;

Python example

import requests

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

Response

{
  "id": 7,
  "userId": 128,
  "title": "Adulescens desino sophismata accedo tantillus socius dolores",
  "slug": "adulescens-desino-sophismata-accedo-tantillus-socius-dolores-7",
  "description": "Distinctio tamen adopto ancilla despecto alo tamen coerceo supellex pecto. Aegrus terminatio vetus tergiversatio tum caput. Uberrime vesper rerum omnis.",
  "videoUrl": "https://example.com/videos/7.mp4",
  "thumbnailUrl": "https://picsum.photos/seed/video-7/1280/720",
  "durationSeconds": 3910,
  "viewCount": 2278777,
  "likeCount": 181309,
  "isPublic": true,
  "publishedAt": "2024-09-29T16:49:21.148Z",
  "createdAt": "2024-09-29T01:39:43.558Z"
}