youtube-data-kit
v0.0.2
Published
This library provides a strongly-typed, fluent interface for YouTube Data API v3. Making URL construction more predictable.
Maintainers
Readme
Youtube Data API v3
The type-safe client for YouTube Data API v3
This library provides a strongly-typed, fluent interface for YouTube Data API v3. Making URL construction and *.list fetching more predictable.
Installation
npm i youtube-data-kitFeatures
- Every property, part, parameter and filter is mapped directly from the official docs, giving full typing support for both requests and responses.
- Chain to a complete request. Use
.toString()to extract the raw URL, or use the built-in.fetch()to get data immediately.
const yt = new YouTubeDataKit()
const data = await yt
.videos({ id: "id" })
.part(["snippet", "statistics"])
.fetch()