# RapidAPI · esportapi1 (fluis.lacasse)

Gateway provider `rapidapi-esportapi1` · call `https://fetchapi.co/api/gw/rapidapi-esportapi1/<path>` with header `x-api-key` (get a key at https://fetchapi.co/keys) · MCP: tools `search_endpoints`, `get_endpoint`, `call_endpoint` at https://fetchapi.co/api/mcp · listing: https://rapidapi.com/fluis.lacasse/api/esportapi1/pricing

13 working endpoints, each tested live through this gateway. Endpoints that returned no data in our latest test, write actions and endpoints that need the end user's own login are not listed.

## `rapidapi-esportapi1.getesportseventdetails` — getESportsEventDetails

`GET /api/esport/event/{id}` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 231 ms

One esports match by Sofascore event id: teams, series score by map, best-of, status, tournament and season. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 17383631 |

Fields: `event.id` Sofascore event id; `event.customId` id for the head-to-head call; `event.homeScore` score by period; `event.status.description` period / clock; `event.bestOf` best of N maps; `event.homeTeam.name` home team

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/event/17383631" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "event": {
  "id": 17383631,
  "slug": "99firepower-1utility-fortress",
  "time": {
   "currentPeriodStartTimestamp": 1792693562
  },
  "bestOf": 1,
  "season": {
   "id": 105795,
   "name": "Advanced Europe season 59 2026",
   "year": "2026",
   "editor": false
  },
  "status": {
   "code": 1001,
   "type": "inprogress",
   "description": "First game"
  },
  "changes": {
   "changes": [
    "status.code",
    "status.description",
    "status.type",
    "… 15 more"
   ],
   "changeTimestamp": 1792693564
  },
  "awayTeam": {
   "id": 1293690,
   "name": "99firepower 1utility",
   "slug": "99firepower-1utility",
   "type": 0,
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "country": {
    "name": "Lithuania",
    "slug": "lithuania",
    "alpha2": "LT",
    "alpha3": "LTU"
   },
   "fullName": "99firepower 1utility",
   "nameCode": "91U",
   "national": false,
   "subTeams": [],
   "userCount": 0,
   "teamColors": {
    "text": "#ffffff",
    "primary": "#374df5",
    "secondary": "#374df5"
   },
   "timeActive": []
  },
  "coverage": 90,
  "customId": "YiqjsPyrk",
  "homeTeam": {
   "id": 1165448,
   "name": "Fortress",
   "slug": "fortress",
   "type": 0,
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "country": {
    "name": "Denmark",
    "slug": "denmark",
    "alpha2": "DK",
    "alpha3": "DNK"
   },
   "fullName": "Fortress",
   "nameCode": "FOR",
   "national": false,
   "subTeams": [],
   "user
…
```

## `rapidapi-esportapi1.getesportseventgames` — getESportsEventGames

`GET /api/esport/event/{id}/games` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 416 ms

The maps (games) of one esports match by Sofascore event id, in order: winner, score, length and whether stats exist. A best-of-5 LoL series returned 5. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 17383631 |

Fields: `games[].id` game (map) id for the game statistics call; `games[].winnerCode` 1 home, 2 away; `games[].homeScore.display` home score in that map; `games[].length` length in seconds; `games[].status.type` finished or inprogress

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/event/17383631/games" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "games": [
  {
   "id": 592490,
   "status": {
    "code": 20,
    "type": "inprogress",
    "description": "Started"
   },
   "awayScore": {},
   "homeScore": {},
   "winnerCode": 0,
   "startTimestamp": 1792693562,
   "hasCompleteStatistics": false
  }
 ]
}
```

## `rapidapi-esportapi1.getesportseventh2hsummary` — getESportsEventH2HSummary

`GET /api/esport/event/{id}/duel` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 446 ms

The head-to-head record of one esports match's two teams: home wins, away wins, draws; teamDuel is null when they never met. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 17333003 |

Fields: `teamDuel.homeWins` wins of this game's home team in their meetings; `teamDuel.awayWins` wins of the away team; `teamDuel.draws` draws

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/event/17333003/duel" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "teamDuel": {
  "draws": 1,
  "awayWins": 6,
  "homeWins": 3
 },
 "managerDuel": null
}
```

## `rapidapi-esportapi1.getesportseventlineups` — getESportsEventLineups

`GET /api/esport/event/{id}/lineups` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 226 ms

Both teams' players for one esports match by Sofascore event id: name, real name, country. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 17383631 |

Fields: `home.players[].player.name` player handle; `home.players[].player.firstName` first name; `home.players[].player.country.alpha2` country; `confirmed` lineup confirmed

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/event/17383631/lineups" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "away": {
  "players": [
   {
    "player": {
     "id": 1446210,
     "name": "REL",
     "slug": "rel",
     "country": {
      "name": "Lithuania",
      "slug": "lithuania",
      "alpha2": "LT",
      "alpha3": "LTU"
     },
     "lastName": "Zavadskis",
     "firstName": "Joris",
     "shortName": "REL",
     "userCount": 2,
     "sofascoreId": "rsa-9wj",
     "marketValueCurrency": "EUR"
    },
    "teamId": 459703,
    "substitute": false
   },
   {
    "player": {
     "id": 2761898,
     "name": "XADE",
     "slug": "xade",
     "country": {
      "name": "Lithuania",
      "slug": "lithuania",
      "alpha2": "LT",
      "alpha3": "LTU"
     },
     "shortName": "XADE",
     "userCount": 0,
     "sofascoreId": "c8c-pc5",
     "marketValueCurrency": "EUR"
    },
    "teamId": 1149358,
    "substitute": false
   },
   {
    "player": {
     "id": 2588615,
     "name": "aparcik",
     "slug": "aparcik",
     "country": {
      "name": "Poland",
      "slug": "poland",
      "alpha2": "PL",
      "alpha3": "POL"
     },
     "shortName": "aparcik",
     "userCount": 0,
     "sofascoreId": "6i7-afq",
     "marketValueCurrency": "EUR"
    },
    "teamId": 501902,
    "substitute": false
   },
   "… 2 more"
  ],
  "playerColor": {
   "number": "222226",
   "outline": "808080",
   "primary": "000000",
   "fancyNumber": "222226"
  },
  "supportStaff": [],
  "goalkeeperColor": {
   "number": "222226",
   "outline": "808080",
   "primary": "000000",
   "fancyNumber": "2222
…
```

## `rapidapi-esportapi1.getesportseventsbycategoryanddate` — getESportsEventsByCategoryAndDate

`GET /api/esport/category/{id}/events/{day}/{month}/{year}` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 130 ms

Every match of one esports game (category id: LoL 1571, Dota 2 1570, Counter Strike 1572) on one day: teams, series score, status, tournament. 1 LoL match on 2026-10-22. 1 request.

| param | required | example / default |
|---|---|---|
| `day` | yes | 22 |
| `month` | yes | 10 |
| `year` | yes | 2026 |
| `id` | yes | 1571 |

Fields: `events[].id` Sofascore event id: pass it to the match, statistics, lineups and incidents calls; `events[].customId` the id the head-to-head call takes; `events[].homeTeam.name` home team; `events[].awayTeam.name` away team; `events[].homeScore.current` home score now (period1, period2... by period); `events[].status.type` notstarted, inprogress, finished, canceled; `events[].status.description` period or clock, e.g. 3rd quarter, Second game

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/category/1571/events/22/10/2026" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "events": [
  {
   "id": 17333003,
   "slug": "galions-solary",
   "time": {},
   "bestOf": 5,
   "season": {
    "id": 104059,
    "name": "Summer 2026",
    "year": "2026",
    "editor": false
   },
   "status": {
    "code": 100,
    "type": "finished",
    "description": "Ended"
   },
   "changes": {
    "changes": [
     "status.code",
     "status.description",
     "status.type",
     "… 4 more"
    ],
    "changeTimestamp": 1792687263
   },
   "awayTeam": {
    "id": 364815,
    "name": "Solary",
    "slug": "solary",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "France",
     "slug": "france",
     "alpha2": "FR",
     "alpha3": "FRA"
    },
    "nameCode": "SLY",
    "national": false,
    "subTeams": [],
    "userCount": 305,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "coverage": 91,
   "customId": "pWVcspKqi",
   "homeTeam": {
    "id": 1041765,
    "name": "Galions",
    "slug": "galions",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "France",
     "slug": "france",
     "alpha2": "FR",
     "alpha3": "FRA"
    },
    "nameCode": "GAL",
    "national": false,
    "subTeams": [],
    "userCount": 128,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "isEditor":
…
```

## `rapidapi-esportapi1.getesportsgamelineups` — getESportsGameLineups

`GET /api/esport/game/{id}/lineups` · ✓ working (tested 2026-11-02) · sampled 2026-10-22, 210 ms

The players of both teams in one map (game id) with their per-map stats where Sofascore has them. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 590812 |

Fields: `home.players[].player.name` player; `home.players[].statistics` per-map stats

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/game/590812/lineups" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "awayTeamPlayers": [
  {
   "role": "top",
   "kills": 1,
   "level": 16,
   "deaths": 3,
   "player": {
    "id": 1072292,
    "name": "Kryze",
    "slug": "kryze",
    "lastName": "Hellström",
    "position": "top",
    "firstName": "Felix",
    "shortName": "Kryze",
    "userCount": 0,
    "sofascoreId": "q42-q59"
   },
   "assists": 0,
   "character": {
    "id": 1551,
    "name": "Gnar",
    "slug": "gnar"
   },
   "goldEarned": 10694,
   "minionsKilled": 260
  },
  {
   "role": "mid",
   "kills": 1,
   "level": 16,
   "deaths": 4,
   "player": {
    "id": 1071929,
    "name": "Jool",
    "slug": "gone",
    "lastName": "Dong-soo",
    "position": "mid",
    "firstName": "Kang",
    "shortName": "Gone",
    "userCount": 0,
    "sofascoreId": "b7a-b8i"
   },
   "assists": 3,
   "character": {
    "id": 1770,
    "name": "Ryze",
    "slug": "ryze"
   },
   "goldEarned": 10689,
   "minionsKilled": 242
  },
  {
   "role": "sup",
   "kills": 1,
   "level": 12,
   "deaths": 1,
   "player": {
    "id": 1129444,
    "name": "Piero",
    "slug": "piero",
    "lastName": "Jeong-hoon",
    "position": "sup",
    "firstName": "Kim",
    "shortName": "BMXPiero",
    "userCount": 0,
    "sofascoreId": "q46-fcu"
   },
   "assists": 4,
   "character": {
    "id": 1856,
    "name": "Milio",
    "slug": "milio"
   },
   "goldEarned": 6946,
   "minionsKilled": 30
  },
  "… 2 more"
 ],
 "homeTeamPlayers": [
  {
   "role": "mid",
   "kills": 3,
   "level": 15,
   "deaths": 2,
   "player":
…
```

## `rapidapi-esportapi1.getesportsgamestatistics` — getESportsGameStatistics

`GET /api/esport/game/{id}/statistics` · ✓ working (tested 2026-10-30) · sampled 2026-10-22, 208 ms

Team statistics of one map (game id from the games call): for LoL kills, gold, towers, inhibitors, dragons by type, barons; other games their own counters. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 590812 |

Fields: `homeStatistics.kills` LoL: kills; `homeStatistics.goldEarned` LoL: gold; `homeStatistics.towerKills` LoL: towers; `homeStatistics.dragonKills` LoL: dragons; `awayStatistics` the same for the away team

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/game/590812/statistics" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "awayStatistics": {
  "bans": [],
  "color": 1,
  "kills": 6,
  "goldEarned": 49638,
  "towerKills": 4,
  "dragonKills": 0,
  "nashorKills": 0,
  "inhibitorKills": 0,
  "cloudDrakeKills": 0,
  "elderDrakeKills": 0,
  "oceanDrakeKills": 0,
  "hextechDrakeKills": 0,
  "chemtechDrakeKills": 0,
  "infernalDrakeKills": 0,
  "mountainDrakeKills": 0
 },
 "homeStatistics": {
  "bans": [],
  "color": 0,
  "kills": 15,
  "goldEarned": 57180,
  "towerKills": 9,
  "dragonKills": 4,
  "nashorKills": 1,
  "inhibitorKills": 1,
  "cloudDrakeKills": 0,
  "elderDrakeKills": 0,
  "oceanDrakeKills": 2,
  "hextechDrakeKills": 0,
  "chemtechDrakeKills": 1,
  "infernalDrakeKills": 0,
  "mountainDrakeKills": 1
 }
}
```

## `rapidapi-esportapi1.getesportsh2hevents` — getESportsH2HEvents

`GET /api/esport/event/{customId}/h2h` · ✓ working (tested 2026-10-31) · sampled 2026-10-22, 224 ms

Every meeting between the two teams of one esports match (by customId), newest first: teams, series score, status, tournament. 1 request.

| param | required | example / default |
|---|---|---|
| `customId` | yes | YiqjsPyrk |

Fields: `events[].id` Sofascore event id of a meeting; `events[].startTimestamp` when; `events[].homeTeam.name` home team in that meeting; `events[].homeScore.current` home score; `events[].status.type` finished or notstarted (upcoming meeting)

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/event/YiqjsPyrk/h2h" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "events": [
  {
   "id": 17383631,
   "slug": "99firepower-1utility-fortress",
   "time": {
    "currentPeriodStartTimestamp": 1792693562
   },
   "bestOf": 1,
   "season": {
    "id": 105795,
    "name": "Advanced Europe season 59 2026",
    "year": "2026",
    "editor": false
   },
   "status": {
    "code": 1001,
    "type": "inprogress",
    "description": "First game"
   },
   "changes": {
    "changes": [
     "status.code",
     "status.description",
     "status.type",
     "… 15 more"
    ],
    "changeTimestamp": 1792693564
   },
   "awayTeam": {
    "id": 1293690,
    "name": "99firepower 1utility",
    "slug": "99firepower-1utility",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "Lithuania",
     "slug": "lithuania",
     "alpha2": "LT",
     "alpha3": "LTU"
    },
    "nameCode": "91U",
    "national": false,
    "subTeams": [],
    "userCount": 0,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "coverage": 90,
   "customId": "YiqjsPyrk",
   "homeTeam": {
    "id": 1165448,
    "name": "Fortress",
    "slug": "fortress",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "Denmark",
     "slug": "denmark",
     "alpha2": "DK",
     "alpha3": "DNK"
    },
    "nameCode": "FOR",
    "national": false,
    "subTeams": [],
    "userCount": 
…
```

## `rapidapi-esportapi1.getesportsteamdetails` — getESportsTeamDetails

`GET /api/esport/team/{id}` · ✓ working (tested 2026-10-31) · sampled 2026-10-22, 277 ms

One esports team by Sofascore team id: name, code, country, colours. 1 request.

| param | required | example / default |
|---|---|---|
| `id` | yes | 1165448 |

Fields: `team.name` team; `team.nameCode` short code; `team.country.name` country

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/team/1165448" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "team": {
  "id": 1165448,
  "name": "Fortress",
  "slug": "fortress",
  "type": 0,
  "sport": {
   "id": 72,
   "name": "E-sports",
   "slug": "esports"
  },
  "country": {
   "name": "Denmark",
   "slug": "denmark",
   "alpha2": "DK",
   "alpha3": "DNK"
  },
  "category": {
   "id": 1572,
   "flag": "counter-strike",
   "name": "Counter Strike",
   "slug": "csgo",
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "country": {},
   "priority": 0,
   "fieldTranslations": {
    "nameTranslation": {
     "ar": "كاونتر سترايك",
     "bn": "কাউন্টার স্ট্রাইক",
     "hi": "काउंटर स्ट्राइक",
     "ru": "Counter Strike"
    },
    "shortNameTranslation": {}
   }
  },
  "fullName": "Fortress",
  "nameCode": "FOR",
  "national": false,
  "userCount": 1,
  "teamColors": {
   "text": "#ffffff",
   "primary": "#374df5",
   "secondary": "#374df5"
  },
  "timeActive": []
 },
 "pregameForm": null,
 "editorEntity": false
}
```

## `rapidapi-esportapi1.getesportstournamentcategories` — getESportsTournamentCategories

`GET /api/esport/tournament/categories` · ✓ working (tested 2026-10-31) · sampled 2026-10-22, 206 ms

The esports games Sofascore covers, as categories with ids: LoL (1571), Dota 2 (1570) and Counter Strike (1572) on 2026-10-22; nothing else (no Valorant). 1 request.

Fields: `categories[].id` category id (LoL 1571, Dota 2 1570, Counter Strike 1572); `categories[].slug` lol, dota2, csgo; `categories[].name` game name

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/tournament/categories" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "categories": [
  {
   "id": 1571,
   "flag": "lol",
   "name": "LoL",
   "slug": "lol",
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "priority": 0,
   "fieldTranslations": {
    "nameTranslation": {
     "ar": "ليج أوف ليجيندز",
     "bn": "লিগ অফ লেজেন্ডস",
     "hi": "लॉल",
     "ru": "LoL"
    },
    "shortNameTranslation": {}
   }
  },
  {
   "id": 1570,
   "flag": "dota-2",
   "name": "Dota 2",
   "slug": "dota2",
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "priority": 0,
   "fieldTranslations": {
    "nameTranslation": {
     "ar": "دوتا 2",
     "bn": "ডোটা 2",
     "hi": "डोटा 2",
     "ru": "Dota 2"
    },
    "shortNameTranslation": {}
   }
  },
  {
   "id": 1572,
   "flag": "counter-strike",
   "name": "Counter Strike",
   "slug": "csgo",
   "sport": {
    "id": 72,
    "name": "E-sports",
    "slug": "esports"
   },
   "priority": 0,
   "fieldTranslations": {
    "nameTranslation": {
     "ar": "كاونتر سترايك",
     "bn": "কাউন্টার স্ট্রাইক",
     "hi": "काउंटर स्ट्राइक",
     "ru": "Counter Strike"
    },
    "shortNameTranslation": {}
   }
  }
 ]
}
```

## `rapidapi-esportapi1.getliveesportsmatches` — getLiveESportsMatches

`GET /api/esport/matches/live` · ✓ working (tested 2026-10-31) · sampled 2026-10-22, 49 ms

Every esports match (Counter-Strike, LoL, Dota 2) being played right now, one item per match with teams, map score, best-of, status and tournament. 18 live in our call (16 CS, 2 Dota 2). 1 request.

Fields: `events[].id` Sofascore event id: pass it to the match, statistics, lineups and incidents calls; `events[].customId` the id the head-to-head call takes; `events[].homeTeam.name` home team; `events[].awayTeam.name` away team; `events[].homeScore.current` home score now (period1, period2... by period); `events[].status.type` notstarted, inprogress, finished, canceled; `events[].status.description` period or clock, e.g. 3rd quarter, Second game; `events[].startTimestamp` kick-off, Unix seconds; `events[].tournament.uniqueTournament.name` league / competition; `events[].tournament.category.sport.slug` sport; `events[].bestOf` best of N maps

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/matches/live" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "events": [
  {
   "id": 17383631,
   "slug": "99firepower-1utility-fortress",
   "time": {
    "currentPeriodStartTimestamp": 1792693562
   },
   "bestOf": 1,
   "season": {
    "id": 105795,
    "name": "Advanced Europe season 59 2026",
    "year": "2026",
    "editor": false
   },
   "status": {
    "code": 1001,
    "type": "inprogress",
    "description": "First game"
   },
   "changes": {
    "changes": [
     "status.code",
     "status.description",
     "status.type",
     "… 15 more"
    ],
    "changeTimestamp": 1792693564
   },
   "awayTeam": {
    "id": 1293690,
    "name": "99firepower 1utility",
    "slug": "99firepower-1utility",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "Lithuania",
     "slug": "lithuania",
     "alpha2": "LT",
     "alpha3": "LTU"
    },
    "nameCode": "91U",
    "national": false,
    "subTeams": [],
    "userCount": 0,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "coverage": 90,
   "customId": "YiqjsPyrk",
   "homeTeam": {
    "id": 1165448,
    "name": "Fortress",
    "slug": "fortress",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "Denmark",
     "slug": "denmark",
     "alpha2": "DK",
     "alpha3": "DNK"
    },
    "nameCode": "FOR",
    "national": false,
    "subTeams": [],
    "userCount": 
…
```

## `rapidapi-esportapi1.getpreviousesportsmatchesforateam` — getPreviousESportsMatchesForATeam

`GET /api/esport/team/{id}/matches/previous/{page}` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 204 ms

One esports team's past matches, newest first, a page at a time (page 0 = latest): teams, series score, tournament. 1 request a page.

| param | required | example / default |
|---|---|---|
| `id` | yes | 1165448 |
| `page` | yes | 0 |

Fields: `events[].id` Sofascore event id: pass it to the match, statistics, lineups and incidents calls; `events[].customId` the id the head-to-head call takes; `events[].homeTeam.name` home team; `events[].awayTeam.name` away team; `events[].homeScore.current` home score now (period1, period2... by period); `events[].status.type` notstarted, inprogress, finished, canceled; `hasNextPage` another page exists

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/team/1165448/matches/previous/0" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "events": [
  {
   "id": 16746126,
   "slug": "fortress-enrage",
   "time": {},
   "bestOf": 1,
   "season": {
    "id": 98294,
    "name": "Advanced Europe season 58 2026",
    "year": "2026",
    "editor": false
   },
   "status": {
    "code": 100,
    "type": "finished",
    "description": "Ended"
   },
   "changes": {
    "changes": [
     "status.code",
     "status.description",
     "status.type",
     "… 5 more"
    ],
    "changeTimestamp": 1786130651
   },
   "awayTeam": {
    "id": 1165448,
    "name": "Fortress",
    "slug": "fortress",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "Denmark",
     "slug": "denmark",
     "alpha2": "DK",
     "alpha3": "DNK"
    },
    "nameCode": "FOR",
    "national": false,
    "subTeams": [],
    "userCount": 1,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "coverage": 90,
   "customId": "XlWcsYiqj",
   "homeTeam": {
    "id": 365597,
    "name": "ENRAGE",
    "slug": "enrage",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {},
    "nameCode": "ENR",
    "national": false,
    "subTeams": [],
    "userCount": 1,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   },
   "isEditor": false,
   "awayScore": {
    "current": 1,
    "display": 1,
    "period1
…
```

## `rapidapi-esportapi1.searchesportsentities` — searchESportsEntities

`GET /api/esport/search/{term}` · ✓ working (tested 2026-11-01) · sampled 2026-10-22, 255 ms

Search esports teams, players and tournaments by name: one result per entity with its type, id and a relevance score. 1 request.

| param | required | example / default |
|---|---|---|
| `page` | no |  |
| `term` | yes | fnatic |

Fields: `results[].entity.id` the team / player id; `results[].entity.name` name; `results[].type` team, player or uniqueTournament; `results[].score` relevance

```bash
curl "https://fetchapi.co/api/gw/rapidapi-esportapi1/api/esport/search/fnatic" \
  -H "x-api-key: $FETCHAPI_KEY"
```

Real answer (trimmed):

```json
{
 "results": [
  {
   "type": "team",
   "score": 5911.4126,
   "entity": {
    "id": 364034,
    "name": "Fnatic",
    "slug": "fnatic",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "United Kingdom",
     "slug": "united-kingdom",
     "alpha2": "GB"
    },
    "nameCode": "FNA",
    "national": false,
    "userCount": 1804,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   }
  },
  {
   "type": "team",
   "score": 3444.95,
   "entity": {
    "id": 364400,
    "name": "fnatic",
    "slug": "fnatic",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "gender": "M",
    "country": {
     "name": "United Kingdom",
     "slug": "united-kingdom",
     "alpha2": "GB"
    },
    "nameCode": "FNC",
    "national": false,
    "userCount": 612,
    "teamColors": {
     "text": "#ffffff",
     "primary": "#374df5",
     "secondary": "#374df5"
    }
   }
  },
  {
   "type": "team",
   "score": 933.381,
   "entity": {
    "id": 364726,
    "name": "Fnatic",
    "slug": "fnatic",
    "type": 0,
    "sport": {
     "id": 72,
     "name": "E-sports",
     "slug": "esports"
    },
    "country": {
     "name": "United Kingdom",
     "slug": "united-kingdom",
     "alpha2": "GB"
    },
    "nameCode": "FNA",
    "national": false,
    "userCount": 44,
    "teamColors": {
     "text": "#ffffff",
    
…
```
