API docs
Three endpoints, one key. Base URL: https://nazriya.flirt.web.id
Authentication
Create a free key in your dashboard. Send it with every request, in one of two ways:
| Method | Example |
|---|---|
| Query parameter | ?key=YOUR_KEY |
| Header | x-api-key: YOUR_KEY |
Browser apps can call the API directly; CORS is enabled.
GET /api/search
Finds songs by name and returns the matching results. Use it to show a list to your users.
Parameters
| Name | Required | Description |
|---|---|---|
q | Yes | Search text, e.g. song or artist name |
key | Yes | Your API key (or send it in the x-api-key header) |
Request
GET https://nazriya.flirt.web.id/api/search?q=aarzu&key=YOUR_KEY
Response 200
{
"success": true,
"results": [
{
"title": "Aarzu",
"id": "VIDEO_ID",
"duration": "3:45",
"thumbnail": "https://...",
"url": "https://..."
}
]
}Response is passed through exactly as the source returns it, so field names may be slightly different from this example.
Code
JavaScript
const r = await fetch("https://nazriya.flirt.web.id/api/search?q=aarzu", { headers: { "x-api-key": "YOUR_KEY" } });
const data = await r.json();
Python
import requests
data = requests.get("https://nazriya.flirt.web.id/api/search", params={"q": "aarzu", "key": "YOUR_KEY"}).json()GET /api/audio
Returns the playable audio for a song. Use it for audio players and music bots. Seeking (HTTP Range) is supported.
Parameters
| Name | Required | Description |
|---|---|---|
q | Yes | Song name (or artist + song name) |
key | Yes | Your API key (or send it in the x-api-key header) |
Request
GET https://nazriya.flirt.web.id/api/audio?q=aarzu&key=YOUR_KEY
Response 200
{
"success": true,
"title": "Aarzu",
"duration": "3:45",
"audio": "https://.../audio-link"
}Response is passed through exactly as the source returns it, so field names may be slightly different from this example.
Code
JavaScript
const r = await fetch("https://nazriya.flirt.web.id/api/audio?q=aarzu", { headers: { "x-api-key": "YOUR_KEY" } });
const data = await r.json();
Python
import requests
data = requests.get("https://nazriya.flirt.web.id/api/audio", params={"q": "aarzu", "key": "YOUR_KEY"}).json()GET /api/video
Returns the playable video for a song. Use it for video players and video chat bots. Seeking (HTTP Range) is supported.
Parameters
| Name | Required | Description |
|---|---|---|
q | Yes | Song name (or artist + song name) |
key | Yes | Your API key (or send it in the x-api-key header) |
Request
GET https://nazriya.flirt.web.id/api/video?q=aarzu&key=YOUR_KEY
Response 200
{
"success": true,
"title": "Aarzu",
"duration": "3:45",
"video": "https://.../video-link"
}Response is passed through exactly as the source returns it, so field names may be slightly different from this example.
Code
JavaScript
const r = await fetch("https://nazriya.flirt.web.id/api/video?q=aarzu", { headers: { "x-api-key": "YOUR_KEY" } });
const data = await r.json();
Python
import requests
data = requests.get("https://nazriya.flirt.web.id/api/video", params={"q": "aarzu", "key": "YOUR_KEY"}).json()Free plan limits
| Audio | Video | Search | Valid for | Rate |
|---|---|---|---|---|
| 500 | 25 | 500 | 30 days | 30/min |
Failed requests are not counted against your quota. Seeking inside a song you already played is free. Need more? Contact @heartfailer for the paid plan.
Errors
| Code | Meaning |
|---|---|
| 400 | Missing q |
| 401 | Missing or invalid key |
| 403 | Key expired or disabled |
| 429 | Quota finished or rate limit hit |
| 502 / 503 | Source error or endpoint disabled |
{ "success": false, "error": "Invalid API key." }