Metadata

This documentation describes the available API endpoints for retrieving metadata and translations.

Retrieves a list of fixtures based on provided sport, location, and league IDs.

POSThttps://stm-api.lsports.eu/Fixtures/Get
Body
packageId*integer (int32)
userName*string
password*string
sportIdsnullable array of integer (int32)
locationIdsnullable array of integer (int32)
leagueIdsnullable array of integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetSubscribedFixturesResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Fixtures/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "fixtures": []
  }
}

Retrieves a list of leagues based on sport and location IDs.

POSThttps://stm-api.lsports.eu/Leagues/Get
Body
packageId*integer (int32)
userName*string
password*string
sportIdsnullable array of integer (int32)
locationIdsnullable array of integer (int32)
subscriptionStatusSubscriptionFilterEnum (enum)
012
languageIdnullable integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetLeaguesResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Leagues/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "leagues": [
      {
        "name": "text",
        "season": "text"
      }
    ]
  }
}

Retrieves a list of locations.

POSThttps://stm-api.lsports.eu/Locations/Get
Body
packageId*integer (int32)
userName*string
password*string
languageIdnullable integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetLocationsResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Locations/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "locations": [
      {
        "name": "text"
      }
    ]
  }
}

Retrieves a list of markets based on various filters like sport, location, league, and market type.

POSThttps://stm-api.lsports.eu/Markets/Get
Body
packageId*integer (int32)
userName*string
password*string
sportsIdnullable array of integer (int32)
locationsIdnullable array of integer (int32)
leaguesIdnullable array of integer (int32)
marketsIdnullable array of integer (int32)
isSettleablenullable boolean
marketTypeMarketFilterEnum (enum)
012
languageIdnullable integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetMarketsResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Markets/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "markets": [
      {
        "name": "text",
        "isSettleable": false
      }
    ]
  }
}

Retrieves a list of sports.

POSThttps://stm-api.lsports.eu/Sports/Get
Body
packageId*integer (int32)
userName*string
password*string
languageIdnullable integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetSportsResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Sports/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "sports": [
      {
        "name": "text"
      }
    ]
  }
}

Retrieves translations for various entities (sports, locations, leagues, markets, participants) for specified languages.

POSThttps://stm-api.lsports.eu/Translation/Get
Body
packageId*integer (int32)
userName*string
password*string
languages*array of integer (int32)
sportIdsnullable array of integer (int32)
locationIdsnullable array of integer (int32)
leagueIdsnullable array of integer (int32)
marketIdsnullable array of integer (int32)
participantIdsnullable array of integer (int32)
Response

Success

Body
headerResponseHeader (object)
bodyGetTranslationResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Translation/Get', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "languages": [],
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {}
}

Retrieves a list of competitions based on sport, location, and competition IDs.

POSThttps://stm-api.lsports.eu/Outright/GetCompetitions
Body
packageId*integer (int32)
userName*string
password*string
sportIdsnullable array of integer (int32)
locationIdsnullable array of integer (int32)
competitionIdsnullable array of integer (int32)
subscriptionStatusSubscriptionFilterEnum (enum)
012
Response

Success

Body
headerResponseHeader (object)
bodyGetCompetitionsResponseDto (object)
Request
const response = await fetch('https://stm-api.lsports.eu/Outright/GetCompetitions', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json-patch+json"
    },
    body: JSON.stringify({
      "password": "text",
      "userName": "text"
    }),
});
const data = await response.json();
Response
{
  "header": {
    "errors": [
      {
        "message": "text"
      }
    ]
  },
  "body": {
    "competitions": [
      {
        "name": "text"
      }
    ]
  }
}

Last updated