ytsearch.js
Types

Common Types

Shared result and thumbnail structures.

Thumbnail

ts
interface Thumbnail {
  url: string;
  width: number;
  height: number;
}

Author

ts
interface Author {
  name: string;
  url: string;
  logo?: string;
  verified?: boolean;
  isArtist?: boolean;
}

BaseResult

ts
interface BaseResult {
  id: string;
  title: string;
  image: string;
  thumbnail: Thumbnail;
  url: string;
}