# CSGOClient

## CSGOClient

***

```python
class TrackerGG.CSGO(api_key)
```

Handles API calls related to CS:GO.

### Parameters

* `api_key` ( `str` ) - TrackerGG API key

### Methods

***

```python
await get_profile(identifier)
```

Returns career stats for an CSGO player.

#### Raises

* `AssertionError` - If the response code is not 200

#### Return Type

&#x20; `CSGOProfile`

***

```python
await get_map_segment(identifier)
```

Returns the stats of the map for a CSGO player.

#### Raises

* `AssertionError` - If the response code is not 200

#### Return Type

&#x20; List\[ `CSGOMapSegment` ]

***

```python
await get_weapon_segment(identifier)
```

Returns the stats of the weapon for a CSGO player.

#### Raises

* `AssertionError` - If the response code is not 200

#### Return Type

&#x20; List\[ `CSGOWeaponSegment` ]

***

```python
await search_profile(query)
```

Returns search data for a CSGO player using a unique identifier.

#### Raises

* `AssertionError` - If the response code is not 200

#### Return Type

&#x20; Union\[ None, List\[ `CSGOQueryData` ] ]

####
