Youtube - API Documentation
Comprehensive API documentation for Nexos Labs projects and tools.
Published: | Updated:
YouTube Data
Fetch YouTube Channel Statistics
Retrieves statistics for a specific YouTube channel.
- Endpoint: /youtube/channel/:channelId
- Method: GET
- Parameters:- channelId(required): The ID of the YouTube channel
 
Example Request:
GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw
Example Response:
{
  "channelId": "UC_x5XG1OV2P6uZZ5FSM9Ttw",
  "subscriberCount": 1000000,
  "viewCount": 50000000,
  "videoCount": 500
}
Fetch YouTube Channel Videos
Retrieves a list of videos for a specific YouTube channel.
- Endpoint: /youtube/channel/:channelId/videos
- Method: GET
- Parameters:- channelId(required): The ID of the YouTube channel
 
Example Request:
GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw/videos
Example Response:
[
  {
    "videoId": "dQw4w9WgXcQ",
    "title": "Example Video",
    "description": "This is an example video.",
    "publishDate": "2024-07-01T12:00:00Z"
  }
]
Fetch YouTube Channel Playlists
Retrieves a list of playlists for a specific YouTube channel.
- Endpoint: /youtube/channel/:channelId/playlists
- Method: GET
- Parameters:- channelId(required): The ID of the YouTube channel
 
Example Request:
GET https://api.nexoscrafting.live/youtube/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw/playlists
Example Response:
[
  {
    "playlistId": "PL1Y2Z3A4B5C6D7E8F9G0H1I2J3K4L5M",
    "title": "Example Playlist",
    "description": "This is an example playlist."
  }
]
