YouTube API (beta)
Read public YouTube data in one call: videos with transcripts, comments and sponsors, channels, playlists, Shorts and search. Responses come in the shape of YouTube Data API v3 resources, over REST or MCP.
- Endpoints
- 27
- From
- 1 credit · $0.01
- Failed calls
- Refunded
- Access
- REST · MCP · SDK
YouTube video API
Endpoint details →import os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/videos/dQw4w9WgXcQ",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json(){ "kind": "youtube#video", "id": "dQw4w9WgXcQ", "snippet": { "publishedAt": "2009-10-25T06:57:33.000Z", "channelId": "UCuAXFkgsw1L7xaCfnd5JJOw", "channelTitle": "Rick Astley", "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)", "description": "The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Au…", "thumbnails": { "default": { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/default.jpg", "width": 120, "height": 90 }, "medium": { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/mqdefault.jpg", "width": 320, "height": 180 }, "high": { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg", "width": 480, "height": 360 }, "standard": { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/sddefault.jpg", "width": 640, "height": 480 }, "maxres": { "url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg", "width": 1280, "height": 720 } }, "tags": [ "rick astley", "… 26 more" ], "category": "Music", "categoryId": "10", "liveBroadcastContent": "none", "…": "1 more fields" }, "contentDetails": { "duration": "PT3M33S", "durationSeconds": 213, "caption": "true" }, "statistics": { "viewCount": "1840617441", "likeCount": "19517793", "commentCount": "2462543" }, "status": { "privacyStatus": "public", "embeddable": true, "isFamilySafe": true }, "paidProductPlacementDetails": { "hasPaidProductPlacement": false }, "isShort": false, "channel": { "id": "UCuAXFkgsw1L7xaCfnd5JJOw", "title": "Rick Astley", "handle": "@RickAstleyYT", "url": "https://www.youtube.com/@RickAstleyYT", "thumbnails": { "default": { "url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVx…", "width": 88, "height": 88 }, "medium": { "url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVx…", "width": 240, "height": 240 }, "high": { "url": "https://yt3.ggpht.com/_ShEGOdg-t5YGJse14Ooq6FYBZqX_QSlhaTNjG06miYusm5lWm1UroLyVx…", "width": 800, "height": 800 } }, "subscriberCount": "4560000", "isVerified": true, "isArtist": true }, "captionTracks": [ { "languageCode": "en", "name": "English", "isAutoGenerated": false, "isTranslatable": true }, "… 5 more" ], "…": "2 more fields"}All YouTube endpoints
Credits per call · refunded on failure · Code tutorials- YouTube video API
GET /v1/youtube/videos/{id}1 cr - YouTube bulk videos API
POST /v1/youtube/videos/batch5 cr - YouTube transcript API
GET /v1/youtube/videos/{id}/transcript2 cr - YouTube bulk transcripts API
POST /v1/youtube/transcripts/batch15 cr - YouTube subtitles download API
GET /v1/youtube/videos/{id}/subtitles2 cr - YouTube thumbnail API
GET /v1/youtube/videos/{id}/thumbnails1 cr - YouTube video sponsors API
GET /v1/youtube/videos/{id}/sponsors3 cr - YouTube community post API
GET /v1/youtube/posts/{id}1 cr
- YouTube related videos API
GET /v1/youtube/videos/{id}/related1 cr - YouTube channel videos API
GET /v1/youtube/channels/{channel}/videos1 cr - YouTube channel Shorts API
GET /v1/youtube/channels/{channel}/shorts1 cr - YouTube channel live streams API
GET /v1/youtube/channels/{channel}/lives1 cr - YouTube channel playlists API
GET /v1/youtube/channels/{channel}/playlists1 cr - YouTube channel podcasts API
GET /v1/youtube/channels/{channel}/podcasts1 cr - YouTube community posts API
GET /v1/youtube/channels/{channel}/posts1 cr - YouTube playlist API
GET /v1/youtube/playlists/{id}1 cr - YouTube trending Shorts API
GET /v1/youtube/trending/shorts5 cr - YouTube trending videos API
GET /v1/youtube/trending/videos2 cr
What people build with it
Creator analytics
Views, likes and comments per video, tracked over time.
Transcripts for AI
Turn videos into text for search, summaries and RAG.
Trend tracking
Spot sounds, hashtags and formats as they take off.
Pricing
Pay per call with credit packs that never expire, or keyless per call. No subscription. 100 free credits to start.
All packs →| Provider | Per 1,000 | Unit |
|---|---|---|
| Groundsocial | $1.00 → $0.40 | standard calls; $0.01 per call keyless |
| SocialCrawl | £6.00 → £1.99 | credits |
| ScrapeCreators | $1.88 → $0.99 | credits |
| Apify | From $1.70 | results, varies by actor |
| Bright Data | $1.50 → $1.30 | records |
| SerpApi | $25.00 → $1.96 | searchs |
| The YouTube Data API | Free, quota-limited | 10,000 units a day |
| EnsembleData | $2.22 → $0.93 | units |
| Phyllo | Quote only | custom plans |
Other providers’ prices from their public pages, in their own currency. A credit buys a different amount on each.
YouTube API questions
Do I need a YouTube account or API key?
No. Every call reads what YouTube shows a logged-out visitor. You only need a Groundsocial API key, or none at all with pay-per-call.
How much does the YouTube API cost?
From 1 credit per call. Credits cost $1.00 to $0.40 per 1,000 depending on the pack, or $0.01 per call keyless. Failed calls are refunded. You start with 100 free credits.
What format is the data in?
Responses come in the shape of YouTube Data API v3 resources, not a lossy cross-platform schema, so field names match what YouTube itself uses.
Can an AI agent use it?
Yes. Every YouTube endpoint is an MCP tool (youtube_video_get, …), and agents can sign themselves up with POST /v1/agent/signup.
Is it official?
No. Groundsocial is an independent API for public data. YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.
More video & streaming APIs
All platforms →35 endpoints
Twitch API4 endpoints
Kick API2 endpoints
Rumble API5 endpoints
Kwai API3 endpoints
Douyin API4 endpoints
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.