Skip to content
0

katanakit-js / YoutubeVideosResponseSchema

Variable: YoutubeVideosResponseSchema ​

ts
const YoutubeVideosResponseSchema: ZodObject<{
  items: ZodOptional<ZodArray<ZodObject<{
     contentDetails: ZodOptional<ZodObject<{
        duration: ZodOptional<ZodString>;
     }, $strip>>;
     id: ZodOptional<ZodString>;
     snippet: ZodOptional<ZodObject<{
        channelTitle: ZodOptional<ZodString>;
        description: ZodOptional<ZodString>;
        publishedAt: ZodOptional<ZodString>;
        title: ZodOptional<ZodString>;
     }, $strip>>;
     statistics: ZodOptional<ZodObject<{
        viewCount: ZodOptional<ZodString>;
     }, $strip>>;
  }, $strip>>>;
}, $strip>;

Defined in: src/schemas/youtube.schema.ts:110

Minimal videos.list shape (only what the service reads).

Released under the MIT License.