# ink.resenha.shop.search

> Searches the Shop's works by title, author and subject: Standard Ebooks' editions first among equal matches, then the most downloaded. Nothing typed is stored. Public, no sign-in; answers may be cached for five minutes; limited per address.

- Kind: query
- Authority: shop.resenha.ink
- Lexicon: 1
- Published by [resenha.ink](https://lexicon.garden/identity/did:plc:v7itjf4h3sb5zuegiiskctqb), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.search)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.search/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:v7itjf4h3sb5zuegiiskctqb/ink.resenha.shop.search/analytics)

## Query (`ink.resenha.shop.search`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
  - Constraints: maxLength: 32
- `lang` (array): The reader's languages (BCP 47 codes; only the language part is compared). Without it, every language.
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 16
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 25, default: 25
- `q` (string, required)
  - Constraints: maxLength: 200

### Output (application/json)

- `cursor` (string)
  - Constraints: maxLength: 32
- `paused` (boolean, required): True while the Shop is paused on the server: Get and Notify me are shown disabled. Browsing keeps working.
- `works` (array, required)
  - `items` (ref)
    - Reference: `ink.resenha.shop.getBrowse#workSummary`

### Errors

- `RateLimited`: Too many calls from this address in the last minute.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Searches the Shop's works by title, author and subject: Standard Ebooks' editions first among equal matches, then the most downloaded. Nothing typed is stored. Public, no sign-in; answers may be cached for five minutes; limited per address.",
      "errors": [
        {
          "description": "Too many calls from this address in the last minute.",
          "name": "RateLimited"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 32,
              "type": "string"
            },
            "paused": {
              "description": "True while the Shop is paused on the server: Get and Notify me are shown disabled. Browsing keeps working.",
              "type": "boolean"
            },
            "works": {
              "items": {
                "ref": "ink.resenha.shop.getBrowse#workSummary",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "works",
            "paused"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 32,
            "type": "string"
          },
          "lang": {
            "description": "The reader's languages (BCP 47 codes; only the language part is compared). Without it, every language.",
            "items": {
              "maxLength": 16,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "limit": {
            "default": 25,
            "maximum": 25,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "maxLength": 200,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "ink.resenha.shop.search",
  "lexicon": 1
}
```
