Music
List Music Genres
import { ShortGenius } from 'shortgenius'
const client = new ShortGenius({
bearerAuth: 'YOUR_API_TOKEN'
})
const genres = await client.getMusicGenres()
console.log(`Found ${genres.length} music genres:`)
for (const genre of genres) {
console.log(`- ${genre.name}`)
if (genre.recommended_for_locales && genre.recommended_for_locales.length > 0) {
console.log(` Recommended for: ${genre.recommended_for_locales.join(', ')}`)
}
}from shortgenius import Shortgenius
client = Shortgenius(api_key="YOUR_API_TOKEN")
genres = client.music.genres.list()
print(f"Found {len(genres)} music genres:")
for genre in genres:
print(f"- {genre.name}")
if genre.recommended_for_locales:
print(f" Recommended for: {', '.join(genre.recommended_for_locales)}")Response Fields
Field
Description
List Music in a Genre
Response Fields
Field
Description
Using Music in Videos
Next Steps
Last updated