Skip to main content
Available Managed connector - SocialAPI handles the Google Cloud project and YouTube Data API access for you. No customer-side Google Cloud setup required. See Platform credentials.

At a glance

Capabilities

Connecting

Response:
Redirect your user to auth_url. After they authorize, SocialAPI exchanges the code with YouTube and redirects the user to your redirect_uri with the connection result. See OAuth flows for the redirect parameters.

Reading samples

List posts

List comments on a post

Sample response:

Publishing

Create a video post by providing a video URL and optional metadata via platform_data. See the API reference for the full request schema.

PlatformData fields

YouTube platform data can be supplied in two forms, which are merged before delivery (per-target values override top-level values on conflict):
  • Top-level: platform_data.youtube.<key> applies to all YouTube targets in the request.
  • Per-target: targets[].platform_data.<key> (flat keys, no nesting) overrides the top-level value for that target only. The example above uses this form.
Fields supported in either form:

Channel summary

Retrieve aggregate stats for a connected YouTube channel.
Response:

Force sync

Force an immediate re-sync of uploaded videos for an account.
Returns {"success": true} on success.

Edit own comment

To edit a comment you own, use the YouTube-specific PATCH endpoint. All three body fields are required.

Limitations and gotchas

  • No DMs or mentions. YouTube does not expose a messaging or mention API. These endpoints return 501.
  • No webhook handler. YouTube does not push real-time events. Posts and comments are fetched on demand.
  • Comment moderation. Hide sets the comment moderation status to rejected (removes it from public view). Delete removes it permanently. The dedicated moderation endpoint (POST /v1/platforms/youtube/comments/{commentId}/moderate) can also set held_for_review explicitly. Like is not supported.
  • Token refresh. Google OAuth tokens expire. SocialAPI handles refresh automatically. If you receive 401 with code: "platform.youtube.auth", reconnect the account.

Permissions

SocialAPI’s managed Google Cloud OAuth app already requests YouTube Data API v3 scopes for reading and managing comments on your owned channels. You don’t need to set up a Google Cloud project. See Platform credentials.