Competition

Modified on Mon, 21 Feb 2022 at 03:20 PM

Competition element holds Fixture, Markets, Livescore, OutrightFixture, OutrightLeague, OutrightScore elements. It is structured as follows: 

XML Example

<Competition Id="3310" Name="Wolverhampton" Type="1">
  <Events>
    <Event FixtureId="4992683">
       ...
    </Event>
  </Events>
  <Competitions Id="1" Name="All" Type="4">
    <Events>
      <Event FixtureId="4992683">
         ...
      </Event>
    </Events>
  </Competitions>
</Competition>

JSON Example

{
  "Competition": {
    "Id": 3310,
    "Name": "Wolverhampton",
    "Type": 1,
    "Events": [
      {
        "FixtureId": 4992683
      }
    ],
    "Competitions": [
      {
        "Id": 1,
        "Name": "All",
        "Type": 4,
        "Events": [
          {
            "FixtureId": 4992683
          }
        ]
      }
    ]
  }
}

Model

ElementData TypeDescription
Competition.IdintThe Id of the current competition
Competition.NamestringThe Name of the current competition
Competition.TypeintThe Type of the competition
Competition.EventsList of Events

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