Individual song or track with artist, album association, duration, genre, playback statistics, and release date. Used for music streaming services, radio stations, and music databases.
https://api.mockly.codes/songs?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/songsGet a collection of songs
/media/songs/songs/:idGet a single song by ID
/media/songs/:id/songs/metaGet resource metadata and schema
/media/songs/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/songs?q=laptopGET https://api.mockly.codes/songs?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 songs
fetch('https://api.mockly.codes/songs?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/songs?count=10'
)
data = response.json()curl "https://api.mockly.codes/songs?count=10"fetch('https://api.mockly.codes/songs?nocache=true')idintegerUnique identifier for the song
random_inttitlestringTitle of the song
sentenceartiststringName of the artist or band who performed the song
namealbumstringName of the album this song belongs to
sentencedurationintegerSong duration in seconds
random_intgenrestringMusic genre of the song (e.g., Pop, Rock, Jazz, Country)
wordurlstringURL to the song audio file or streaming link
urluriplaysintegerTotal number of times the song has been played
random_intreleased_atstringDate when the song was released
past_datedatecountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request