tasty

tasty api
Triggers
GET /api/v1/triggers
Триггеры
GET /api/v1/triggers

Responses

200 OK
Body
Object
triggerId
integer
Example:
123123
title
string
Example:
Заголовок тригера
description
string
Example:
Описание
price
integer
Example:
100
oldPrice
integer
Example:
150
sale
integer
Example:
50
bonusMoney
integer
Example:
100
bonusCoins
integer
Example:
100
image
string
Example:
Путь до картинки
label
string
Example:
Ярлык
cases
Array
Object
name
string
Example:
Назавание кейса
image
string
Example:
Путь до картинки
id
integer
Example:
123123
price
string
Example:
1010010
FAQ
GET /api/v1/page/faq
Get FAQ
GET /api/v1/page/faq

Responses

200 OK
Body
Object
satus
boolean

true

data
Array
Object
name
string

Назваине категории

answers
Array

Массив объектов ответов

Object
question
string

Вопрос

answer
string

Ответ

popularQuestion
boolean

Признак популярности вопроса

Profile
Inventory
GET /api/v1/users/{user_id}/dashboard?active=1
GET /api/v1/inventory/{inventory_id}/trade_id
POST /api/v1/inventory/senditem
GET /api/v1/inventory/get?page=1&per_page=45&group=active&user_id=2
dashboard
GET /api/v1/users/{user_id}/dashboard?active=1

Path variables

user_id
number required
Example 1
{
    "status": true,
    "data": {
        "inventoryCount": 10,
        "battlesCount": 10,
        "upgradesCount": 10,
        "sendItemsCount": 10,
        "bestDrop": {
            "id": 162964136,
            "rare": "Immortal",
            "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
            "name": "Tormented Crown",
            "price": "5.98",
            "currency": "RUB",
            "type": "Case"
        }
    }
}
trade
GET /api/v1/inventory/{inventory_id}/trade_id

Path variables

inventory_id
integer required
Example 1
{
    "status": true,
    "data" {
        "trade_id": null,
        "inventory_id": "168761820",
        "until_sending": "297",
        "until_timeout": "597"
    }
}
sendItem
POST /api/v1/inventory/senditem

Request parameters

ids
array of integer optional

Один элемент в массиве, если не type3

Collection format: csv
method
string optional

Если это не type3

Example:
senditem
Example 1
{
    "status": true,
    "data" {
        "msg": "\u041f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043d\u0430 \u0432\u044b\u0432\u043e\u0434",
        "until_sending": 300
    }
}
getInventory
GET /api/v1/inventory/get?page=1&per_page=45&group=active&user_id=2

Request parameters

page
integer optional
per_page
integer optional
Example 1
{
    "status": true,
    "data": {
        "perPage": 45,
        "currentPage": 1,
        "lastPage": 1,
        "totalItem": 1,
        "totalPrice": "5.98",
        "items": [
            {
                "id": 162964136,
                "rare": "Immortal",
                "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
                "name": "Tormented Crown",
                "price": "5.98",
                "currency": "RUB",
                "type": "Case"
            }
        ]
    }
}
User
GET /api/v1/users/me
GET /api/v1/users/{user_id}
POST /api/v1/users/set/steam/data
getMe
GET /api/v1/users/me
Example 1
{
    "status": true,
    "data": {
        "userId": 2247740,
        "nickname": "mazitovroma6",
        "avatar": "https://avatars.steamstatic.com/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg",
        "createdAt": "2024-04-01 18:24:01",
        "isFake": false,
        "userLevel": "-1",
        "percentToNextLevel": "-1",
        "expToNextLevel": "-1",
        "currentExp": "-1",
        "nearestCaseTime": null,
        "nextLevelCaseData": null,
        "availableCases": [],
        "finance": {
            "balance": "185.97",
            "currency": "RUB",
            "coinBalance": "1520",
            "totalAmountItems": "432.37"
        },
        "personal": {
            "firstName": null,
            "lastName": null,
            "email": null,
            "city": null,
            "country": null,
            "ip": "10.2.1.68"
        },
        "steam": {
            "partner": null,
            "token": null,
            "id": "76561198849045119",
            "link": null,
            "login": null
        },
        "statistic": {
            "cases": {
                "opened": 1607
            },
            "finance": {
                "spent": "76074",
                "profit": "194387"
            }
        }
    }
}
getUser
GET /api/v1/users/{user_id}

Path variables

user_id
string required
Example 1
{
    "status": true,
    "data": {
        "userId": 2247740,
        "nickname": "mazitovroma6",
        "avatar": "https://avatars.steamstatic.com/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg",
        "createdAt": "2024-04-01 18:24:01",
        "isFake": false,
        "userLevel": "-1",
        "percentToNextLevel": "-1",
        "expToNextLevel": "-1",
        "currentExp": "-1",
        "nearestCaseTime": null,
        "nextLevelCaseData": null,
        "availableCases": [],
        "statistic": {
            "cases": {
                "opened": 1607
            },
            "finance": {
                "spent": "76074",
                "profit": "194387"
            }
        }
    }
}
setSteamData
POST /api/v1/users/set/steam/data

Request body

Object
link
string

Может быть null

login
string

Может быть null

Sell
POST /api/v1/sell
POST /api/v1/sell/meny
POST /api/v1/sell/all
POST /api/v1/inventory/replacement
sell
POST /api/v1/sell

Единичная продажа предмета и замена предмета

Request body

Object
id
string

id инвентаря

Example:
123123
replacement
boolean

Метка замены предмета

sellMeny
POST /api/v1/sell/meny

Множественная продажа предмета

Request body

Object
ids
Array of integer

несколько id инвентаря

sellAll
POST /api/v1/sell/all

Продает все предметы

Replacement
POST /api/v1/inventory/replacement

Заменить предмет

Request body

Object
inventory_id
integer

Предмет, который заменяем

replacement_id
string

Предмет на который заменяем из списка предложенных в сокетах

Responses

201 Created
Body
Object
status
boolean

true

data
Object
msg
string
Example:
Предмет успешно обменян
status
boolean

true

battles
GET /api/v1/battles/best?user_id=2&member_count=2
GET /api/v1/battles/statistic?user_id=2&is_bot=true&member_count=2
GET /api/v1/battles?page=1&per_page=45&with_best=false&member_count=2&user_id=2&is_bot=true
getBestBattle
GET /api/v1/battles/best?user_id=2&member_count=2
Example 1
{
    "status": true,
    "data": {
        "battle":  {
            "ulid": "01j1vvdy0j12j5a0pktdc1yz4x",
            "price": 12,
            "slots": 2,
            "private": false,
            "bots": false,
            "my": true,
            "members": [
                {
                    "id": 529776,
                    "me": true,
                    "slot": 1,
                    "userId": 2247740,
                    "name": "mazitovroma6",
                    "bot": false,
                    "avatar": "https:\/\/avatars.steamstatic.com\/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg",
                    "level": 0,
                    "ready": 0
                }
            ],
            "hostId": 529776,
            "winnerId": null,
            "cases": [
                {
                    "caseId": 5970,
                    "amount": 1,
                    "data": {
                        "id": 5970,
                        "name": "test_type3_battle",
                        "disp_name": "Test type3 Battle",
                        "type": "case",
                        "multifix": null,
                        "multicast_range": null,
                        "currency": "RUB",
                        "price": 12,
                        "oldPrice": null,
                        "coins": null,
                        "maxop": null,
                        "leftop": null,
                        "image": "",
                        "hoverImage": "",
                        "label": {
                            "type": "new",
                            "name": "\u041d\u043e\u0432\u0438\u043d\u043a\u0430",
                            "color": "FFFFFF",
                            "freeOpens": 0
                        }
                    }
                }
            ],
            "status": "created",
            "cancellationReason": null,
            "startedAt": null,
            "finishedAt": null,
            "spectators": 0,
            "total": 0,
            "totalSell": 0
        }
    }
}
getBattleStat
GET /api/v1/battles/statistic?user_id=2&is_bot=true&member_count=2
Example 1
{
    "status": true,
    "data": {
        "allCount": 300,
        "winCount": 150,
        "maxDrop": 25000,
        "lastFiveWiner": [
            true,
            false
        ]
    }
}
getBattles
GET /api/v1/battles?page=1&per_page=45&with_best=false&member_count=2&user_id=2&is_bot=true

Request parameters

members
number optional
Example 1
{
    "status": true,
    "data":
    {
        "perPage": 45,
        "currentPage": 1,
        "lastPage": 1,
        "totalItem": 1,
        "items": [{
                "ulid": "01j1vvdy0j12j5a0pktdc1yz4x",
                "price": 12,
                "slots": 2,
                "private": false,
                "bots": false,
                "my": true,
                "members": [
                    {
                        "id": 529776,
                        "me": true,
                        "slot": 1,
                        "userId": 2247740,
                        "name": "mazitovroma6",
                        "bot": false,
                        "avatar": "https:\/\/avatars.steamstatic.com\/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg",
                        "level": 0,
                        "ready": 0
                    }
                ],
                "hostId": 529776,
                "winnerId": null,
                "cases": [
                    {
                        "caseId": 5970,
                        "amount": 1,
                        "data": {
                            "id": 5970,
                            "name": "test_type3_battle",
                            "dispName": "Test type3 Battle",
                            "type": "case",
                            "multifix": null,
                            "multicastRange": null,
                            "currency": "RUB",
                            "price": 12,
                            "oldPrice": null,
                            "coins": null,
                            "maxop": null,
                            "leftop": null,
                            "image": "",
                            "hoverImage": "",
                            "label": {
                                "type": "new",
                                "name": "\u041d\u043e\u0432\u0438\u043d\u043a\u0430",
                                "color": "FFFFFF",
                                "freeOpens": 0
                            }
                        }
                    }
                ],
                "status": "created",
                "cancellationReason": null,
                "startedAt": null,
                "finishedAt": null,
                "spectators": 0,
                "total": 0,
                "totalSell": 0
            }
        ]
    }
}
Updrages
GET /api/v1/upgrades/statistic?user_id=2
GET /api/v1/upgrades?page=1&per_page=45&user_id=2
getUpgradesStat
GET /api/v1/upgrades/statistic?user_id=2
Example 1
{
    "status": true,
    "data": {
        "allCount": 300,
        "winCount": 150,
        "maxDrop": 25000,
    }
}
getUpgrades
GET /api/v1/upgrades?page=1&per_page=45&user_id=2
Example 1
{
    "status": true,
    "data": {
        "perPage": 45,
        "currentPage": 1,
        "lastPage": 1,
        "totalItem": 1,
        "items": [
            {
                "prize": {
                    "id": 162964136,
                    "rare": "Immortal",
                    "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
                    "name": "Tormented Crown",
                    "price": "5.98",
                    "currency": "RUB",
                    "type": "Upgrade"
                },
                "items": [
                    {
                        "id": 162964135,
                        "rare": "Immortal",
                        "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
                        "name": "Tormented Crown",
                        "price": "5.98",
                        "currency": "RUB",
                        "type": "Upgrade"
                    },
                    {
                        "id": 162964134,
                        "rare": "Immortal",
                        "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
                        "name": "Tormented Crown",
                        "price": "5.98",
                        "currency": "RUB",
                        "type": "Case"
                    },
                ],
                "index": "1.2"
                "win": true,
                "percent": 63.2
            }
        ]
    }
}
ItemWithdrawal
GET /api/v1/inventory/get?page=1&per_page=45&group=withdrawal
getItemWithdrawal
GET /api/v1/inventory/get?page=1&per_page=45&group=withdrawal
Example 1
{
    "status": true,
    "data": {
        "perPage": 45,
        "currentPage": 1,
        "lastPage": 1,
        "totalItem": 1,
        "totalPrice": "5.98",
        "items": [
            {
                "id": 162964136,
                "rare": "Immortal",
                "img": "https:\/\/s3.dev.tastyteam.cc\/black\/public\/img\/uitems\/20386.png",
                "name": "Tormented Crown",
                "price": "5.98",
                "currency": "RUB",
                "type": "Case"
            }
        ]
    }
}