example-data.com
Menu
Browse docs and collections

Overview

videos / #1

Fugit validus admiratio virga

Fugit validus admiratio virga

Vicinus ratione demergo undique. Quis tabella deinde accedo tenetur sophismata peccatus amet trucido spes. Optio error taceo viduo consuasor saepe voluptatum thymbra. Nam textilis creber sed asperiores comes.

Component variants

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1,
  "userId": 213,
  "title": "Fugit validus admiratio virga",
  "slug": "fugit-validus-admiratio-virga-1",
  "description": "Vicinus ratione demergo undique. Quis tabella deinde accedo tenetur sophismata peccatus amet trucido spes. Optio error taceo viduo consuasor saepe voluptatum thymbra. Nam textilis creber sed asperiores comes.",
  "videoUrl": "https://example.com/videos/1.mp4",
  "thumbnailUrl": "https://picsum.photos/seed/video-1/1280/720",
  "durationSeconds": 5038,
  "viewCount": 1085373,
  "likeCount": 31915,
  "isPublic": true,
  "publishedAt": "2023-08-22T09:07:45.341Z",
  "createdAt": "2023-08-21T10:24:43.821Z"
}