← All platforms

Google

YouTube (Account)

target_app: "youtube_account" · endpoint /v1/google/execute · OAuth — connects per end-user automatically

Setup

Same unified Google connection as Calendar — nothing separate to set up. Note: this only reads the account's own channel info — playback control isn't available (see the Music docs for why).

Actions

get_my_channel

Get the connected user's own YouTube channel info.

Request body:

{
  "user_id": "...",
  "action": "get_my_channel",
  "payload": {},
  "target_app": "youtube_account"
}

provider_response.result shape:

{ "items": [{"snippet":{"title":"..."},"statistics":{"subscriberCount":"..."}}] }

Anticipated errors & fixes

"channelId not found" / empty response

Cause: The connected Google account doesn't have a YouTube channel created.

Fix: The user needs to create a YouTube channel on their Google account first — nothing eConnect can fix.

401 "Unauthorized: Invalid API key."

Cause: Your eConnect Authorization header is missing, malformed, or the key was regenerated/revoked.

Fix: Copy your api_key fresh from the eConnect dashboard and confirm the header reads exactly "Authorization: Bearer <key>".

429 "Too many requests"

Cause: You've exceeded your plan's per-minute rate limit.

Fix: Wait a minute and retry, or upgrade your plan for a higher per-minute limit.

429 "Monthly API limit exceeded"

Cause: You've used your plan's full monthly request allowance.

Fix: Wait for your next billing cycle reset, or upgrade to a plan with a higher monthly limit.

← Back to all platforms