VIBIO MUSIC API / V1

Build listening experiences.

Guides, endpoint reference and real integration examples.

http://localhost:3001/developers
Open developer console

Quickstart

  1. Create and verify your developer account.
  2. Activate an eligible sandbox or obtain a paid entitlement.
  3. Register an application and create a catalog-scoped API key.
  4. Keep the key on your backend, then make your first request.
JavaScript
// Node.js backend
const r = await fetch("http://localhost:3001/developers/v1/tracks?q=music&limit=10", {
  headers: { Authorization: `Bearer ${process.env.VIBIO_API_KEY}` }
});
if (!r.ok) throw new Error(`Vibio HTTP ${r.status}`);
const data = await r.json();

All six examples execute on a trusted backend, never inside a shipped mobile or web application.

Authentication

Use Authorization: Bearer YOUR_API_KEY for server-to-server requests. catalog:read authorizes metadata; playback:stream authorizes eligible audio. An application Client ID is not a secret or OAuth credential. The portal uses your confirmed Supabase session instead. Rotate compromised keys and never log tokens. Public application clients should call their own authenticated backend.

API reference

Search tracks

Application key · catalog:read

Search approved MP3 variants. Use q (100 characters), artist (160 characters, exact case-insensitive), quality (128, 192, 320), sort (relevance, id, title, artist, duration, quality), limit (1–50) and offset (0–10000). All query parameters are optional.

JSON
{
  "tracks": [],
  "offset": 0,
  "limit": 25,
  "hasMore": false,
  "nextOffset": null,
  "windowLimited": false
}

Illustrative response; not a live API result.

Playback & React SDK

Your backend authenticates its listener, authorizes the requested track and exchanges a playback-scoped application key for a session. Send only the session to the listener. Playback lasts up to ten minutes; sessions and bandwidth are quota-limited. Browser audio uses range requests and temporary URL tokens. Raw MP3 is not DRM. Streaming and verified music rights must be enabled separately.

JavaScript
// Trusted backend, after your own listener authorization
const r = await fetch("http://localhost:3001/developers/v1/playback/sessions", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.VIBIO_API_KEY}`,
    "Content-Type": "application/json" },
  body: JSON.stringify({trackId})
});
if (!r.ok) throw new Error("Playback denied");
const session = await r.json(); // return only to intended listener
JavaScript
// React client: copy the SDK module from the Vibio source
import { useEffect, useRef } from "react";
import { attachPlayback } from "./sdk/playback.js";
export function Player({ session }) {
  const ref = useRef(null);
  useEffect(() => {
    if (session && ref.current)
      return attachPlayback(ref.current, "http://localhost:3001/developers", session);
  }, [session]);
  return <audio ref={ref} controls controlsList="nodownload" />;
}

Hosted mini and full players

Use the same short-lived session with the hosted iframe. Choose mini (170 px) or full (410 px). A fresh session is required after expiration. Do not publish permanent token-bearing links.

JavaScript
import { embedUrl } from "./sdk/playback.js";
const frame = document.createElement("iframe");
frame.src = embedUrl("http://localhost:3001/developers", session, "mini");
frame.title = "Vibio Music player";
frame.width = "100%";
frame.height = "170";
frame.referrerPolicy = "no-referrer";
frame.setAttribute("sandbox", "allow-scripts allow-same-origin");
document.getElementById("player").append(frame);

Use no-referrer pages, exclude tokens from logs and revoke on stop via your backend. The SDK is source-only and has not been published to npm. The portal's CORS allowlist is not general third-party browser API access.

Errors & limits

API errors normally return {"error":{"code":"…"}}. Infrastructure rate limiting may return a different body. Account quotas are shared across applications and server replicas. Daily/monthly usage uses UTC; bandwidth is reserved, not measured delivery. Invalid authenticated requests may count toward quota. Online checkout is not live.

HTTPExample codeAction
400INVALID_QUERY / INVALID_PLAYBACK_REQUESTValidate parameter names, values and JSON body.
401INVALID_API_KEY / INVALID_PLAYBACK_CREDENTIAL / PLAYBACK_EXPIREDCheck the credential or create a fresh session.
403SUBSCRIPTION_REQUIRED / INSUFFICIENT_SCOPE / APPLICATION_REQUIREDCheck application scopes and active subscription.
404NOT_FOUND / MEDIA_UNAVAILABLECheck track ID, rights and cache availability.
416Range not satisfiableUse a valid single byte range within the file.
429QUOTA_EXCEEDED / PLAYBACK_SESSION_LIMITReduce requests; check plan allowances and active sessions.
503STREAMING_DISABLED / UNAVAILABLECheck health and retry transient errors with bounded backoff.