Tips API

This documentation describes the available API endpoints for retrieving insights and tips on various fixtures, allowing customers to access detailed betting tips and statistics.AuthenticationThe API requires JWT Token authentication. To generate a token, follow these steps:

  1. Log in to the backoffice.

  2. Navigate to Widgets on the left sidebar.

  3. Locate the widget relevant to your account.

  4. Click on the three dots on the widget card and select Copy API Key.

The API key is used to generate a JWT token, which must be included in the Authorization header of the API request. Example of Authorization header: Authorization: Bearer <jwt_token>

Retrieves tips for a batch of fixtures.

POSThttps://sec-gw.lsports.eu/tips/api/v1/insights/batch
Header parameters
Body
Languagestring

Language abbreviation (e.g., "en" for English)

Example: "en"
FixtureIdsarray of integer

List of fixture IDs for which insights are requested

Response

Successful retrieval of tips

Body
batchGuidstring

Unique identifier for the batch of tips

Example: "9287810e-1ee3-4ec7-a4aa-1f8cdf101014"
fixtureInsightsarray of object
Request
const response = await fetch('https://sec-gw.lsports.eu/tips/api/v1/insights/batch', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer {jwt_token}",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "batchGuid": "9287810e-1ee3-4ec7-a4aa-1f8cdf101014",
  "fixtureInsights": [
    {
      "fixtureId": 13892682,
      "type": "InPlay",
      "insights": [
        {
          "marketId": 52,
          "text": "{away} has lost 13 of her last 15 matches, in which she lost the 1st set",
          "betName": "1",
          "betLine": "",
          "tipId": "d5927ab5820e1b9b0c5cbde4a714da3c",
          "teamMemberName": null,
          "teamMemberId": null
        }
      ]
    }
  ]
}

Retrieves tips based on specific fixture details.

POSThttps://sec-gw.lsports.eu/tips/api/v1/tips
Header parameters
Body
Fixturesarray of object
Response

Successful retrieval of tips

Body
Tipsarray of object
Errorsarray of object
Request
const response = await fetch('https://sec-gw.lsports.eu/tips/api/v1/tips', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer {jwt_token}",
      "Language": "en",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Tips": [
    {
      "Id": "124e2908-4082-1581-be7d-06a8ff6a07fe",
      "FixtureId": "13772727",
      "MarketId": "1",
      "BetId": "29152927913772727",
      "PlayerId": null,
      "Tip": "Brentford has lost all of their last 3 away meetings against Manchester United.",
      "LSportsSportId": 6046,
      "LSportsFixtureId": 13772727,
      "LSportsLocationId": 243,
      "LSportsPlayerId": null
    }
  ],
  "Errors": [
    {
      "ErrorType": 1,
      "FixtureId": "13772727"
    }
  ]
}

Retrieves new tips added to existing ones.

POSThttps://sec-gw.lsports.eu/tips/api/v1/getnewtips
Header parameters
Body
Fixturesarray of object
Tipsarray of object
Response

Successful retrieval of new tips

Body
AddedTipsarray of object
Errorsarray of object
Request
const response = await fetch('https://sec-gw.lsports.eu/tips/api/v1/getnewtips', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer {jwt_token}",
      "Language": "en",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "AddedTips": [
    {
      "Id": "124e2908-4082-1581-be7d-06a8ff6a07fe",
      "FixtureId": "13772727",
      "MarketId": "1",
      "BetId": "29152927913772727",
      "PlayerId": null,
      "Tip": "Brentford has lost all of their last 3 away meetings against Manchester United.",
      "LSportsSportId": 6046,
      "LSportsFixtureId": 13772727,
      "LSportsLocationId": 243,
      "LSportsPlayerId": null
    }
  ],
  "Errors": [
    {
      "ErrorType": 1,
      "FixtureId": "13772727"
    }
  ]
}

Last updated