100 free credits. No credit card required. Get a key

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()
Response
200 · 1 credit
{
"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

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 →
ProviderPer 1,000Unit
Groundsocial$1.00 → $0.40standard calls; $0.01 per call keyless
SocialCrawl£6.00 → £1.99credits
ScrapeCreators$1.88 → $0.99credits
ApifyFrom $1.70results, varies by actor
Bright Data$1.50 → $1.30records
SerpApi$25.00 → $1.96searchs
The YouTube Data APIFree, quota-limited10,000 units a day
EnsembleData$2.22 → $0.93units
PhylloQuote onlycustom 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.

All platforms →

YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.