# com.livtet.giveaway.getReport

> The conversion report for one giveaway: entries, and how many of those entrants went on to shelve, read and review the edition. Aggregate counts only — the method never names an entrant; `listEntries` is the method that does, because entry records are public repo records.

- Kind: query
- Authority: giveaway.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.getReport)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.getReport/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.giveaway.getReport/analytics)

## Query (`com.livtet.giveaway.getReport`)

Type: query · GET

### Parameters (query string)

- `giveaway` (string · at-uri, required): AT-URI of the giveaway to report on.

### Output (application/json)

- `byCountry` (array, required)
  - `items` (object)
- `entries` (integer, required)
  - Constraints: minimum: 0
- `giveaway` (string · at-uri, required)
- `read` (integer, required): Entrants whose bookStatus for the edition is `read`.
  - Constraints: minimum: 0
- `reviewed` (integer, required): Entrants with a review of the edition.
  - Constraints: minimum: 0
- `shelved` (integer, required): Entrants with a shelf entry for the edition: a bookStatus, shelfItem or review row.
  - Constraints: minimum: 0

### Errors

- `NotFound`: No giveaway record exists at the given AT-URI.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "description": "No giveaway record exists at the given AT-URI.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "byCountry": {
              "items": {
                "properties": {
                  "count": {
                    "minimum": 0,
                    "type": "integer"
                  },
                  "country": {
                    "description": "Absent when the entrant declared no country.",
                    "maxLength": 2,
                    "minLength": 2,
                    "type": "string"
                  }
                },
                "required": [
                  "count"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "entries": {
              "minimum": 0,
              "type": "integer"
            },
            "giveaway": {
              "format": "at-uri",
              "type": "string"
            },
            "read": {
              "description": "Entrants whose bookStatus for the edition is `read`.",
              "minimum": 0,
              "type": "integer"
            },
            "reviewed": {
              "description": "Entrants with a review of the edition.",
              "minimum": 0,
              "type": "integer"
            },
            "shelved": {
              "description": "Entrants with a shelf entry for the edition: a bookStatus, shelfItem or review row.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "giveaway",
            "entries",
            "shelved",
            "read",
            "reviewed",
            "byCountry"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "giveaway": {
            "description": "AT-URI of the giveaway to report on.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "giveaway"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The conversion report for one giveaway: entries, and how many of those entrants went on to shelve, read and review the edition. Aggregate counts only — the method never names an entrant; `listEntries` is the method that does, because entry records are public repo records.",
  "id": "com.livtet.giveaway.getReport",
  "lexicon": 1
}
```
