> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cs2cap.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs: Installation and Setup

> Install and configure the CS2Cap Python and TypeScript SDKs.

Use the official SDKs when you want typed request helpers instead of building HTTP requests by hand. Both SDKs use `https://api.cs2c.app` as the default API host and authenticate with your CS2Cap API key.

<Note>
  You can generate an API key from the Account page after verifying your email address.
</Note>

## Python

The Python package is published as [`cs2cap`](https://pypi.org/project/cs2cap/) on PyPI.

```bash theme={"theme":"github-dark-default"}
pip install cs2cap
```

Set your API key in the environment:

```bash theme={"theme":"github-dark-default"}
export CS2C_API_KEY="sk_your_key_here"
```

Verify the install with a small catalog request:

```python theme={"theme":"github-dark-default"}
import os

import cs2cap

configuration = cs2cap.Configuration(access_token=os.environ["CS2C_API_KEY"])

with cs2cap.ApiClient(configuration) as client:
    api = cs2cap.ItemsApi(client)
    response = api.list_items(q="AK-47", rarity_name="Covert", limit=5)

    print(client.sanitize_for_serialization(response))
```

## TypeScript

The TypeScript package is published as [`cs2cap`](https://www.npmjs.com/package/cs2cap) on npm.

```bash theme={"theme":"github-dark-default"}
npm install cs2cap
```

Set your API key in the environment:

```bash theme={"theme":"github-dark-default"}
export CS2C_API_KEY="sk_your_key_here"
```

Verify the install with a small catalog request:

```typescript theme={"theme":"github-dark-default"}
import { Configuration, ItemsApi } from "cs2cap";

const accessToken = process.env.CS2C_API_KEY;

if (!accessToken) {
  throw new Error("Set CS2C_API_KEY before running this example.");
}

const api = new ItemsApi(new Configuration({ accessToken }));
const response = await api.listItems({ q: "AK-47", rarityName: "Covert", limit: 5 });

console.log(response);
```

## Repositories

The SDKs are published from [`CS2Cap/cs2cap-python`](https://github.com/CS2Cap/cs2cap-python) and [`CS2Cap/cs2cap-node`](https://github.com/CS2Cap/cs2cap-node).
