# at.happyproto.registry.searchProjects

> Find plugins. Retired projects are left out unless includeRetired is set.

- Kind: query
- Authority: registry.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.searchProjects)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.searchProjects/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.searchProjects/analytics)

## Query (`at.happyproto.registry.searchProjects`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `includeRetired` (boolean)
  - Constraints: default: false
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `pluginType` (string): Only projects of this type.
  - Constraints: knownValues: auth | library | interpreter
- `q` (string): Text to match against the project's name, display name and keywords. Omit to list every project.
  - Constraints: maxLength: 256

### Output (application/json)

- `cursor` (string): Absent on the last page.
- `projects` (array, required)
  - `items` (ref)
    - Reference: `at.happyproto.registry.defs#projectView`

### Errors

- `NotConfigured`: The registry has no identity configured, so it cannot read its own state. An operator problem, not a caller's.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Find plugins. Retired projects are left out unless includeRetired is set.",
      "errors": [
        {
          "description": "The registry has no identity configured, so it cannot read its own state. An operator problem, not a caller's.",
          "name": "NotConfigured"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "projects": {
              "items": {
                "ref": "at.happyproto.registry.defs#projectView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "projects"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "includeRetired": {
            "default": false,
            "type": "boolean"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "pluginType": {
            "description": "Only projects of this type.",
            "knownValues": [
              "auth",
              "library",
              "interpreter"
            ],
            "type": "string"
          },
          "q": {
            "description": "Text to match against the project's name, display name and keywords. Omit to list every project.",
            "maxLength": 256,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.searchProjects",
  "lexicon": 1
}
```
