# social.grain.unspecced.searchActorsTypeahead

> Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.searchActorsTypeahead)
- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.searchActorsTypeahead/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.unspecced.searchActorsTypeahead/examples)

## Definitions

### `social.grain.unspecced.searchActorsTypeahead`

**Type**: `query`

Typeahead search for actors, merging bsky and grain profiles.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `q` | `string` | Yes | Search query |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actors` | `array` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Typeahead search for actors, merging bsky and grain profiles.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actors": {
              "items": {
                "properties": {
                  "avatar": {
                    "type": "string"
                  },
                  "did": {
                    "format": "did",
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  }
                },
                "required": [
                  "did"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 5,
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Search query",
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.grain.unspecced.searchActorsTypeahead",
  "lexicon": 1
}
```
