# dev.knotless.searchOwners

> Accounts owning public repositories an appview has indexed, whose handle holds the query, ignoring case: those it starts with first, then by their newest repository. Gists are not counted, and an account owning only gists is not found. No authentication; responses are not personalized.

- Kind: query
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.searchOwners)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.searchOwners/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.searchOwners/analytics)

## Query (`dev.knotless.searchOwners`)

Type: query · GET

### Parameters (query string)

- `limit` (integer)
  - Constraints: minimum: 1, maximum: 50, default: 10
- `q` (string, required): Text the handle holds.
  - Constraints: maxLength: 100

### Output (application/json)

- `owners` (array, required)
  - `items` (ref)
    - Reference: `#ownerView`

## #ownerView (`dev.knotless.searchOwners#ownerView`)

Type: object

An account, with how many public repositories it owns.

### Properties

- `owner` (ref, required)
  - Reference: `dev.knotless.defs#actorView`
- `repoCount` (integer, required): How many public repositories the account owns, as the appview has indexed them.
  - Constraints: minimum: 1

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Accounts owning public repositories an appview has indexed, whose handle holds the query, ignoring case: those it starts with first, then by their newest repository. Gists are not counted, and an account owning only gists is not found. No authentication; responses are not personalized.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "owners": {
              "items": {
                "ref": "#ownerView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "owners"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 10,
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Text the handle holds.",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "ownerView": {
      "description": "An account, with how many public repositories it owns.",
      "properties": {
        "owner": {
          "ref": "dev.knotless.defs#actorView",
          "type": "ref"
        },
        "repoCount": {
          "description": "How many public repositories the account owns, as the appview has indexed them.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "owner",
        "repoCount"
      ],
      "type": "object"
    }
  },
  "description": "Accounts owning public repositories an appview has indexed, found by handle.",
  "id": "dev.knotless.searchOwners",
  "lexicon": 1
}
```
