# technology.agave.marketplace.search

> Published blocks and connectors, newest version per author and slug, most recently indexed first.

- Kind: query
- Authority: marketplace.agave.technology
- Lexicon: 1
- Published by [catalogue.agave.technology](https://lexicon.garden/identity/did:plc:jgjchylj237en76b3hi2xu4g), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.search)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.search/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:jgjchylj237en76b3hi2xu4g/technology.agave.marketplace.search/analytics)

## Query (`technology.agave.marketplace.search`)

Type: query · GET

### Parameters (query string)

- `author` (string · at-identifier)
- `cursor` (string)
- `kind` (string)
  - Constraints: knownValues: block | connector
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `q` (string): Words that must all appear, ignoring case, in the slug, title, description, capabilities or author handle.
  - Constraints: maxLength: 200

### Output (application/json)

- `blocks` (array, required)
  - `items` (ref)
    - Reference: `technology.agave.marketplace.defs#blockView`
- `cursor` (string)

### Errors

- `ActorNotFound`: The author's handle does not resolve.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Published blocks and connectors, newest version per author and slug, most recently indexed first.",
      "errors": [
        {
          "description": "The author's handle does not resolve.",
          "name": "ActorNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blocks": {
              "items": {
                "ref": "technology.agave.marketplace.defs#blockView",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "type": "string"
            }
          },
          "required": [
            "blocks"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "author": {
            "format": "at-identifier",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "kind": {
            "knownValues": [
              "block",
              "connector"
            ],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Words that must all appear, ignoring case, in the slug, title, description, capabilities or author handle.",
            "maxLength": 200,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "technology.agave.marketplace.search",
  "lexicon": 1
}
```
