First Steps
A detailed description of the API can be found in the Stoplight UI. ⚠️ Note: The Thermos Proxy API is currently in beta and may change frequently. We recommend checking the Stoplight UI for the latest version of the API.General concepts
Currency and Pricing
All price values in this API (likefloor or price) are represented as strings in nanotons. A string is used to avoid precision loss with very large numbers.
- 1 TON = 1,000,000,000 nanoton
Rarity
Some attributes include ararity_per_mille field. This indicates the rarity of the attribute out of 1,000. For example, a rarity_per_mille of 30 means there is a 3% (30/1000) chance of this attribute appearing.
Some attributes also include a rarity_score field. This number is a product of all rarity_per_mille values. Foe example, if gift has model (10), backdrop (20) and symbol (5), its rarity_score is 1000.
Colors
Colors are represented as integers (decimal format of a hex code). For example,5470609 is #537791.
Gifts API
List gift collections
You can use this endpoint to obtain the full list of gift collections & associated attributes (image url, floor, count)ApiGiftCollection objects:
List gift backdrops
You can use this endpoint to obtain the full list of gift backdrops & associated attributes (colors, floor, count)ApiBackdrop objects:
List gift symbols
You can use this endpoint to obtain the full list of gift symbols & associated attributes (image url, floor, count)ApiSymbol objects:
List collection attributes
You can use this endpoint to obtain supported attributes (symbols, backdrops, models) for a list of collectionsApiGiftCollectionAttributesResponse object,
which is a dictionary where keys are collection names and values are ApiCollectionAttributes objects:
Gift search
You can use this endpoint to perform a complex search operationApiGiftSearchRequest object:
- ordering: defines the sort order of gifts. Allowed values are- PRICE_ASC,- PRICE_DESC,- MODEL_RARITY_ASC,- MODEL_RARITY_DESC,- BACKDROP_RARITY_ASC,- BACKDROP_RARITY_DESC,- SYMBOL_RARITY_ASC,- SYMBOL_RARITY_DESC,- RARITY_SCORE_ASC,- RARITY_SCORE_DESC,- NUMBER_ASC,- NUMBER_DESC
- page: defines current page. Minimum page is- 1
- per_page: defines number of gifts per page
- query: defines full-text search query
- price_range: defines min & max price; prices are specified in nanoton. min & max are optional, e.g. you can specify either one of them or both
- number: defines the gift number
- collections: defines the list of gift collections
- models: defines the list of gift models
- backdrops: defines the list of gift backdrops
- symbols: defines the list of gift symbols
- markets: defines the list of gift markets
ApiGiftSearchResponse object:
Get gift endpoint
Get gift
You can use this endpoint to get a gift by its marketplace & external id. This endpoint always returns actual dataApiGiftExternal object in case of success, or 404 if gift is not available anymore: