# FACEIT

> Find FACEIT games, players and teams, and read match history and statistics.

App · 12 actions. Web page: https://docs.lodol.com/docs/integrations/faceit

## Actions

### Find a player

Find a player by their FACEIT nickname.

**Inputs**

- Nickname (`nickname`, text, required): The player’s FACEIT nickname.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "activated_at": "example",
    "avatar": "example",
    "country": "example",
    "cover_featured_image": "example",
    "cover_image": "example",
    "faceit_url": "example",
    "friends_ids": [
      "example"
    ],
    "games": {},
    "infractions": {},
    "membership_type": "example",
    "memberships": [
      "example"
    ],
    "new_steam_id": "example",
    "nickname": "example",
    "platforms": {},
    "player_id": "example",
    "settings": {
      "language": "example"
    },
    "steam_id_64": "example",
    "steam_nickname": "example",
    "verified": true
  }
}
```

### Get a game

Get details of a FACEIT game.

**Inputs**

- Game (`game`, text, required): The game whose data to use.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "assets": {
      "cover": "example",
      "featured_img_l": "example",
      "featured_img_m": "example",
      "featured_img_s": "example",
      "flag_img_icon": "example",
      "flag_img_l": "example",
      "flag_img_m": "example",
      "flag_img_s": "example",
      "landing_page": "example"
    },
    "game_id": "example",
    "long_label": "example",
    "order": 1,
    "parent_game_id": "example",
    "platforms": [
      "example"
    ],
    "regions": [
      "example"
    ],
    "short_label": "example"
  }
}
```

### Get a match

Get a match’s status, schedule and results.

**Inputs**

- Match ID (`match_id`, text, required): The match ID returned in match history.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "best_of": 1,
    "broadcast_start_time": 1,
    "broadcast_start_time_label": "example",
    "calculate_elo": true,
    "chat_room_id": "example",
    "competition_id": "example",
    "competition_name": "example",
    "competition_type": "example",
    "configured_at": 1,
    "demo_url": [
      "example"
    ],
    "detailed_results": [
      {
        "asc_score": true,
        "factions": {},
        "winner": "example"
      }
    ],
    "faceit_url": "example",
    "finished_at": 1,
    "game": "example",
    "group": 1,
    "instances": [
      {
        "demos": [
          {}
        ],
        "id": "example",
        "round": 1
      }
    ],
    "match_id": "example",
    "organizer_id": "example",
    "region": "example",
    "results": {
      "score": {},
      "winner": "example"
    },
    "round": 1,
    "scheduled_at": 1,
    "started_at": 1,
    "status": "example",
    "teams": {},
    "version": 1,
    "voting": {}
  }
}
```

### Get a player

Get a player’s profile, country and game information.

**Inputs**

- Player ID (`player_id`, text, required): The player ID returned by Find a player.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "activated_at": "example",
    "avatar": "example",
    "country": "example",
    "cover_featured_image": "example",
    "cover_image": "example",
    "faceit_url": "example",
    "friends_ids": [
      "example"
    ],
    "games": {},
    "infractions": {},
    "membership_type": "example",
    "memberships": [
      "example"
    ],
    "new_steam_id": "example",
    "nickname": "example",
    "platforms": {},
    "player_id": "example",
    "settings": {
      "language": "example"
    },
    "steam_id_64": "example",
    "steam_nickname": "example",
    "verified": true
  }
}
```

### Get a team

Get a team’s name and members.

**Inputs**

- Faceit team ID (`faceit_team_id`, text, required): The team ID returned by Search teams.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "avatar": "example",
    "chat_room_id": "example",
    "cover_image": "example",
    "description": "example",
    "facebook": "example",
    "faceit_url": "example",
    "game": "example",
    "leader": "example",
    "members": [
      {
        "avatar": "example",
        "country": "example",
        "faceit_url": "example",
        "membership_type": "example",
        "memberships": [
          {}
        ],
        "nickname": "example",
        "skill_level": 1,
        "user_id": "example"
      }
    ],
    "name": "example",
    "nickname": "example",
    "team_id": "example",
    "team_type": "example",
    "twitter": "example",
    "website": "example",
    "youtube": "example"
  }
}
```

### Get match statistics

Get round and player statistics for a finished match.

**Inputs**

- Match ID (`match_id`, text, required): The match ID returned in match history.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "rounds": [
      {
        "best_of": {},
        "competition_id": {},
        "game_id": {},
        "game_mode": {},
        "match_id": {},
        "match_round": {},
        "played": {},
        "round_stats": {},
        "teams": [
          {}
        ]
      }
    ]
  }
}
```

### Get player statistics

Get a player’s lifetime statistics for a game.

**Inputs**

- Player ID (`player_id`, text, required): The player ID returned by Find a player.
- Game (`game`, text, required): The game whose data to use.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "game_id": "example",
    "lifetime": {},
    "player_id": "example",
    "segments": [
      {}
    ]
  }
}
```

### List games

List games available on FACEIT.

**Inputs**

- Offset (`offset`, number): The starting item position. From 0 to 100.
- Limit (`limit`, number): The number of items to return. From 1 to 100.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "end": 1,
    "items": [
      {
        "assets": {
          "cover": "example",
          "featured_img_l": "example",
          "featured_img_m": "example",
          "featured_img_s": "example",
          "flag_img_icon": "example",
          "flag_img_l": "example",
          "flag_img_m": "example",
          "flag_img_s": "example",
          "landing_page": "example"
        },
        "game_id": "example",
        "long_label": "example",
        "order": 1,
        "parent_game_id": "example",
        "platforms": [
          {}
        ],
        "regions": [
          {}
        ],
        "short_label": "example"
      }
    ],
    "start": 1
  }
}
```

### List player matches

List a player’s match history for a game.

**Inputs**

- Player ID (`player_id`, text, required): The player ID returned by Find a player.
- Game (`game`, text, required): The game whose matches to list.
- Start time (`start_time`, date and time): Earliest match time.
- End time (`end_time`, date and time): Latest match time.
- Offset (`offset`, number): The starting item position. From 0 to 1000.
- Limit (`limit`, number): The number of items to return. From 1 to 100.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "end": 1,
    "items": [
      {
        "competition_id": "example",
        "competition_name": "example",
        "competition_type": "example",
        "faceit_url": "example",
        "finished_at": 1,
        "game_id": "example",
        "game_mode": "example",
        "match_id": "example",
        "match_type": "example",
        "max_players": 1,
        "organizer_id": "example",
        "playing_players": [
          {}
        ],
        "region": "example",
        "results": {
          "score": {},
          "winner": "example"
        },
        "started_at": 1,
        "status": "example",
        "teams": {},
        "teams_size": 1
      }
    ],
    "start": 1,
    "to": 1
  }
}
```

### List player teams

List the teams a particular FACEIT player belongs to.

**Inputs**

- Player ID (`player_id`, text, required): The player ID returned by Find a player.
- Offset (`offset`, number): The starting item position. From 0 to 100.
- Limit (`limit`, number): The number of items to return. From 1 to 100.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "end": 1,
    "items": [
      {
        "avatar": "example",
        "chat_room_id": "example",
        "cover_image": "example",
        "description": "example",
        "facebook": "example",
        "faceit_url": "example",
        "game": "example",
        "leader": "example",
        "members": [
          {}
        ],
        "name": "example",
        "nickname": "example",
        "team_id": "example",
        "team_type": "example",
        "twitter": "example",
        "website": "example",
        "youtube": "example"
      }
    ],
    "start": 1
  }
}
```

### Search players

Find FACEIT players whose nickname matches your search.

**Inputs**

- Nickname (`nickname`, text, required): Search text for player nicknames.
- Game (`game`, text): The game whose data to use.
- Offset (`offset`, number): The starting item position. From 0 to 100.
- Limit (`limit`, number): The number of items to return. From 1 to 100.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "end": 1,
    "items": [
      {
        "avatar": "example",
        "country": "example",
        "games": [
          {}
        ],
        "nickname": "example",
        "player_id": "example",
        "status": "example",
        "verified": true
      }
    ],
    "start": 1
  }
}
```

### Search teams

Find FACEIT teams by name.

**Inputs**

- Nickname (`nickname`, text, required): Search text for team names.
- Offset (`offset`, number): The starting item position. From 0 to 100.
- Limit (`limit`, number): The number of items to return. From 1 to 100.

**Outputs**

- `data` (object): The response from FACEIT.

**Example output**

```json
{
  "data": {
    "end": 1,
    "items": [
      {
        "avatar": "example",
        "chat_room_id": "example",
        "faceit_url": "example",
        "game": "example",
        "name": "example",
        "team_id": "example",
        "verified": true
      }
    ],
    "start": 1
  }
}
```
