SofaScore

SofaScore team trophies

Returns the trophies a team has won: the total and, per competition, the number won and the winning seasons (newest first, with the season id where SofaScore tracks it). Some competitions, such as US leagues, report a count with an empty or shorter seasons list. Returns 404 when SofaScore records no achievements for the team.

get/sofascore/team-achievements

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/sofascore/team-achievements
  • Auth: API key in header x-api-key

Query parameters

idstring required

Numeric SofaScore team id

Headers

x-api-keystring required

API key required

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": {
    "achievements": [
      {
        "competition": {
          "category": "England",
          "gender": "M",
          "id": 17,
          "name": "Premier League",
          "slug": "premier-league",
          "sport": "football"
        },
        "seasons": [
          {
            "season_id": 3391,
            "year": "23/24"
          }
        ],
        "trophies_won": 10
      }
    ],
    "team_id": 17,
    "total_trophies": 45
  },
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.