These are the limits the API enforces for YouTube, read straight from the code. Every post is checked against them before anything is sent.
Each post uploads one video. The post text becomes the video description, and the title option is required.
Text
5,000 bytes (accented letters and emoji take several)
Images
Not supported
Video
Up to 1 per post · MP4, MOV, WEBM, MPEG, AVI, WMV, FLV, 3GP · 1,024 MB
Media
Required on every post
overrides.youtube.title* required
string · The video title: up to 100 characters, without < or >. The post text becomes the description.
overrides.youtube.privacy
string · Who can watch the video. Default "public".
public | unlisted | private
overrides.youtube.tags
array · Keyword tags, as a list of strings. Up to 500 characters in all: commas between tags count, and a tag containing a space counts 2 more (YouTube quotes it).
overrides.youtube.category_id
string · The YouTube video category ID, as a string. Default "22" (People & Blogs).
overrides.youtube.made_for_kids
boolean · Whether the video is made for kids, as YouTube requires creators to declare (COPPA). Default false.
overrides.youtube.notify_subscribers
boolean · Whether YouTube notifies the channel's subscribers about the new video. Default true.
overrides.youtube.publish_at
string · When YouTube makes the video public, as an ISO 8601 date and time in the future. The video is uploaded right away and stays private until then. Leave "privacy" out (or set it to "private").
Post with one request
Your first YouTube post.
Send the text and the account ID. Add an Idempotency-Key so a retried request never posts twice. The response lists each account with its own status and, once it’s live, the post’s URL.
curl https://socialhelper.app/api/v1/posts \
-H "Authorization: Bearer $SOCIALHELPER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"text": "Fresh out of the oven: our cinnamon rolls are back for autumn 🍂 Get them warm from 7am, while they last.",
"accounts": [
"ACCOUNT_ID"
],
"media": [
"MEDIA_ID"
],
"overrides": {
"youtube": {
"title": "Cinnamon rolls are back"
}
}
}'
const response = await fetch("https://socialhelper.app/api/v1/posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOCIALHELPER_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({
"text": "Fresh out of the oven: our cinnamon rolls are back for autumn 🍂 Get them warm from 7am, while they last.",
"accounts": [
"ACCOUNT_ID"
],
"media": [
"MEDIA_ID"
],
"overrides": {
"youtube": {
"title": "Cinnamon rolls are back"
}
}
}),
});
const { data: post } = await response.json();
console.log(post.status, post.targets);
import os, uuid, requests
response = requests.post(
"https://socialhelper.app/api/v1/posts",
headers={
"Authorization": f"Bearer {os.environ['SOCIALHELPER_API_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"text": "Fresh out of the oven: our cinnamon rolls are back for autumn 🍂 Get them warm from 7am, while they last.",
"accounts": ["ACCOUNT_ID"],
"media": ["MEDIA_ID"],
"overrides": {
"youtube": {
"title": "Cinnamon rolls are back",
},
},
},
)
post = response.json()["data"]
print(post["status"], post["targets"])
Tools
YouTube tools.
Call them with POST /api/v1/accounts/{id}/tools/{tool}, or let your agent use list_account_tools and run_account_tool over MCP. Results come back straight away.
list_videos
read-only
List the channel's most recent uploads, newest first, with title, publish time, privacy and view, like and comment counts. Counts are null where the owner hid them.
max_results integer
How many videos to return (1–50).
default: 10
channel_stats
read-only
Get the channel's totals: subscribers (rounded down to three significant figures by YouTube), views and public videos.
analytics_report
read-only
Run a YouTube Analytics report for the channel: metrics (e.g. views, estimatedMinutesWatched, averageViewDuration, likes, comments, shares, subscribersGained) over a date range (default: the last 28 days, ending yesterday), optionally by dimensions such as day, month, country, video, deviceType, insightTrafficSourceType, ageGroup or gender. Data can lag about two days.
metrics*array<string>
Metric names, e.g. ["views", "estimatedMinutesWatched"].
dimensions array<string>
Dimension names to break the metrics down by, e.g. ["day"] or ["country"].
start_date string
First day, YYYY-MM-DD.
end_date string
Last day, YYYY-MM-DD (inclusive).
filters string
Optional filter, e.g. "video==VIDEO_ID" or "country==US"; join several with ";".
sort string
Sort order, e.g. "-views" for most viewed first, or "day".
max_results integer
Most rows to return (1–200).
default: 50
top_videos
read-only
The channel's most viewed videos over a date range (default: the last 28 days, ending yesterday), with views, watch time, average view duration and percentage, likes, comments, shares and subscribers gained and lost.
start_date string
First day, YYYY-MM-DD.
end_date string
Last day, YYYY-MM-DD (inclusive).
limit integer
How many videos (1–50).
default: 10
video_analytics
read-only
Analytics for one video over a date range (default: the last 28 days, ending yesterday): views, watch time, average view duration and percentage, likes, comments, shares and subscribers gained and lost, as totals or per day.
video_id*string
The 11-character video ID, as list_videos returns it.
start_date string
First day, YYYY-MM-DD.
end_date string
Last day, YYYY-MM-DD (inclusive).
by_day boolean
Return one row per day instead of totals.
default: false
set_thumbnail
makes changes
Replace a video's thumbnail with an image uploaded to SocialHelper (POST /api/v1/media): JPEG or PNG, at most 2 MB; YouTube recommends 1280×720. Custom thumbnails need a verified channel. This changes the video on YouTube.
video_id*string
The 11-character video ID, as list_videos returns it.
media_id*string
The image's media ID.
Connect
Connect YouTube once.
Open Accounts in the SocialHelper dashboard and choose YouTube. You sign in on YouTube’s own screen and approve access; SocialHelper stores the connection encrypted. You don’t need a YouTube developer app of your own.
1
Open Accounts
In the dashboard, choose YouTube.
2
Sign in on YouTube
Approve access on YouTube’s own screen.
3
Use the account ID
GET /api/v1/accounts lists the account with its ID, whether it can publish, and its tools.
SocialHelper is invite-only during early access. Join the waitlist: the first 100 people to sign up get a Founding account with higher limits, free for 12 months.