YouTube to MP3
Pricing
from $0.04 / 1,000 second of audios
YouTube to MP3
Convert YouTube videos to MP3 audio and get a direct download link. High quality, no login, no API key.
YouTube to MP3 — Convert & Download YouTube Videos to MP3 Audio (No API Key, No Login)
Convert YouTube videos to MP3 and get a clean, ready-to-play audio file with a direct download link — from a single video, a Short, an entire channel, or a plain search phrase. No API key, no login, no cookies or account required, and nothing to install. Get the title, duration, file size, and expiry back as structured data, and export scraped data to JSON, CSV, Excel, or XML, schedule runs via API, and integrate with your tools and AI workflows.
Built for AI agents: call this actor from Claude, ChatGPT / Codex, and Cursor through the Apify MCP server to convert YouTube videos to MP3 on demand inside your own automations.
What it does • AI agents (MCP) • How to convert • Output data • Limiting results • Output example • Pricing • Integrations • FAQ • Other actors
What can YouTube to MP3 do? {#what-can-youtube-to-mp3-do}
YouTube to MP3 converts YouTube videos to high-quality MP3 audio and hands you a direct download link for each track. Paste one or more video links, a channel URL, or a plain search phrase — the actor finds the matching videos, extracts the audio, and returns a ready-to-download MP3 together with the title, duration, file size, and expiry details.
There is nothing to install and no account to connect. You do not need a YouTube API key, cookies, or a browser extension — no API key, no login, no cookies or account required. Resolving the video, extracting the audio, and hosting the download are all handled for you, so you can go from a URL to a playable MP3 in a single run and get your first results free in under 2 minutes.
✅ Convert any YouTube video to MP3
Drop in one or many startUrls and get one MP3 per video. Standard watch?v= links, youtu.be short links, and Shorts links are all accepted and normalized automatically — no manual cleanup needed.
🗂️ Convert channels, Shorts tabs, and searches at scale
Pass a channel or profile URL (including the /shorts tab) and the actor expands it into individual videos, converting each one up to your maxItems cap. Turn an entire back-catalog into audio in one go and convert many YouTube videos to MP3 at once — no per-video clicking.
🔎 Search-to-MP3 without leaving the actor
Provide plain queries in searchTerms (for example "lofi hip hop mix") and the actor pulls the matching videos from YouTube search and converts them alongside any links you supplied. You can also paste a full YouTube search-results URL directly into startUrls.
🔗 Direct, ready-to-use download links
Every result includes a url you can open in a browser, stream in an audio player, or pipe straight into your own storage. The link points to a real audio/mpeg file with a proper filename — no redirect pages, no ads, no captchas, no limitations on requests.
📊 Clean, structured metadata
Each track comes back as a tidy JSON record: source video, output filename, sizeMB, durationSeconds, content type, and when the link expires. Export scraped data to JSON, CSV, Excel, or XML with one click.
⚡ Fast, fresh audio at scale
Multiple videos are processed together, so a batch of links or a full channel finishes quickly and delivers fast, fresh data — no caching, no stale files. Each run lasts at most about 10 minutes and returns everything it managed to convert.
🔄 Automation-friendly output
Because every item is a plain JSON object with a stable shape, the results slot directly into n8n, Zapier, Make, Google Sheets, or any script — ideal for recurring "new uploads → MP3" workflows, and a clean way to go beyond the limitations of the official YouTube API.
Use with AI agents — Claude, ChatGPT & Cursor (MCP) {#use-with-ai-agents-mcp}
This actor is exposed through the Apify MCP server, so AI agents can convert YouTube videos to MP3 as a tool call and get download links back as structured data.
- Claude (Desktop or API) — add the Apify MCP server and let Claude convert videos on request, e.g. "grab the audio of these three talks as MP3."
- ChatGPT / Codex — wire the actor into your agent's tool list and return direct download links inside a conversation or a coding task.
- Cursor — trigger conversions from inside your editor while building audio pipelines and agents.
Once results are in an Apify dataset, you can fan them out to the tools your agents already use — Slack, Notion, Airtable, Google Sheets, Zapier, Make, n8n, Gumloop, CrewAI, and Lindy — using their connectors or the plain Apify API. An agent can, for example, watch a channel, convert new uploads to MP3, and drop the links into a Notion database automatically.
How to convert YouTube videos to MP3 {#how-to-convert-youtube-videos-to-mp3}
- Open the actor page: YouTube to MP3.
- Under What to convert, add one or more YouTube URLs to
startUrls— a single video, several videos, a channel URL, a/shortstab, or a search-results URL. - (Optional) Add plain queries under Search in
searchTermsto pull in videos by keyword. - Set Max tracks (
maxItems) to cap how many videos are converted in the run. - Click Start (or call the actor via API / MCP).
- When the run finishes, open the Dataset tab and grab the
urlof each MP3, or export the whole run to JSON, CSV, Excel, or XML.
That's it — no keys, no login, no cookies, no extra setup. Most first runs return a playable MP3 in under two minutes.
What data can I get from YouTube to MP3? {#what-data-can-i-get-from-youtube-to-mp3}
When you convert YouTube videos to MP3, each dataset item describes one converted audio track:
| Field | Type | Description |
|---|---|---|
url | string | Direct download link to the MP3 file. |
filename | string | Suggested file name for the track (.mp3). |
sourceUrl | string | The original YouTube video URL that was converted. |
token | string | Output format identifier (e.g. mp3). |
contentType | string | MIME type of the file, e.g. audio/mpeg. |
sizeMB | number | Approximate file size in megabytes. |
durationSeconds | integer | Length of the audio in seconds. |
height | integer / null | Video height when relevant; null for audio-only MP3 output. |
expiresAt | string (ISO 8601) | Timestamp when the download link expires. |
retentionHours | integer | How many hours the file is kept available. |
deleteAfter | string | Human-readable retention window (e.g. 24h). |
Tip: open
urldirectly to download, or storesourceUrl+filenamealongside it to keep a tidy audio library.
Use cases
- Podcast & interview archiving — turn long-form talks and interviews into MP3s you can listen to offline.
- Music & mix libraries — batch-convert a channel or playlist of DJ sets, live sessions, or covers.
- Language learning — save lessons, pronunciation guides, and story readings as audio.
- Meditation, sleep & focus audio — convert ambient and lofi videos into loopable MP3 files.
- Content repurposing — extract the audio track from your own videos for transcription, clips, or reels.
- Research & lectures — build an audio study set from conference talks and course videos.
- Voiceover & sample sourcing — pull audio for editing, sampling, or reference (respecting rights).
- Accessibility — provide audio-only versions of video content for listeners who prefer it.
Input examples
Use the real input fields below. All fields are optional except that you must supply at least one of startUrls or searchTerms.
Convert a single video
{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }]}
Convert several videos at once
{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" },{ "url": "https://youtu.be/9bZkp7q19f0" },{ "url": "https://www.youtube.com/shorts/aBcDeFGhijk" }],"maxItems": 20}
Convert an entire channel (including its Shorts tab)
{"startUrls": [{ "url": "https://www.youtube.com/@YouTube" },{ "url": "https://www.youtube.com/@YouTube/shorts" }],"maxItems": 50}
Convert videos by search phrase
{"searchTerms": ["lofi hip hop mix","best places of england"],"maxItems": 15}
Mix links and search together
{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }],"searchTerms": ["relaxing piano music"],"maxItems": 10}
Limiting results {#limiting-results}
Control the size of each run with maxItems:
maxItems(integer, default20, min1, max100) — the maximum number of tracks converted in a single run. When you pass a channel, a Shorts tab, or search terms that resolve to many videos, only the firstmaxItemsare converted.
Each run lasts at most about 10 minutes and returns everything it converted within that window. To process more than maxItems videos, split the work across multiple runs (for example by paginating channels or narrowing your search terms).
Output example {#output-example}
A single dataset item looks like this:
{"url": "https://download.youtube-mp3.link/f/1oNx9b_yPoT.mp3","token": "mp3","height": null,"sizeMB": 0.3,"filename": "Me at the zoo.mp3","expiresAt": "2026-07-19T12:37:04.978Z","sourceUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw","contentType": "audio/mpeg","deleteAfter": "24h","retentionHours": 24,"durationSeconds": 19}
Download links are temporary by design — grab or forward each url before the expiresAt time (retention is shown in retentionHours / deleteAfter).
How much does it cost to convert YouTube to MP3? {#how-much-does-it-cost-to-convert-youtube-to-mp3}
This actor runs on Apify's pay-per-result model: you are billed for the tracks you actually convert, not for idle time. Conversions are processed in parallel to keep runs short, so converting a batch of links or a full channel is efficient.
Costs scale linearly with the number of tracks — a handful of videos costs a handful of results, and larger batches simply return more items. New Apify accounts include free monthly usage credits, so you can get your first results free in under 2 minutes at no cost. See the Pricing tab on the actor page for current rates.
Integrate with n8n, Zapier, and Make {#integrations}
Every run writes to an Apify dataset you can read over the standard API. Use the actor path myagizm~youtube-mp3-downloader.
Run and get results synchronously
Best for a small batch where you want the MP3 links back in the same request:
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-mp3-downloader/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }],"maxItems": 5}'
Start a run asynchronously
Best for larger batches; start the run, then poll or use a webhook:
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-mp3-downloader/runs?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"searchTerms": ["lofi hip hop mix"],"maxItems": 25}'
Fetch dataset items later
$curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&clean=true&format=json"
Swap format=json for csv, xlsx, or xml to export directly. In n8n, Zapier, and Make (plus Slack, Airbyte, Gumloop, CrewAI, IFTTT, GitHub, and Google Sheets), use the official Apify integrations (or a plain HTTP node) to trigger the actor and map the url, filename, and sourceUrl fields into the next step of your workflow. Webhooks let you kick off downstream steps the moment a run finishes.
Want other YouTube data? {#want-other-youtube-data}
YouTube to MP3 is part of the myagizm YouTube toolkit. If you need more than audio, these sibling actors cover the rest — mix and match them in one pipeline:
- YouTube Video Downloader — download full YouTube videos with a direct link.
- YouTube Shorts Downloader — grab Shorts as video files in bulk.
- YouTube Transcript Scraper — extract transcripts and captions from any video.
- YouTube Video Info Scraper — pull titles, stats, and metadata for videos.
- YouTube Channel Scraper — collect a channel's videos and details.
- YouTube Comment Scraper — scrape comments and engagement from videos.
FAQ {#faq}
Is it legal to convert YouTube videos to MP3?
The actor only works with publicly available data. You are responsible for how you use the output — only convert content you own or are permitted to use, respect YouTube's Terms of Service and applicable copyright law, and comply with data-protection rules such as GDPR when personal data is involved. This tool is intended for legitimate uses such as archiving your own videos and accessibility.
Do I need a YouTube API key or an account?
No. There is no API key, no login, and no cookies or account required. Paste a URL or a search phrase and run the actor — it goes beyond the limitations of the official YouTube API.
Can I use YouTube to MP3 with the Apify API?
Yes. Run the actor and read its dataset over the standard Apify API using the path myagizm~youtube-mp3-downloader, or use the official JavaScript and Python client libraries.
Can I convert YouTube to MP3 through an MCP server (AI agents)?
Yes. The actor is available through the Apify MCP server, so Claude, ChatGPT/Codex, and Cursor can call it as a tool and receive MP3 links as structured data.
Do I need proxies to convert YouTube videos to MP3?
No. Everything needed to resolve, extract, and host the audio is handled for you — there is nothing to configure.
Can I integrate YouTube to MP3 with other apps?
Yes. Results flow into Make, Zapier, n8n, Slack, Airbyte, Gumloop, CrewAI, IFTTT, GitHub, and Google Sheets via the Apify integrations, webhooks, or a plain HTTP request.
Can I export results to CSV, Excel, or JSON?
Yes. From the run's Dataset tab choose JSON, CSV, Excel, or XML — or call the API with format=csv / format=xlsx / format=xml.
Can I convert many YouTube videos to MP3 at once?
Yes. Pass multiple links, a whole channel, a Shorts tab, or several search terms and convert them all in a single run, up to your maxItems limit — with no limitations on the number of requests.
Can I schedule recurring conversions?
Yes. Use Apify Schedules to run the actor on a cron (for example, convert a channel's new uploads every morning) and forward the links to your storage or chat tools.
Can I convert audio from private or unlisted videos?
No. The actor only converts publicly available videos. Private, members-only, and age/region-restricted content that isn't publicly accessible is not supported.
What formats does it output?
Audio is returned as MP3 (audio/mpeg), indicated by the token and contentType fields, with a suggested .mp3 filename.
How long do the download links stay valid?
Links are temporary. Each item includes expiresAt, retentionHours, and deleteAfter (e.g. 24h) so you know exactly when to grab or re-host the file. If a link expires, re-run the actor for that sourceUrl to get a fresh one.
Why is height sometimes null?
For audio-only MP3 output there is no video frame, so height is null. The field exists to keep the record shape consistent across the actor family.
What happens if a video can't be converted?
That video is skipped and the run continues; the dataset contains every track that was converted successfully within the run window.
Related searches {#related-searches}
youtube to mp3 · youtube audio extractor · youtube mp3 api · podcast audio download · bulk youtube to mp3 · extract audio from youtube · youtube audio for transcription · youtube mp3 converter api · x402 actor · ai agent scraper no account · pay with usdc api · mcp scraper for agents
Run it from an AI agent — no Apify account needed (x402) {#x402}
This actor accepts agentic payments over the open x402 protocol. An AI agent can pay for a run in USDC on Base and get the data without an Apify account, a credit card, or an API key:
# one-time: wallet + prepaid token (agent side)npx -y awal auth login <email>npx awal x402 pay 'https://agi.apify.com/protocols/x402/prepaid-tokens?amount=1¤cy=usd' --max-amount 1000000 --json# then use the returned token exactly like an Apify API tokencurl "https://api.apify.com/v2/acts/myagizm~youtube-mp3-downloader/run-sync-get-dataset-items" \-H "Authorization: Bearer $PREPAID_TOKEN" -H 'Content-Type: application/json' -d '{INPUT}'
Why it works here: this actor is pay per event and runs with limited permissions, the two conditions x402 requires. You are charged per result, so an agent pays only for the rows it receives. The prepaid token is a hard spending cap and expires 14 days after purchase.
Disclaimer
This is an independent tool and is not affiliated with, endorsed by, or sponsored by YouTube or Google. All product names, logos, and brands are property of their respective owners. Use it only to convert content you own or are otherwise permitted to use, and in compliance with all applicable laws and platform terms.
Support {#support}
Questions, bug reports, or feature requests? Open an issue on the actor's Issues tab on Apify. Please include the input you used and the run ID so problems can be reproduced quickly. Improvements and fixes are shipped regularly.
Resources {#resources}
- Apify API documentation — run actors and read datasets programmatically.
- Apify MCP server — connect this actor to Claude, ChatGPT, and Cursor.
- Exporting dataset results — JSON, CSV, Excel, and XML export options.
- Apify Schedules — automate recurring conversions.
- Apify client libraries — official JavaScript and Python SDKs.
中文说明 —— YouTube 转 MP3 工具
免登录抓取 YouTube 公开数据 —— 从视频中提取音频,输出 MP3 下载链接。不需要 API Key、不需要 OAuth 应用、不需要登录或 Cookie。结果可导出为 JSON、CSV、Excel、XML,也可通过 Apify API 定时运行并接入 n8n、Zapier、Make 等工具。
两分钟内免费拿到第一批数据 —— 填入内容、点击 Start 即可。无需配置,试用不需要信用卡。
能做什么
- 🎵 提取音频并输出 MP3 链接。
- 🔎 支持搜索词与播放列表 / 频道入口。
- ⏳ 返回下载链接与失效时间。
- 📤 导出链接清单,交给下载流程。
谁在用
- 🎙️ 播客与音频团队 —— 把视频访谈转成音频。
- 📝 转写流程 —— 音频比视频更适合送入语音识别。
- 🎧 离线收听 —— 保存讲座与课程音频。
- 🤖 AI 团队 —— 构建语音语料。
可以抓取哪些数据
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 链接 |
filename | string | Suggested file name for the track (.mp3). |
sourceUrl | string | 处理的原始链接 |
token | string | Output format identifier (e.g. mp3). |
contentType | string | MIME type of the file, e.g. audio/mpeg. |
sizeMB | number | Approximate file size in megabytes. |
durationSeconds | integer | Length of the audio in seconds. |
retentionHours | integer | How many hours the file is kept available. |
deleteAfter | string | Human-readable retention window (e.g. 24h). |
字段取决于该条目公开了什么;不存在的值返回
null,数据结构保持稳定。
输入示例
{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }]}
输出示例
{"url": "https://download.youtube-mp3.link/f/1oNx9b_yPoT.mp3","token": "mp3","height": null,"sizeMB": 0.3,"filename": "Me at the zoo.mp3","expiresAt": "2026-07-19T12:37:04.978Z","sourceUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw","contentType": "audio/mpeg","deleteAfter": "24h","retentionHours": 24,"durationSeconds": 19}
价格
采用按结果计费:只为真正拿到的数据付费,不按运行时间收费。
- 💸 成本 = 结果数量 × 单价,预算可提前算清。
- 📉 Apify 的 Bronze / Silver / Gold / Platinum / Diamond 套餐享阶梯折扣。
- 🆓 新账号自带每月免费额度,第一次运行不花钱。
- 🚫 无代理附加费、无单次请求费、无最低消费。
实时价格见 Apify 商店页面。
使用建议
- ⏳ 链接会过期,请当场下载。
- 📝 做转写时音频比视频省带宽,优先用本工具。
- ⚖️ 请遵守版权与平台条款。
其他YouTube数据
- 📺 YouTube 频道抓取 —— 频道视频目录与统计。
- 💬 YouTube 评论抓取 —— 评论、作者与点赞。
- 📝 YouTube 字幕抓取 —— 带时间戳的逐行字幕。
- ℹ️ YouTube 视频信息 —— 标题、观看数、点赞、简介等元数据。
- ⬇️ YouTube 视频下载 —— 按清晰度下载完整视频。
- 🎬 YouTube Shorts 下载 —— 批量保存 Shorts。
- 🎵 YouTube 转 MP3 —— 提取音频。
其他平台同样是免登录、按结果计费:Instagram · TikTok · X(推特) · Reddit · Google 地图 · Google 新闻。完整家族见 myagizm 商店主页。
配合 AI 智能体使用(MCP)
本 Actor 已接入 Apify MCP 服务器,Claude、ChatGPT、Cursor 等助手可以把它当作工具直接调用,用自然语言提问即可拿到结构化结果,无需写胶水代码。
集成与 API
支持 Make、Zapier、n8n、Slack、Airbyte、Gumloop、CrewAI、IFTTT、Lindy、GitHub、Google Sheets、Google Drive,以及 Webhook、定时任务与 MCP 服务器。
curl -X POST "https://api.apify.com/v2/acts/myagizm~youtube-mp3-downloader/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"startUrls": [{ "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw" }]}'
把 format 改成 json、csv、xlsx 或 xml 即可导出不同格式。
常见问题
需要 API Key 或登录吗? 不需要。没有 API Key、没有 OAuth 应用、不登录、不用 Cookie,也不会使用你的账号。
抓取YouTube合法吗? 只采集公开可见的数据,即任何未登录访客都能看到的内容,不登录、不绕过访问控制。合规责任由使用者承担:如涉及个人数据请遵守 GDPR / CCPA 与平台条款。
能抓私密内容吗? 不能,需要登录或已删除的内容会被跳过并记录在日志中。
需要配置代理吗? 不需要,已内置托管。
支持导出 CSV / Excel / JSON 吗? 支持 JSON、CSV、Excel、XML。
可以通过 Apify API 调用吗? 可以,见上方示例。
支持 AI 智能体(MCP)吗? 支持,Claude、ChatGPT、Cursor 均可当作工具调用。
可以定时运行吗? 可以,支持 Apify Schedules、API 与 Webhook。
数据有多新? 不缓存,每次运行都读取当前公开页面。
让 AI 代理直接调用 —— 无需 Apify 账号(x402)
本工具支持基于开放 x402 协议 的代理支付:AI 代理可以用 Base 链上的 USDC 直接付费运行,无需 Apify 账号、信用卡或 API 密钥。
npx -y awal auth login <邮箱>npx awal x402 pay 'https://agi.apify.com/protocols/x402/prepaid-tokens?amount=1¤cy=usd' --max-amount 1000000 --jsoncurl "https://api.apify.com/v2/acts/myagizm~youtube-mp3-downloader/run-sync-get-dataset-items" \-H "Authorization: Bearer $PREPAID_TOKEN" -H 'Content-Type: application/json' -d '{INPUT}'
之所以可用:本工具采用按事件计费且以受限权限运行,这正是 x402 的两个前提条件。按结果计费,代理只为拿到的数据付费;预付令牌本身就是消费上限,购买后 14 天到期。
免责声明
本工具为独立第三方工具,与 YouTube / Google LLC 无任何隶属、认可或赞助关系,所有商标归各自所有者。
本 Actor 只采集公开可见的数据,不登录、不绕过访问控制、不获取私密内容。数据使用的合规责任由使用者承担。
相关搜索
youtube 转 mp3 · youtube 音频提取 · 播客音频下载 · youtube mp3 api · 批量转 mp3 · 免 api key 音频下载 · x402 支付 · ai 代理抓取 · usdc 付费 api