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

# Usage Examples

> Usage examples for the TopYappers API

## Curl

```bash theme={null}
curl -X GET "https://api.topyappers.com/api/v1/creators?mainCategory=fashion&followersMin=10000" \\
  -H "x-ty-api-key: YOUR_API_KEY" \\
  -H "Content-Type: application/json"
```

## Javascript

```typescript theme={null}
const fetchCreators = async () => {
  const response = await fetch(
    'https://api.topyappers.com/api/v1/creators?mainCategory=fashion&followersMin=10000', 
    {
      headers: {
        'x-ty-api-key': 'YOUR_API_KEY',
        'Content-Type': 'application/json'
      }
    }
  );
  
  const data = await response.json();
  console.log(data);
};

fetchCreators();
```

## Python

```python theme={null}
import requests

url = "https://api.topyappers.com/api/v1/creators"
params = {
    "mainCategory": "fashion",
    "followersMin": 10000
}
headers = {
    "x-ty-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.get(url, params=params, headers=headers)
data = response.json()
print(data)
```
