# place.hud.searchActors

> Accounts anywhere on atproto matching what is typed so far of a handle or name, best first, as the typeahead service HUD asks finds them: none for under two letters, or when that service cannot say. For the sign-in forms of the workspace's page and HUD's apps. No auth required.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.searchActors)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.searchActors/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:3tzbz4pml36u4mkresb6pdhv/place.hud.searchActors/analytics)

## Query (`place.hud.searchActors`)

Type: query · GET

### Parameters (query string)

- `limit` (integer)
  - Constraints: minimum: 1, maximum: 10, default: 6
- `q` (string, required): What is typed, with or without a leading @.
  - Constraints: maxLength: 256

### Output (application/json)

- `actors` (array, required)
  - `items` (ref)
    - Reference: `#actor`

## #actor (`place.hud.searchActors#actor`)

Type: object

An account the typeahead service matched, as it says: its handle is not verified.

### Properties

- `avatar` (string · uri)
- `did` (string · did, required)
- `displayName` (string)
  - Constraints: maxLength: 640
- `handle` (string, required): Their handle, as the typeahead service has it: unverified, for the sign-in field alone.
  - Constraints: maxLength: 253

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "actor": {
      "description": "An account the typeahead service matched, as it says: its handle is not verified.",
      "properties": {
        "avatar": {
          "format": "uri",
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "displayName": {
          "maxLength": 640,
          "type": "string"
        },
        "handle": {
          "description": "Their handle, as the typeahead service has it: unverified, for the sign-in field alone.",
          "maxLength": 253,
          "type": "string"
        }
      },
      "required": [
        "did",
        "handle"
      ],
      "type": "object"
    },
    "main": {
      "description": "Accounts anywhere on atproto matching what is typed so far of a handle or name, best first, as the typeahead service HUD asks finds them: none for under two letters, or when that service cannot say. For the sign-in forms of the workspace's page and HUD's apps. No auth required.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actors": {
              "items": {
                "ref": "#actor",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "actors"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 6,
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "What is typed, with or without a leading @.",
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Accounts whose handle or name starts with what is typed, for signing in.",
  "id": "place.hud.searchActors",
  "lexicon": 1
}
```
