| Method | POST |
|---|---|
| URL | https://streamdetails.com/api/v2/ |
| Format | JSON |
| Format | JSON |
|---|
| Field | Type | Description |
|---|---|---|
| data | null / Object / Array | Null, if 'error' field not null |
| error | null / Object | Null, if 'data' field not null |
| Field | Type | Description |
|---|---|---|
| key | string | Auth key |
| action | string | user |
| Code | Message |
|---|---|
| 405 | Method not allowed |
| 401 | Authorization required |
| 401 | Authorization failed |
| 400 | Invalid JSON data |
| Field | Type | Description |
|---|---|---|
| key | string | Auth key |
| action | string | services |
| Code | Message |
|---|---|
| 405 | Method not allowed |
| 401 | Authorization required |
| 401 | Authorization failed |
| 400 | Invalid JSON data |
| 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 |
| 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 |
| 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. |
| 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 |