Skip to main content
Glama

get_mp3

Convert YouTube videos to MP3 audio files with optional trimming capabilities. Specify video ID and optionally set start/end times to extract specific segments.

Instructions

Convert to MP3 at the default bit rate. Quota cost will apply according to the length of the mp3 file.

Query Parameters:

  • id (Required): Quota cost will apply according to the length of the mp3 file. Quota is calculated as follows: if length <= 30 then 1 if 30 < length <= 60 then 2 if 60 < length <= 90 then 4 if 90 < length <= 120 then 5 if 120 < length <= 150 then 6 7 if 150 < length <= 180 then 7 8 if 180 < length <= 210 then 9 if 210 < length <= 240 then 10 (Note: length unit is minute) For trim/cut request, length of the original mp3 file is used for quota. If the trimmed mp3 file served from storage then trimmed length is us

  • cut: Cut the mp3 according to the provided sStart and sEnd parameters. The value must be provided as 1. The quota Cost is +1.

  • sStart: Starting point for cutting the mp3. Format must be HH:MM:SS

  • sEnd: End point for cutting the mp3. Format must be HH:MM:SS

Responses:

  • 200 (Success): Successful response

    • Content-Type: application/json

Input Schema

NameRequiredDescriptionDefault
idYesQuota cost will apply according to the length of the mp3 file. Quota is calculated as follows: if length <= 30 then 1 if 30 < length <= 60 then 2 if 60 < length <= 90 then 4 if 90 < length <= 120 then 5 if 120 < length <= 150 then 6 7 if 150 < length <= 180 then 7 8 if 180 < length <= 210 then 9 if 210 < length <= 240 then 10 (Note: length unit is minute) For trim/cut request, length of the original mp3 file is used for quota. If the trimmed mp3 file served from storage then trimmed length is us
cutNoCut the mp3 according to the provided sStart and sEnd parameters. The value must be provided as 1. The quota Cost is +1.0
sStartNoStarting point for cutting the mp3. Format must be HH:MM:SS
sEndNoEnd point for cutting the mp3. Format must be HH:MM:SS

Input Schema (JSON Schema)

{ "properties": { "cut": { "default": "0", "description": "Cut the mp3 according to the provided sStart and sEnd parameters. The value must be provided as 1. The quota Cost is +1.", "type": "number" }, "id": { "description": "Quota cost will apply according to the length of the mp3 file. Quota is calculated as follows: if length <= 30 then 1 if 30 < length <= 60 then 2 if 60 < length <= 90 then 4 if 90 < length <= 120 then 5 if 120 < length <= 150 then 6 7 if 150 < length <= 180 then 7 8 if 180 < length <= 210 then 9 if 210 < length <= 240 then 10 (Note: length unit is minute) For trim/cut request, length of the original mp3 file is used for quota. If the trimmed mp3 file served from storage then trimmed length is us", "type": "string" }, "sEnd": { "description": "End point for cutting the mp3. Format must be HH:MM:SS", "type": "string" }, "sStart": { "description": "Starting point for cutting the mp3. Format must be HH:MM:SS", "type": "string" } }, "required": [ "id" ], "type": "object" }

Other Tools

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-youtube-mp36'

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