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.

post
Header parameters
AuthorizationstringRequiredExample: Bearer {jwt_token}
Body
LanguagestringOptional

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

Example: en
FixtureIdsinteger[] · min: 1Optional

List of fixture IDs for which insights are requested

Example: [13892682,13892683]
Responses
200
Successful retrieval of tips
application/json
post
POST /tips/api/v1/insights/batch HTTP/1.1
Host: sec-gw.lsports.eu
Authorization: Bearer {jwt_token}
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "Language": "en",
  "FixtureIds": [
    13892682,
    13892683
  ]
}
{
  "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.

post
Header parameters
AuthorizationstringRequiredExample: Bearer {jwt_token}
LanguagestringRequiredExample: en
Body
Responses
200
Successful retrieval of tips
application/json
post
POST /tips/api/v1/tips HTTP/1.1
Host: sec-gw.lsports.eu
Authorization: Bearer {jwt_token}
Language: en
Content-Type: application/json
Accept: */*
Content-Length: 480

{
  "Fixtures": [
    {
      "Id": "13772727",
      "Date": "2024-10-19T14:00:00Z",
      "Participants": [
        {
          "Id": "22",
          "Name": "Manchester United",
          "DisplayName": "Manchester United"
        }
      ],
      "Markets": [
        {
          "Id": "1",
          "Name": "Match Result",
          "Bets": [
            {
              "Id": "29152927913772727",
              "Name": "1",
              "Odds": 1.58,
              "Line": "1.5"
            }
          ]
        }
      ],
      "League": {
        "Id": "67",
        "Name": "Premier League",
        "DisplayName": "Premier League"
      },
      "Sport": {
        "Id": "1",
        "Name": "Football",
        "DisplayName": "Football"
      },
      "Location": {
        "Id": "2",
        "Name": "Old Trafford",
        "DisplayName": "Old Trafford"
      }
    }
  ]
}
{
  "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.

post
Header parameters
AuthorizationstringRequiredExample: Bearer {jwt_token}
LanguagestringRequiredExample: en
Body
Responses
200
Successful retrieval of new tips
application/json
post
POST /tips/api/v1/getnewtips HTTP/1.1
Host: sec-gw.lsports.eu
Authorization: Bearer {jwt_token}
Language: en
Content-Type: application/json
Accept: */*
Content-Length: 802

{
  "Fixtures": [
    {
      "Id": "13772727",
      "Date": "2024-10-19T14:00:00Z",
      "Participants": [
        {
          "Id": "22",
          "Name": "Manchester United",
          "DisplayName": "Manchester United"
        }
      ],
      "Markets": [
        {
          "Id": "1",
          "Name": "Match Result",
          "Bets": [
            {
              "Id": "29152927913772727",
              "Name": "1",
              "Odds": 1.58,
              "Line": "1.5"
            }
          ]
        }
      ],
      "League": {
        "Id": "67",
        "Name": "Premier League",
        "DisplayName": "Premier League"
      },
      "Sport": {
        "Id": "1",
        "Name": "Football",
        "DisplayName": "Football"
      },
      "Location": {
        "Id": "2",
        "Name": "Old Trafford",
        "DisplayName": "Old Trafford"
      }
    }
  ],
  "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
    }
  ]
}
{
  "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

Was this helpful?