At a glance
Capabilities
Connecting
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
Publishing
Create a video post by providing a video URL and optional metadata viaplatform_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.
Channel summary
Retrieve aggregate stats for a connected YouTube channel.Force sync
Force an immediate re-sync of uploaded videos for an account.{"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 setheld_for_reviewexplicitly. Like is not supported. - Token refresh. Google OAuth tokens expire. SocialAPI handles refresh automatically. If you receive
401withcode: "platform.youtube.auth", reconnect the account.