# PUBG

> Find PUBG players, read season and mastery statistics, and look up recent matches.

App · 10 actions. Web page: https://docs.lodol.com/docs/integrations/pubg

## Actions

### Find PUBG players

Look up PUBG accounts by their in-game names.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player names (`player_names`, list, required): Enter up to ten PUBG nicknames.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "name": "example",
          "shardId": "example"
        },
        "id": "example",
        "relationships": {
          "matches": {
            "data": [
              {
                "id": "example",
                "type": "example"
              }
            ]
          }
        },
        "type": "example"
      }
    ]
  }
}
```

### Get a PUBG match

Get a match and its participants, rosters and telemetry link.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Match ID (`match_id`, text, required): A recent match ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    },
    "included": [
      {
        "attributes": {},
        "id": "example",
        "relationships": {},
        "type": "example"
      }
    ]
  }
}
```

### Get a PUBG player

Read an account’s profile and matches from the past 14 days.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "name": "example",
        "shardId": "example"
      },
      "id": "example",
      "relationships": {
        "matches": {
          "data": [
            {
              "id": "example",
              "type": "example"
            }
          ]
        }
      },
      "type": "example"
    }
  }
}
```

### Get lifetime statistics

Read a player’s lifetime statistics by game mode.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get ranked statistics

Read a player’s ranked game mode statistics for a season.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.
- Season (`season`, text, required): The season ID returned by List seasons.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get season statistics

Read a player’s statistics by game mode for a season.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.
- Season (`season`, text, required): The season ID returned by List seasons.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get survival mastery

Read a player’s survival level and statistics.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### Get weapon mastery

Read a player’s XP and statistics by weapon.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Player account (`player_account`, text, required): The player account ID returned by Find players.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {},
      "id": "example",
      "relationships": {},
      "type": "example"
    }
  }
}
```

### List PUBG seasons

List available seasons for a platform.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "isCurrentSeason": true,
          "isOffseason": true
        },
        "id": "example",
        "type": "example"
      }
    ]
  }
}
```

### List sample matches

Get PUBG’s sample of matches for a platform and time.

**Inputs**

- Platform (`platform`, text, required): The platform the player or match belongs to. One of: `steam`, `kakao`, `xbox`, `psn`, `console`.
- Start time (`start_time`, date and time): The starting time for the match sample.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "id": "example",
      "relationships": {
        "matches": {
          "data": [
            {
              "id": "example",
              "type": "example"
            }
          ]
        }
      },
      "type": "example"
    }
  }
}
```
