The following request will provide you with a list of supported markets by LSports:
Method - POST
URL - https://stm-api.lsports.eu/Markets/Get
Body Scheme
{ "PackageId": YourPackageId, "UserName": "YourUserName", "Password": "YourPassword", "LocationsId":[122], "SportsId":[6046], "LeaguesId":[6], "IsSettleable":1, "MarketType" : 1, "LanguageId": LanguageId }
Parameter breakdown
Parameter | Description | Mandatory Field |
---|---|---|
Username | Username as it appears in the package | ✓ |
Password | Password as it appears the package | ✓ |
PackageId | PackageId as it provide by LSports | ✓ |
SportsId | SportsId as a filter opportunity Type:List <int> | X |
LocationsId | LocationsId as a filter opportunity Type : List <int> | X |
LeaguesId | LeaguesId as a filter opportunity Type : List <int> | X |
MarketsId | MarketsId as a filter opportunity Type : List <int> | X |
IsSettleable | IsSettleable as a filter opportunity Type : <bool> * The filter meaning is whether settlements is supported for this market and will be provided for this market by LSports. | X |
MarketType | Filter to get Markets per sport type (0 = All, 1 = Standard Sport Markets,2 = Outright Markets). empty field returns all leagues | X |
LanguageId | LanguageId as a filter opportunity | X |
Response Scheme
{ "Header": { "HttpStatusCode": 200 }, "Body": { "Markets": [ { "Id": 1, "Name": "1X2", "IsSettleable": false }, { "Id": 2, "Name": "Under/Over", "IsSettleable": false } ] } }
If the request is without “LanguageId” - the response returns a list of “Id” and “Name” in English.
If the request is with “LanguagesId” that InValid - ErrorCode 400 and error message - "Incorrect request, please enter a valid Language and resend your request."
If the request is with “LanguageId” and there are some sports that don't have a translation in this language - it's not returned (without an error).
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article