Trackyard Music API
Trackyard gives you instant access to tens of thousands of curated tracks — every song 100% legally cleared for social media, YouTube, podcasts, and online content (non-film/TV). Three things make it stand out:
- Massive cleared catalog — tens of thousands of hand-curated songs ready to use on any social platform, no licensing headaches.
- AI-powered search — describe what you need in plain English ("moody lo-fi for a coffee shop vlog") and the API finds the right track, even inferring genre, mood, BPM, and instrumentation from your description.
- Smart clip downloader — trim any track to an exact duration and the algorithm automatically finds the best-sounding segment. Optionally specify a hit point so the biggest moment in the song lands exactly where you need it in your video.
Use Cases
- Social media content farms — automate music selection at scale for TikTok, Reels, and Shorts pipelines; search once per video brief and clip to the exact platform duration (15s, 30s, 60s)
- Social media ads — find brand-safe tracks that match your ad's energy, trimmed to exact ad lengths with the hook or drop landing right at the key visual moment
- AI video generation — pair AI-generated video with AI-selected music; feed the video description into search and clip the result to match the video length exactly
- YouTube & podcast backgrounds — find instrumental, low-energy tracks to sit under voiceover without competing with it
- Product demo & unboxing videos — match music energy to product vibe; minimal synth for a productivity app, high-energy for a fitness brand
- Real estate & property walkthroughs — calm, spacious ambient tracks that complement visuals without distraction
- Corporate & training videos — professional, neutral background music that keeps viewers engaged without distracting from content
- App & game trailers — build tension or excitement with the hit point placed exactly on the key reveal moment
Setup
Requires TRACKYARD_API_KEY environment variable. Users get an API key at trackyard.com.
export TRACKYARD_API_KEY="trackyard_live_..."
Or add to OpenClaw config: env.vars.TRACKYARD_API_KEY
Quick Reference
Search for music
scripts/trackyard.sh search "upbeat electronic for tech startup video"
With filters:
scripts/trackyard.sh search "chill background music" --limit 5 --no-vocals --energy medium
Download a track
Full track:
scripts/trackyard.sh download TRACK_ID
Trimmed to 22 seconds:
scripts/trackyard.sh download TRACK_ID --duration 22
With hit-point alignment (drop lands at 12s mark):
scripts/trackyard.sh download TRACK_ID --duration 22 --hit-point 12
Check credits
scripts/trackyard.sh me
Workflow
- Search with natural language → get track IDs and metadata
- Download the chosen track (1 credit), optionally trimmed
Filter Options
| Filter |
Values |
--genres |
electronicDance, pop, rock, hiphop, ambient, classical, jazz, etc. |
--moods |
happy, energetic, sad, calm, dramatic, mysterious, romantic |
--energy |
low, medium, high |
--min-bpm / --max-bpm |
60-200 |
--no-vocals |
Instrumental only |
--instruments |
synthesizer, guitar, piano, drums, strings, etc. |
Trimming
When downloading with --duration:
- Algorithm finds the most energetic segment with smooth cut points
--hit-point N places the peak/drop at N seconds into the clip
- Perfect for syncing music hits to video moments
Credits
- Search: 1 credit
- Download: 1 credit
- Account info: Free
Output
- Search returns JSON with track metadata
- Downloads save as
.mp3 to current directory (filename from track title)
1---2name: trackyard3description: Search and download licensed music from Trackyard's AI-powered catalog. Use for finding background music for videos, social content, podcasts, or any project needing royalty-free tracks. Supports natural language search ("upbeat electronic for tech video"), smart audio trimming to exact durations with hit-point alignment, and filtering by genre, mood, BPM, vocals, energy, and instruments.4---5
6# Trackyard Music API
7
8Trackyard gives you instant access to tens of thousands of curated tracks — every song 100% legally cleared for social media, YouTube, podcasts, and online content (non-film/TV). Three things make it stand out:
9
101. **Massive cleared catalog** — tens of thousands of hand-curated songs ready to use on any social platform, no licensing headaches.
112. **AI-powered search** — describe what you need in plain English ("moody lo-fi for a coffee shop vlog") and the API finds the right track, even inferring genre, mood, BPM, and instrumentation from your description.
123. **Smart clip downloader** — trim any track to an exact duration and the algorithm automatically finds the best-sounding segment. Optionally specify a hit point so the biggest moment in the song lands exactly where you need it in your video.
13
14## Use Cases
15
16- **Social media content farms** — automate music selection at scale for TikTok, Reels, and Shorts pipelines; search once per video brief and clip to the exact platform duration (15s, 30s, 60s)
17- **Social media ads** — find brand-safe tracks that match your ad's energy, trimmed to exact ad lengths with the hook or drop landing right at the key visual moment
18- **AI video generation** — pair AI-generated video with AI-selected music; feed the video description into search and clip the result to match the video length exactly
19- **YouTube & podcast backgrounds** — find instrumental, low-energy tracks to sit under voiceover without competing with it
20- **Product demo & unboxing videos** — match music energy to product vibe; minimal synth for a productivity app, high-energy for a fitness brand
21- **Real estate & property walkthroughs** — calm, spacious ambient tracks that complement visuals without distraction
22- **Corporate & training videos** — professional, neutral background music that keeps viewers engaged without distracting from content
23- **App & game trailers** — build tension or excitement with the hit point placed exactly on the key reveal moment
24
25## Setup
26
27Requires `TRACKYARD_API_KEY` environment variable. Users get an API key at [trackyard.com](https://trackyard.com).
28
29```bash
30export TRACKYARD_API_KEY="trackyard_live_..."
31```
32
33Or add to OpenClaw config: `env.vars.TRACKYARD_API_KEY`
34
35## Quick Reference
36
37### Search for music
38
39```bash
40scripts/trackyard.sh search "upbeat electronic for tech startup video"
41```
42
43With filters:
44
45```bash
46scripts/trackyard.sh search "chill background music" --limit 5 --no-vocals --energy medium
47```
48
49### Download a track
50
51Full track:
52
53```bash
54scripts/trackyard.sh download TRACK_ID
55```
56
57Trimmed to 22 seconds:
58
59```bash
60scripts/trackyard.sh download TRACK_ID --duration 22
61```
62
63With hit-point alignment (drop lands at 12s mark):
64
65```bash
66scripts/trackyard.sh download TRACK_ID --duration 22 --hit-point 12
67```
68
69### Check credits
70
71```bash
72scripts/trackyard.sh me
73```
74
75## Workflow
76
771. **Search** with natural language → get track IDs and metadata
782. **Download** the chosen track (1 credit), optionally trimmed
79
80## Filter Options
81
82| Filter | Values |
83|--------|--------|
84| `--genres` | electronicDance, pop, rock, hiphop, ambient, classical, jazz, etc. |
85| `--moods` | happy, energetic, sad, calm, dramatic, mysterious, romantic |
86| `--energy` | low, medium, high |
87| `--min-bpm` / `--max-bpm` | 60-200 |
88| `--no-vocals` | Instrumental only |
89| `--instruments` | synthesizer, guitar, piano, drums, strings, etc. |
90
91## Trimming
92
93When downloading with `--duration`:
94- Algorithm finds the most energetic segment with smooth cut points
95- `--hit-point N` places the peak/drop at N seconds into the clip
96- Perfect for syncing music hits to video moments
97
98## Credits
99
100- Search: 1 credit
101- Download: 1 credit
102- Account info: Free
103
104## Output
105
106- Search returns JSON with track metadata
107- Downloads save as `.mp3` to current directory (filename from track title)