> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shappire.tools/llms.txt
> Use this file to discover all available pages before exploring further.

# Extrair áudio

> MP3/M4A de TikTok, SoundCloud, Vimeo e mais

## Formato

Use `audio_best` no download:

```bash theme={"theme":{"light":"github-light","dark":"one-dark-pro"}}
curl -X POST https://api.shappire.tools/v1/media/download \
  -H "X-API-Key: $SHAPPIRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://soundcloud.com/artist/track",
    "format": "audio_best"
  }'
```

Você pode passar `url` direto sem resolve prévio.

<Note>
  YouTube não é suportado. Veja [Plataformas](/pages/guides/plataformas).
</Note>

## Fluxo com resolve

```python theme={"theme":{"light":"github-light","dark":"one-dark-pro"}}
media = resolve("https://soundcloud.com/artist/track")
audio_format = next(f["id"] for f in media["formats"] if f["type"] == "audio")
job_id = enqueue(media["id"], audio_format)
job = wait_for_job(job_id)
# job["result"]["mime_type"] → audio/mpeg ou similar
```

## Casos de uso

* Podcast downloader
* Bot que envia MP3 no Telegram
* Pipeline de transcrição (Whisper, etc.)
