Connector

Collect YouTube playlists in AWS Athena

Keep YouTube playlists and the videos placed in them as tables that AWS Athena queries. A custom OWOX connector loads how the library is organized, so a series can be read as one unit instead of video by video.

YouTubeConnectedChannelChannel dailyDemographics da…Devices daily
Data MartPublishedone definition
AWS AthenaChann…DayViewsDaily 09:00
Refreshed on a schedule. No exports, no copy-paste.

Get started free

Hand this to your AI

In AWS Athena, playlists should be read as series, but YouTube reports each video alone.

Paste this into your AI assistant. It sets up a YouTube Data Mart in OWOX Data Marts that loads playlists, playlist items and videos into AWS Athena, refreshed on a schedule.

The prompt

load YouTube playlists, playlist items and videos into AWS Athena with a daily refresh, and list every playlist with how many videos it holds and the videos that sit in none

Endpoints

YouTube Endpoints

Documentation

11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.

S00 · Why

Why read YouTube playlists beside what viewers watch

A playlist says how you group the library: a course, a product series, a season. Whether viewers follow that order, and which series earns its place, shows only when the playlists sit in one data warehouse with the daily views of each video.

  • Add up views and watch time per series, not per video
  • See whether the first video of a series carries the rest
  • Find videos that sit in no playlist at all
YouTubePlaylists, order
SearchTopics searched
Video dailyViews per day
Your data warehouseAWS AthenaPlaylistsViewsSearchJoined by idVideo addedSeries watchedOne query reads a playlist as one unit.

S01 · Step 1

Step 1: Connect YouTube and pick the fields

Create a Data Mart, choose YouTube as the data source and sign in with the Google account that manages the channel. Open an endpoint and tick only the fields you need.

  • Playlist items carries the playlist, the video, its position and when it was added
  • A custom connector: the Google credential and the channel ID are yours
New Data MartChoose a sourceGoogle Search…YouTubeGoogle AdsAuthorizeConnectedEndpointPlaylist itemsChannelChannel dailyDemographics daily
Playlist items9 fieldsplaylist_idvideo_idpositionadded_atvideo_published_at

S02 · Step 2

Step 2: Load YouTube into AWS Athena

Each endpoint becomes its own table, and refresh settings are set in the Data Mart. Run it and the first load lands as a table in the database you choose in AWS Athena. The location is pre-filled from your data storage, and you can change it.

  • Playlists, playlist items and videos each get their own table
  • Every run is logged in Run History
DestinationAWS AthenaDatabaseyoutubeTableplaylist_itemsRun
Run HistoryPendingRunningSuccessIncremental load
Tableyoutube.playlist_items

S03 · Step 3

Step 3: Get a business-friendly YouTube output schema

After the first run you get the output schema: every field with its type and a description. position is zero-based, and the schema says so.

  • video_owner_channel_id shows when a playlist holds another channel's video
  • added_at and video_published_at are separate, so late additions show
youtube.playlist_itemsOutput schemaFieldDescriptionplaylist_idThe playlist. Joins youtube_play…video_idThe video. Joins youtube_videos…positionZero-based position in the…added_atWhen the video was added to the…video_published_atWhen the video itself was…

S04 · Step 4

Step 4: Keep the YouTube tables linked

Playlists, playlist items and videos stay separate tables, joined by ids. Together they become the library part of one YouTube data model.

  • Playlist items carry playlist_id and video_id
  • Add Video daily to the same model to weigh each series by views
Playlistsplaylist_idtitle
Videosvideo_idtitle
Playlist itemsplaylist_idvideo_idposition

S05 · Step 5

Step 5: Schedule the YouTube playlist refresh

Set it once. A daily scheduled refresh reads the playlists as they stand, and a manual run picks up a reshuffle the same day.

  • Daily runs with no pipeline to maintain
  • Each run reads the order the playlist has on that day
ScheduleRun on a scheduleDaily 09:00
BackfillRun backfill
Run HistoryDaily scheduleManual backfillDaily schedule

S06 · Step 6

Step 6: Reuse the same YouTube table everywhere

One table feeds your data model, spreadsheets, dashboards, AI assistants and scheduled insights in Slack or email.

  • Define a series once
  • Every report reads the same table
YouTubeData MartPublished
Your data model
Google Sheets
Data Studio dashboards
Claude, ChatGPT
Slack, email

Recent updates

Why OWOX

Why OWOX for YouTube in AWS Athena

Playlists are a page in YouTube Studio. OWOX makes them a set of tables in your own data warehouse that AWS Athena can query.

  • You own the data. It lands in your own data warehouse, in tables you control.
  • Series, not single videos. Playlist items join playlists to videos, so a course or a season is measured as one.
  • Query it where you already do. AWS Athena reads the tables directly.
  • One place to fix. A YouTube API change is a new connector version, not a rewrite of your tables.

Book a callGet started free

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers