GET Competitions

Modified on Tue, 01 Mar 2022 at 04:37 PM

The following article will show you how you can get all the competitions that relevant for requested filters. Competitions are relevant only for Outright Sports.

Method - POST
URL - https://stm-api.lsports.eu/Outright/GetCompetitions

Body Scheme

{
    "PackageId": YourPackageId,
    "UserName": "YourUserName",
    "Password": "YourPassword",
    "LocationIds":[2],
    "SportIds":[687888],   
    "SubscriptionStatus":"1"
}

Parameter breakdown

ParameterDescriptionMandatory Field
UsernameUsername as it appears in the package
PasswordPassword as it appears the package
PackageIdPackageId as it provide by LSports
SportIdsSportsId as a filter opportunity
Type:List <int>
X
LocationIdsLocationId as a filter opportunity
Type : List <int>
X
CompetitionIdsCompetitionId as a filter opportunity
Type:List <int>
X
SubscriptionStatusFilter by subscription status to get your subscribed/not subscribed competitions (1 = Not Subscribed, 2 = Subscribed). empty field returns all competitionsX

Response Scheme

{
    "Header": {
        "HttpStatusCode": 200
    },
    "Body": {
        "Competitions": [
            {
                "Id": 2767,
                "Name": "Lingfield",
                "Type": 1,
                "TrackId": 333
            },
            {
                "Id": 2770,
                "Name": "Brighton",
                "Type": 1,
                "TrackId": 335
            }
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article