---
title: "Get Sync Comparison"
method: GET
path: "/v1/analytics/buckets/{bucket_id}/sync-comparison"
tags: ["Analytics", "Analytics - Buckets"]
---

# Get Sync Comparison

`GET /v1/analytics/buckets/{bucket_id}/sync-comparison`

Compare performance across sync configurations.

Compares sync configurations by:
- Average duration and throughput
- Success rates
- Total files and bytes synced
- Provider performance

**Use Cases:**
- Compare sync providers (S3 vs GCS)
- Optimize sync configurations
- Identify best-performing syncs
- Benchmark sync strategies

**Example:**
```bash
curl -X GET "https://api.mixpeek.com/v1/analytics/buckets/bkt_abc123/sync-comparison?hours=168" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "X-Namespace: your-namespace"
```

## Path parameters

- `bucket_id` string, required

## Query parameters

- `hours` integer — Hours of history (default: 7 days)

## Response `200`

Successful Response

- SyncComparisonResponse — Sync configuration comparison response.
  - `bucket_id` string, required — Bucket identifier
  - `time_range` ApiAnalyticsBucketsModelsTimeRange, required — Time range for analytics queries.
    - `start` string, date-time, required — Start of time range
    - `end` string, date-time, required — End of time range
  - `configs` SyncConfigMetric[], required — Metrics per sync config
    - `sync_config_id` string, required — Sync config identifier
    - `provider_type` string, required — Provider type
    - `avg_duration_seconds` number, required — Average sync duration
    - `avg_throughput_mbps` number, required — Average throughput
    - `success_rate` number, required — Success rate (0-1)
    - `total_files_synced` integer, required — Total files synced
    - `total_bytes_synced` integer, required — Total bytes synced

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/mixpeek/apis/mixpeek-api.md) · [All operations](https://skmtc.net/mixpeek/apis/mixpeek-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mixpeek/mixpeek-api/revisions/c768d4d28e4c/schema)
