API Documentation
Frozen Music API
Access music data programmatically through our REST API
The Frozen Music API allows developers to access our vast music database and integrate music streaming functionality into their applications. Our API provides endpoints for searching songs, artists, and albums, as well as retrieving detailed information about them.
Features
- Search for songs, artists, and albums
- Get detailed information about songs, including download URLs
- Browse trending songs and popular artists
- Rate-limited access for free tier users
- Higher rate limits and additional features for premium users
Getting Started
- Generate an API key in the "API Keys" tab
- Include your API key in the request header:
X-API-Key: your_api_key
- Make requests to the API endpoints
- Handle the JSON responses in your application
Authentication
All API requests require authentication using your API key. There are two ways to include your API key:
1. Request Header (Recommended)
Add the X-API-Key
header to your HTTP request:
X-API-Key: your_api_key
2. Query Parameter
Alternatively, you can add the API key as a query parameter:
https://frozenmusic.vercel.app/api/v1/search?query=coldplay&api_key=your_api_key
Code Examples
// Using fetch
const apiKey = "your_api_key";
fetch("https://frozenmusic.vercel.app/api/v1/search?query=coldplay", {
headers: {
"X-API-Key": apiKey
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
Error Responses
The API returns standard HTTP status codes and JSON error messages:
401 Unauthorized
{ "error": "Unauthorized", "message": "Invalid or missing API key" }
429 Too Many Requests
{ "error": "Rate limit exceeded", "message": "You have exceeded your rate limit of 100 requests per day" }
For premium API access with higher rate limits, please contact us on Telegram: @xyz09723 or our bot @frozen_bots_bot