# buzz.bookhive.getSyncProgress

> Get reading sync progress for a document. Returns the KOSync-compatible progress data.

- Kind: query
- Authority: bookhive.buzz
- Lexicon: 1
- Published by [bookhive.buzz](https://lexicon.garden/identity/did:plc:enu2j5xjlqsjaylv3du4myh4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getSyncProgress)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getSyncProgress/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.getSyncProgress/analytics)

## Query (`buzz.bookhive.getSyncProgress`)

Type: query · GET

### Parameters (query string)

- `contentHash` (string, required): Content hash identifying the document

### Output (application/json)

- `device` (string, required): Device name that last synced
- `device_id` (string, required): Device identifier that last synced
- `document` (string, required): Document identifier
- `percentage` (string, required): Reading progress as a decimal string (0-1, e.g. '0.42')
- `progress` (string, required): Reading progress position (KOSync format)
- `timestamp` (integer, required): Unix timestamp of last sync

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get reading sync progress for a document. Returns the KOSync-compatible progress data.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "device": {
              "description": "Device name that last synced",
              "type": "string"
            },
            "device_id": {
              "description": "Device identifier that last synced",
              "type": "string"
            },
            "document": {
              "description": "Document identifier",
              "type": "string"
            },
            "percentage": {
              "description": "Reading progress as a decimal string (0-1, e.g. '0.42')",
              "type": "string"
            },
            "progress": {
              "description": "Reading progress position (KOSync format)",
              "type": "string"
            },
            "timestamp": {
              "description": "Unix timestamp of last sync",
              "type": "integer"
            }
          },
          "required": [
            "document",
            "progress",
            "percentage",
            "device",
            "device_id",
            "timestamp"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "contentHash": {
            "description": "Content hash identifying the document",
            "type": "string"
          }
        },
        "required": [
          "contentHash"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "buzz.bookhive.getSyncProgress",
  "lexicon": 1
}
```
