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.
AWS AthenaChann…DayViewsDaily 09:00In 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
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /connectors/youtube-connector-to-aws-athena.md. The task: 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. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
YouTube Endpoints
11 YouTube endpoints you can import. Each lands in its own table in your data warehouse.
Channel
The channel itself, one row, refreshed on every run: title, description, country, creation date, the lifetime view, subscriber and video counts YouTube shows on the channel page, and the uploads playl
15 fieldsChannel daily
One row per day for the whole channel: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost, playlist adds.
14 fieldsTime seriesDemographics daily
Share of watch time per age group and gender, per day.
5 fieldsTime seriesDevices daily
Views and watch time per day, device type and operating system: desktop, mobile, tablet, TV, game console; Android, iOS, Windows, Macintosh, and so on.
6 fieldsTime seriesGeography daily
Views, watch time, average view duration and percentage, likes, comments, shares and subscriber changes per country and day.
13 fieldsTime seriesPlaylist items
Which video sits in which playlist, at which position: the many-to-many bridge between playlists and videos.
9 fieldsPlaylists
The channel's playlists (series, courses, product lines), with item counts and privacy.
8 fieldsRevenue daily
Estimated revenue, ad revenue, YouTube Premium revenue, gross revenue, CPM, playback-based CPM, ad impressions and monetized playbacks per day, for channels in the YouTube Partner Program.
10 fieldsTime seriesTraffic sources daily
Views and watch time per day and traffic source type: YouTube search, suggested videos, browse features (home, subscriptions), external (websites and apps, including your own site and newsletters), pl
5 fieldsTime seriesVideo daily
Per video and day: views, watch time, average view duration and percentage, likes, dislikes, comments, shares, subscribers gained and lost.
13 fieldsTime seriesVideos
Every public upload with its metadata and lifetime counters as of the run: title, description, tags, category, duration, publish time, privacy, and the view, like and comment counts the watch page sho
25 fields
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 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
Your data warehousePlaylistsViewsSearchJoined by idVideo addedSeries watchedOne query reads a playlist as one unit.Step 1: Connect YouTube and pick the fields
Create a Data Mart, choose YouTube as the 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
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 storage, and you can change it.
- Playlists, playlist items and videos each get their own table
- Every run is logged in Run History
DestinationDatabaseyoutubeTableplaylist_itemsRun
Tableyoutube.playlist_itemsStep 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…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 model.
- Playlist items carry playlist_id and video_id
- Add Video daily to the same model to weigh each series by views
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
Step 6: Reuse the same YouTube table everywhere
One table feeds your model, , , assistants and scheduled insights in Slack or email.
- Define a series once
- Every report reads the same table
- 0.45.0Know what a backfill loads when a connector has no date fields
- 0.44.0Connector Data Marts set up through MCP no longer fail their first run because of the table path
- 0.44.0Backfill a catalog for any period in one run, and follow a long backfill as parts of one operation
- 0.41.0Rotating a warehouse key is one change: Storages share reusable Credentials
- 0.41.0Shared SQL logic stays in one place: build a Data Mart on top of another
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.
The Data Partner You Can Trust
users
166K Source: Internal OWOX data as of 2026-11-15
Executives and data analysts across 20+ industries
Customers
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.