Docs / Sources

YouTube

Collect comments on your channel’s videos every hour through your Google app. Datum stores activity without comment text.

Matches onName and channel link
HistoryComments on every upload
Also doesChecks every hour
You'll needYour own Google app

Connect YouTube

YouTube uses a reviewed Activepieces piece inside Datum. It reads comments on one channel’s uploads through an OAuth client in your Google Cloud project. Google requires youtube.force-ssl for comment reads. This permission also allows editing and deleting videos, ratings, comments and captions. Datum only sends read requests.

  1. Create a Google OAuth client

    Enable the YouTube Data API v3 in your Google Cloud project. Configure the OAuth consent screen with youtube.force-ssl. Create an OAuth client of type Web application. Record the client ID and secret.

  2. Open Sources

    Open Sources → Connect a source → YouTube. Add the App redirect URL to your OAuth client.

    The redirect URI combines your Datum address with /connect/piece%3Ayoutube/callback.

    Enter OAuth client ID and OAuth client secret. In YouTube channel or uploads playlist, paste a channel ID starting with UC, a /channel/ URL, or an uploads playlist ID starting with UU. Datum converts channel IDs to uploads playlist IDs. Datum does not accept channel @handle URLs.

  3. Authorize it

    Press Connect as a workspace owner. Choose the Google or YouTube identity for the channel that you entered. Approve the app on the Google consent page. Press Verify after the panel displays Authorization received. Verify to check access.

    Datum saves the connection and opens the consent page in a new tab. Only a workspace owner can authorize it.

  4. Import history

    Datum checks for new comments every hour. Press Run now on the source’s page to import comments from every upload. Alternatively, run the following command from your terminal or agent:

    ocmgr ingest <connectionId>
  5. Check the result

    Check the Verify result. Check commenters in Members after the import. Check comments in Activity.

    Verification reads uploads and one video’s comments without importing records. An empty channel reports that comment access remains untested. Each comment uses its video as the conversation.

    Reconnect existing connections authorized with youtube.readonly. That scope permits playlist reads but does not cover the comment endpoints.

If authorization expires or the tab closes, press Restart authorization. Datum starts a new attempt for the saved connection.

Data Datum imports

Commenters Display name, channel link and avatar, keyed on their YouTube channel
Activity One comment for each top-level comment and each reply, linked to the video, with the video’s title
Not collected Comment text, likes, reply counts, moderation status, the video’s description, and your own uploads

YouTube supplies no email addresses, so commenters cannot link automatically to other accounts. Matching names or channel links can produce candidates for your review queue.

When thread tone is on, Datum reads each comment’s text once. Datum never stores the text.

Troubleshooting

Some replies are missing

Datum reads replies through YouTube’s separate comments endpoint, following every page of up to 100 replies. Hourly checks read only the newest 50 uploads, and 100 comment threads for each video. To check replies outside that range, run a full import. Datum cannot get deleted comments or comments that it cannot open.

Comments do not arrive immediately

Datum checks for comments every hour. YouTube’s push notifications report video uploads and title or description changes, not new comments. This connection does not use a comment webhook. Press Run now to import without waiting for the next hourly check.

Repeated imports, edits and deleted comments

Repeated imports keep one activity per YouTube comment ID. Editing the comment text does not create another contribution, and Datum does not store that text. Deleting a comment or disabling comments does not erase activity already imported into Datum. The history records that a contribution happened; it is not a mirror of the video’s current comment list.

The import stops with a quota error

Datum skips videos with comments disabled. Other YouTube errors, including an exhausted quota, stop the import. Wait for the quota to reset. Run ocmgr ingest <connectionId> again.

From your terminal or agent

ocmgr connection create --kind piece:youtube --config '{"uploads_playlist":"UU<rest of the channel id>"}' \
  --secret clientId=<client-id> --secret clientSecret=<client-secret> --json
ocmgr connection connect <connectionId> --json
ocmgr connection verify <connectionId> --json
ocmgr ingest <connectionId> --json

See create_connection and connect_connection for every parameter.

FAQ

Has anyone tested this with a real channel?

A live test on 31 October 2026 imported comments and replies from an unlisted test video. The contributions had one commenter identity and one video thread. Repeated imports and an edited comment kept the same activity IDs and original timestamps. With comments off, the import succeeded and did not erase history. With comments on again, access came back. Imports of an empty channel and verification of comment access also passed.

Pagination, an empty quota and other permission failures have only automated tests. The live test did not cause these failures. Compare your first import with the channel before you trust it.

Can one connection read several channels?

No. Each connection reads one uploads playlist. Create another connection for each additional channel.