Connect your data to Claude in 1 minute. No code needed Try it now

Connect YouTube to PostgreSQL

Send YouTube channel detailed statistics, channel statistics by content and subscriber type, channel subscribers and 4 more report types to PostgreSQL on a schedule. Choose metrics and dimensions, filter by date and narrow it down by insight traffic source type. Refresh as often as every 15 minutes.

capterra
star star star star star

4.9/5

PostgreSQL schema youtube
  • channel_detailed_statistics
  • channel_statistics_by_content_and_subscriber_type
  • channel_subscribers
  • video_detailed_statistics
  • video_statistics_by_content_and_subscriber_type
  • 2 more report types
Each YouTube report type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Tradezella
Stanford
Webtoon
Getir
Stellar
Anker
ParentSquare
Bac 50
Benzinga
Matterport

How to connect YouTube and PostgreSQL

8 steps. You can preview the YouTube data in Coupler.io before anything reaches PostgreSQL.

Step 1 of 8

Connect YouTube

Sign in to YouTube and authorize Coupler.io. There's no API key to copy.

Sign in with YouTube

Step 2 of 8

Choose what to export

Pick the YouTube data you want in PostgreSQL.

ChannelsNot setChoose channels for your report.

Step 3 of 8

Set the report period

Choose the date range the report covers.

Start dateAny dateSpecify the start date of the period that should be covered in your report.
End dateAny dateSpecify the end date of the period that should be covered in your report.
Split data by periodNot setChoose how you want to see your statistics - split by day or month.

Step 4 of 8

Pick metrics and dimensions

Choose what to measure and how to break it down.

MetricsNot setSelect a value for “metrics”, e.g. “Annotation click through rate”, “Annotation clickable impressions”, “Annotation clicks”.
DimensionsNot setSelect a value for “dimensions”, e.g. “Age”, “City”, “Country”.
Additional dimensionsNot setSelect one or more values for “additional dimensions”, e.g. “Creator content type”, “Subscribed status”, “Video”, “Live or on demand”.

Step 5 of 8

Sorting options

Sorting columnNot set

Step 6 of 8

Fine-tune the export

Optional settings for this YouTube export.

Video IDNot setIn order to analyze audience retention you must specify specific video id you want to analyze.
Insight traffic source typeNot setThe ‘Insight traffic source detail’ dimension requires filtering report by the insight traffic source type.

Step 7 of 8

Connect PostgreSQL

Enter your PostgreSQL connection details, then the schema and table for the YouTube data.

Hostdb.example.comHostname, IPv4, or IPv6 address of the server
Port5432Default is 5432
DatabaseanalyticsThe target database name
Tablechannel_detailed_statisticsCreated automatically on the first run
Show 3 more fields Show fewer fields
UsercouplerUser with CREATE and INSERT privileges
Password••••••••••••The database user's password
SchemayoutubeCreated automatically if it doesn't exist

Step 8 of 8

Choose a write mode and schedule

Every run either replaces or appends the data in PostgreSQL. Run it as often as every 15 minutes.

Write mode

Each run deletes the existing rows in channel_detailed_statistics and loads fresh YouTube data.

Get the most of YouTube to PostgreSQL integration

Gather data icon

Gather data

Export data from numerous apps and sources into a single destination. Blend data from different apps to get a single source of truth.
Understand data icon

Understand data

Preview, transform, sort, and filter data for better clarity in just a few clicks in the Coupler.io interface. Take your data analytics to the next level.
Automate data icon

Automate data

Access data that is always up to date by enabling the automatic data refresh on a schedule as often as every 15 minutes and using triggered automation.
Act on data icon

Act on data

Visualize your data by quickly connecting to data visualization and BI tools. Build insightful dashboards in a breeze and make better decisions.
YouTube to PostgreSQL questions

7 report types, including Channel detailed statistics, Channel statistics by content and subscriber type, Channel subscribers, Video detailed statistics and Video statistics by content and subscriber type.

You sign in to YouTube and authorize Coupler.io. There's no API key to copy.

Yes. Set the start date and end date to cover the period you need. Splitting the data by period is available too.

Yes. Pick from 41 metrics and 23 dimensions.

Yes. Available filters include insight traffic source type.

Yes, if the database user has CREATE privileges. Coupler.io creates the youtube schema and the channel_detailed_statistics table on the first run.

Yes. Append adds new rows to channel_detailed_statistics on each run, while Replace swaps in a fresh copy. With Append, add new YouTube columns to the table yourself before the next run.

On a schedule you choose, from monthly down to every 15 minutes, depending on your Coupler.io plan.

Yes. Add more sources to the same data flow, for example GoHighLevel or Google Ads, and join or append them before the data reaches PostgreSQL.

High five for scrolling till the very end!
See you in the app!