Ssocialgraph.dev
API reference / YouTube API / Videos list

YouTube video API: details and statistics by video ID

Read-only YouTube Data API v3 videos list endpoint.

1 credit per successful call Errors are never charged No login or OAuth needed

About the Videos list endpoint

The YouTube video API returns everything public about a video from its ID: title, description, channel, publish date, duration, definition, tags, category, thumbnails, and statistics such as view count, like count and comment count. Pass up to 50 video IDs in one call, or use the mostPopular chart for a region's trending videos. It mirrors YouTube Data API v3's videos.list, callable with your socialgraph.dev key.

What you can build with it

  • Video performance dashboards with live views, likes and comments
  • Enriching video IDs from search or playlists with full details
  • Trending-video feeds per country with the mostPopular chart

Request

GET https://socialgraph.dev/api/v1/youtube/videos

Send your API key as Authorization: Bearer YOUR_API_KEY. Parameters go in the query string.

Parameters

NameTypeDescription
part
required
string Required. Comma-separated: id, snippet, contentDetails, statistics, status, player, topicDetails, recordingDetails, liveStreamingDetails, localizations or paidProductPlacementDetails. For example: snippet,contentDetails,statistics
id
optional
string Comma-separated video IDs, up to 50 (provide id or chart). For example: OYp5j2RihPE
chart
optional
string mostPopular: the most popular videos in a region (provide id or chart).
regionCode
optional
string Country for chart=mostPopular (ISO 3166-1 alpha-2). For example: US
videoCategoryId
optional
string Category for chart=mostPopular. For example: 28
maxResults
optional
integer Maximum results per page with chart (1–50). Default 5.
pageToken
optional
string Token from a previous response (nextPageToken or prevPageToken).
hl
optional
string Language for localized titles and descriptions. For example: es
maxHeight
optional
integer Maximum height of the embed player in player.embedHtml (72–8192).
maxWidth
optional
integer Maximum width of the embed player in player.embedHtml (72–8192).

Code examples


Example response

{
    "etag": "AOQ6EutPPDfMeLalBR8FG3K-YAY",
    "kind": "youtube#videoListResponse",
    "items": [
        {
            "id": "OYp5j2RihPE",
            "etag": "ZFZKkKIu1Ugsp8Rqi-LE7NGFhzI",
            "kind": "youtube#video",
            "snippet": {
                "tags": [
                    "Google",
                    "developers"
                ],
                "title": "Gemini 4 Argon and Google Antigravity: From 2D concept to 3D cathedral",
                "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
                "localized": {
                    "title": "Gemini 4 Argon and Google Antigravity: From 2D concept to 3D cathedral",
                    "description": "Watch how an autonomous AI agent takes a flat 2D concept image and reconstructs a photorealistic 3D cathedral in Blender from scratch. Tiago Aragona demonstrates how to connect Antigravity directly to Blender via the Model Context Protocol (MCP), leveraging Gemini 4 Argon across 45 iterative agentic loops to deduce complex architectural geometry, detail column fluting, and set up volumetric lighting.\n\n\n🔗Resources:\nGemini 4 Argon Blog → https://goo.gle/4zze7Rg\nAntigravity Website → https://goo.gle/4B3IxMW\n\n\n\nSubscribe to Google for Developers → https://goo.gle/developers    \n\n\n\nSpeakers: Tiago Aragona\nProducts Mentioned: Gemini 4 Argon, Antigravity, Blender, Model Context Protocol (MCP), Flow"
                },
                "categoryId": "28",
                "thumbnails": {
                    "fhd": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/fhddefault.jpg",
                        "width": 1920,
                        "height": 1080
                    },
                    "high": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/hqdefault.jpg",
                        "width": 480,
                        "height": 360
                    },
                    "maxres": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/maxresdefault.jpg",
                        "width": 1280,
                        "height": 720
                    },
                    "medium": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/mqdefault.jpg",
                        "width": 320,
                        "height": 180
                    },
                    "default": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/default.jpg",
                        "width": 120,
                        "height": 90
                    },
                    "standard": {
                        "url": "https://i.ytimg.com/vi/OYp5j2RihPE/sddefault.jpg",
                        "width": 640,
                        "height": 480
                    }
                },
                "description": "Watch how an autonomous AI agent takes a flat 2D concept image and reconstructs a photorealistic 3D cathedral in Blender from scratch. Tiago Aragona demonstrates how to connect Antigravity directly to Blender via the Model Context Protocol (MCP), leveraging Gemini 4 Argon across 45 iterative agentic loops to deduce complex architectural geometry, detail column fluting, and set up volumetric lighting.\n\n\n🔗Resources:\nGemini 4 Argon Blog → https://goo.gle/4zze7Rg\nAntigravity Website → https://goo.gle/4B3IxMW\n\n\n\nSubscribe to Google for Developers → https://goo.gle/developers    \n\n\n\nSpeakers: Tiago Aragona\nProducts Mentioned: Gemini 4 Argon, Antigravity, Blender, Model Context Protocol (MCP), Flow",
                "publishedAt": "2026-10-13T19:00:11Z",
                "channelTitle": "Google for Developers",
                "defaultLanguage": "en",
                "defaultAudioLanguage": "en",
                "liveBroadcastContent": "none"
            },
            "statistics": {
                "likeCount": "855",
                "viewCount": "67202",
                "commentCount": "64",
                "favoriteCount": "0"
            },
            "contentDetails": {
                "caption": "true",
                "duration": "PT1M11S",
                "dimension": "2d",
                "definition": "hd",
                "projection": "rectangular",
                "contentRating": {},
                "licensedContent": false
            }
        }
    ],
    "pageInfo": {
        "totalResults": 1,
        "resultsPerPage": 1
    }
}

Errors

StatusMeaningCharged?
401Missing, invalid or revoked API keyNo
402Not enough credits (insufficient_credits)No
404The account or post doesn't existNo
422Missing or invalid parametersNo
502 / 503The data source is temporarily unavailableNo

All error codes →

Videos list API: frequently asked questions

How do I get a YouTube video's view count?

Call this endpoint with the video id and part=statistics. The response includes viewCount, likeCount and commentCount.

Can I fetch several videos in one call?

Yes, pass up to 50 comma-separated IDs in the id parameter.

How do I get trending videos?

Use chart=mostPopular with a regionCode, and optionally videoCategoryId, instead of id.

Which parts can I request?

snippet, contentDetails, statistics, status, player, topicDetails, recordingDetails, liveStreamingDetails, localizations and paidProductPlacementDetails, comma-separated.

How much does the Videos list endpoint cost?

1 credit per successful call (0.002 USD at 500 credits per dollar). Errors, "not found" responses and invalid input are never charged, and credits never expire.

Can I try the Videos list API without signing up?

Yes. The live demo on this page runs a real request with a fixed sample input, free and without an account. Creating a free account gives you 100 credits to test every endpoint with your own inputs.

Try it live: Videos list GET

🔒 Preset demo input. Live demos use the Google for Developers channel, youtube.com/@GoogleDevelopers. Sign up free to use your own.

Start with 100 free credits

Create an account in seconds. No card, no subscription. Credits never expire.

Create free account →