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

# Download exported file

` GET /downloads `

Download exported file

## Servers

- ` https://shopsniffer.com/api `

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` BearerAuth `: ` http `

  - HTTP scheme: ` bearer `

  - Clerk JWT token

### Alternative 2

- ` ApiKeyAuth `: ` apiKey `

  - Credential: ` X-API-Key ` in ` header `

  - API key created via POST /api/api-keys

## Parameters

### ` key ` (query, required)

Filename to download

- ` value `: type ` string `

### ` jobId ` (query, required)

Job ID

- ` value `: type ` string `

## Responses

### ` 200 ` — File contents

### ` 400 ` — Missing key or jobId parameter

### ` 404 ` — Job or file not found

## Request examples

### cURL

```curl
curl -X GET 'https://shopsniffer.com/api/downloads?key=string&jobId=string' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('https://shopsniffer.com/api/downloads?key=string&jobId=string', {
  method: 'GET',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN"
  }
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.get('https://shopsniffer.com/api/downloads?key=string&jobId=string', headers=headers)
print(response.json())
```