POST Event/EventBetSearch

Returns List of events searched for.

Request Information

URI Parameters

None.

Body Parameters

ApiEventBetSearchRequestFilter
NameDescriptionTypeAdditional information
searchStr

Gets or sets the Search String.

string

None.

userID

Gets or sets the user identifier.

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "searchStr": "sample string 1",
  "userID": 2
}

application/xml, text/xml

Sample:
<ApiEventBetSearchRequestFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <userID>2</userID>
  <searchStr>sample string 1</searchStr>
</ApiEventBetSearchRequestFilter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ApiEventBetSearchRequestFilter'.

Response Information

Resource Description

ApiBetSearchEventResponse
NameDescriptionTypeAdditional information
ResponseObject

Gets or sets the response object.

Collection of ApiEventBetSearch

None.

ResponseType

Gets or sets the type of the response.

integer

None.

ResponseMessage

Gets or sets the response message.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": [
    {
      "SportID": 1,
      "SportName": "sample string 1",
      "CountryID": 1,
      "CountryName": "sample string 2",
      "TournamentID": 1,
      "TournamentName": "sample string 3",
      "EventID": 1,
      "EventName": "sample string 4",
      "EventNumber": 1,
      "EventDateTime": "2025-12-27T08:56:31.9252142+02:00"
    },
    {
      "SportID": 1,
      "SportName": "sample string 1",
      "CountryID": 1,
      "CountryName": "sample string 2",
      "TournamentID": 1,
      "TournamentName": "sample string 3",
      "EventID": 1,
      "EventName": "sample string 4",
      "EventNumber": 1,
      "EventDateTime": "2025-12-27T08:56:31.9252142+02:00"
    }
  ],
  "ResponseType": 1,
  "ResponseMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<ApiBetSearchEventResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SyX.Online.API.Models">
  <ResponseMessage>sample string 2</ResponseMessage>
  <ResponseType>1</ResponseType>
  <ResponseObject>
    <ApiEventBetSearch>
      <CountryID>1</CountryID>
      <CountryName>sample string 2</CountryName>
      <EventDateTime>2025-12-27T08:56:31.9252142+02:00</EventDateTime>
      <EventID>1</EventID>
      <EventName>sample string 4</EventName>
      <EventNumber>1</EventNumber>
      <SportID>1</SportID>
      <SportName>sample string 1</SportName>
      <TournamentID>1</TournamentID>
      <TournamentName>sample string 3</TournamentName>
    </ApiEventBetSearch>
    <ApiEventBetSearch>
      <CountryID>1</CountryID>
      <CountryName>sample string 2</CountryName>
      <EventDateTime>2025-12-27T08:56:31.9252142+02:00</EventDateTime>
      <EventID>1</EventID>
      <EventName>sample string 4</EventName>
      <EventNumber>1</EventNumber>
      <SportID>1</SportID>
      <SportName>sample string 1</SportName>
      <TournamentID>1</TournamentID>
      <TournamentName>sample string 3</TournamentName>
    </ApiEventBetSearch>
  </ResponseObject>
</ApiBetSearchEventResponse>