# youtube/api-samples

Code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. The repo contains language-specific directories that contain the samples.

Repository: https://github.com/youtube/api-samples
Canonical: https://ross.abutalabs.com/products/api-samples
Language: Java
License Family: other
Archived: true
Last push: 2024-06-09T20:38:03+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4650, "days_push": 815, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6020, forks 3056 (observed 2026-08-28T04:09:34.333509+00:00)

## What it is
A collection of official code samples for YouTube APIs, including the YouTube Data API, YouTube Analytics API, and YouTube Live Streaming API. Samples are organized into language-specific directories covering languages such as Java, Python, Go, PHP, and JavaScript.

## Use cases
- learn how to call the YouTube Data API
- upload videos to YouTube programmatically
- fetch YouTube analytics reports
- set up YouTube live streaming via API
- manage YouTube playlists and channels with code
- get started with YouTube API authentication

## When to choose
- you want official, working examples for YouTube APIs
- you are integrating YouTube features into an application and need reference code
- you are learning the YouTube API for the first time

## When to avoid
- you need a production-ready client library rather than sample code
- you need a complete application or framework
- you require a maintained dependency with a defined license for redistribution

## Facets
- artifact type: learning-resource
- maturity: active
- function: sdk, developer-tools
- domain: apis, developer-tools, media
- platform: python, jvm, go, php, cross-platform
- tags: youtube-data-api, youtube-analytics, live-streaming, code-samples, google-apis, nodejs

## Member repositories
- youtube/api-samples (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.333509+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:49:44.519548+00:00, confidence not recorded.
  - readme: https://github.com/youtube/api-samples (fetched 2026-08-28T04:09:34.333509+00:00, sha 052de556ad27)
- Data as of 2026-08-30T08:39:29.467469+00:00.
