Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYYesAPI 密钥

Tools

Functions exposed to the LLM to take actions

NameDescription
auto_complete

Auto Complete

Query Parameters:

  • q (Required): Query for suggestions

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

trending

Trending

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

home

Home

Query Parameters:

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

search

Search

Query Parameters:

  • q: Search query

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_channels

Channel Channels

Query Parameters:

  • id: Channel ID

  • filter: Filter key or token, default: all_collections Keys you can enter: all_collections: Returns channel collections subscriptions: Returns subscribed channels or custom collection token

  • cursor: Example value:

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_search

Channel Search

Query Parameters:

  • id: Channel ID

  • q: Search query

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_playlists

Channel Playlists

Query Parameters:

  • id: Channel ID

  • filter: Filter key or token, default: all_collections Keys you can enter: all_collections: Returns playlist collections created_playlists_newest: Returns created playlists (by newest) created_playlists_last_video_added: Returns created playlists (by last video added) saved_playlists: Returns saved playlists or custom collection token

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_details

Channel Details

Query Parameters:

  • id (Required): Channel ID or URL e.g. UCJ5v_MCY6GNUBTO8-D3XoAg e.g. https://www.youtube.com/@WWE

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_community

Channel Community

Query Parameters:

  • id: Channel ID

  • cursor: Cursor token

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_videos

Channel Videos

Query Parameters:

  • id: Channel ID

  • filter: Filter key, default: videos_latest Keys you can enter: videos_latest: Returns videos (by latest) streams_latest: Returns live streams (by latest) shorts_latest: Returns short videos (by latest) live_now: Returns current live streams

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

channel_details_v2

Channel Details (v2)

Query Parameters:

  • channel_id (Required): Channel ID or URL e.g. UCJ5v_MCY6GNUBTO8-D3XoAg e.g. https://www.youtube.com/@WWE

  • hl: Example value: en

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

video_comments

Video Comments

Query Parameters:

  • id: Video ID

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

video_related_contents

Video Related Contents

Query Parameters:

  • id: Video ID

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

video_streaming_data

Video Streaming Data

Query Parameters:

  • id (Required): Video ID

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

video_details

Video Details

Query Parameters:

  • id (Required): Video ID or URL e.g. kJQP7kiw5Fk e.g. https://youtu.be/kJQP7kiw5Fk e.g. https://www.youtube.com/watch?v=kJQP7kiw5Fk

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

video_details_v2

Video Details (v2)

Query Parameters:

  • video_id (Required): Video ID or URL e.g. kJQP7kiw5Fk e.g. https://youtu.be/kJQP7kiw5Fk e.g. https://www.youtube.com/watch?v=kJQP7kiw5Fk

  • hl: Example value: en

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

community_post_comments

Community Post Comments

Query Parameters:

  • cursor (Required): Cursor token You can get it from the Community Post Details endpoint.

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

community_post_details

Community Post Details

Query Parameters:

  • id (Required): Community post ID

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

playlist_videos

Playlist Videos

Query Parameters:

  • id: Playlist ID

  • cursor: Cursor token

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

playlist_details

Playlist Details

Query Parameters:

  • id (Required): Playlist ID

  • hl: Example value: en

  • gl: Example value: US

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BACH-AI-Tools/bachai-youtube138'

If you have feedback or need assistance with the MCP directory API, please join our Discord server