PefrectPanel API
API Request
Method POST
URL https://streamdetails.com/api/v2/
Format JSON
API Response
Format JSON
Field Type Description
data null / Object / Array Null, if 'error' field not null
error null / Object Null, if 'data' field not null
User
Request fields
Field Type Description
key string Auth key
action string user
Response success example
{ "data": { "id": 1, "total_thread_count": 2000, "active_thread_count": 1200, "available_thread_count": 800, "follower_count": 0, "expiration_timestamp": 1703356772 }, "error": null }
Response error example
{ "data": null, "error": { code: 405, message: 'Method not allowed' } }
Response possible errors
Code Message
405 Method not allowed
401 Authorization required
401 Authorization failed
400 Invalid JSON data
Services
Request fields
Field Type Description
key string Auth key
action string services
Response success example
{ "data": [ { "id": 1, "name": "[TWITCH] VIEWERS [1h]", "type": "viewers", "category": "twitch", "rate": 1, "min": 10, "max": 2000, "duration": 60, "refill": false, "cancel": false }, { "id": 2, "name": "[TWITCH] VIEWERS [3h]", "type": "viewers", "category": "twitch", "rate": 1, "min": 10, "max": 2000, "duration": 180, "refill": false, "cancel": false }, ], "error": null }
Response error example
{ "data": null, "error": { code: 405, message: 'Method not allowed' } }
Response possible errors
Code Message
405 Method not allowed
401 Authorization required
401 Authorization failed
400 Invalid JSON data
Add
Request fields
Field Type Description
key string Auth key
action string add
service_id integer Valid service id
link string Example: https://www.twitch.tv/channelname
quantity integer Number of available threads
Response success example
{ "data": { "id": 6, "service_id": 1, "quantity": 100, "status": "progress", "created_at": 1700936460 }, "error": null }
Response error example
{ "data": null, "error": { code: 405, message: 'Method not allowed' } }
Response possible errors
Code Message
405 Method not allowed
401 Authorization required
401 Authorization failed
400 Invalid JSON data
400 Field "service_id" must be a valid integer
400 Field "quantity" must be a valid integer
400 Field "link" must be a string
400 Field "link" must be a valid link to channel
404 Service not found
400 Field "quantity" must be an integer between {min} and {max}
400 The requested quantity (1000) exceeds the available thread count (500)
404 Channel not found
403 Your API subscription is expired
Get
Request fields
Field Type Description
key string Auth key
action string get
order integer or not set Set, if field 'orders' not set
orders array or not set Set, if field 'order' not set. Array of integers.
Response success example
{ "data": { "id": 1, "service_id": 1, "quantity": 2000, "status": "new", "created_at": 1700905460 }, "error": null }
{ "data": [ { "id": 1, "service_id": 1, "quantity": 2000, "status": "new", "created_at": 1700905460 }, { "id": 5, "service_id": 1, "quantity": 2000, "status": "done", "created_at": 1700931587 } ], "error": null }
Response error example
{ "data": null, "error": { code: 405, message: 'Method not allowed' } }
Response possible errors
Code Message
405 Method not allowed
401 Authorization required
401 Authorization failed
400 Invalid JSON data
400 Field "order" or "orders" required
400 Field "order" must be a valid integer
400 Field "orders" must be an array
400 All elements in "orders" must be numbers