Music album collection with artist, genre, release information, track count, duration, pricing, and ratings. Used for music streaming platforms, record stores, and music databases.
https://api.mockly.codes/albums?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/albumsGet a collection of albums
/media/albums/albums/:idGet a single album by ID
/media/albums/:id/albums/metaGet resource metadata and schema
/media/albums/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/albums?q=laptopGET https://api.mockly.codes/albums?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 albums
fetch('https://api.mockly.codes/albums?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/albums?count=10'
)
data = response.json()curl "https://api.mockly.codes/albums?count=10"fetch('https://api.mockly.codes/albums?nocache=true')idintegerUnique identifier for the album
random_inttitlestringAlbum title or name
album_titleartiststringName of the artist or band who created the album
namegenrestringMusic genre (e.g., Rock, Pop, Jazz, Classical, Electronic)
music_genrerelease_datestringDate when the album was originally released
past_datedatelabelstringRecord label or music company that released the album
companytracksintegerTotal number of tracks or songs on the album
random_intdurationintegerTotal album duration in seconds
album_durationratingnumberAverage user or critic rating, typically on a scale of 1-5
ratingpricenumberPurchase price of the album
pricecurrencystringISO currency code for the album price (e.g., USD, EUR, GBP)
currencycoverstringURL to the album cover art image
image_urluricountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request