API call

Request:
https://nirvana.fm/api/{method}?api_id={your_api_id}&api_sid={api_sid}&format=json&api_sign={signature}
Parameters:
api_idgo to section My API keys and create new API key.
api_signread this how to calculate api signature
api_sidsession identificator, to obtain it call API "/api/auth".
formathave only one allowed value = "json"

You can pass all parameters via GET or POST method.

If you use the cookies in your request, you can omit parameter "api_sid", and pass cookie "app_sid_" + api_id (from /api/auth) instead it.
Encoding:
Always UTF-8
Successfull response:
{ response: { // ... } }
Error response:
{ error: { code: "ERROR_CODE", text: "Error description" } }

JavaScript request with callback:
https://nirvana.fm/api/{method}?api_id={api_id}&api_sid={api_sid}&format=json&callback={javascript_callback}&api_sign={signature}
Successfull response:
MyCallbackFunc({ response: { // ... } });
Error response:
MyCallbackFunc({ error: { code: "ERROR_CODE", text: "Error description" } });
Nirvana

Partnership
Legal