# is.currents.feed.searchSaves

> Published by [currents.is](https://lexicon.garden/identity/did:plc:jaur46k6ijyfvl4lojza7eic)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.feed.searchSaves)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.feed.searchSaves/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jaur46k6ijyfvl4lojza7eic/is.currents.feed.searchSaves/examples)

## Definitions

### `is.currents.feed.searchSaves`

**Type**: `query`

Search saves by text query across all actors. Auth is optional; if provided, viewer-specific state is included.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `q` | `string` | Yes | Full-text search query. |
| `limit` | `integer` | No |  |
| `cursor` | `string` | No |  |
| `excludeSaved` | `boolean` | No | If true and the request is authenticated, exclude saves the viewer has already saved (matched by blob CID). Ignored for unauthenticated requests. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `saves` | `array` | Yes |  |
| `cursor` | `string` | No |  |

## Raw Schema

```json
{
  "id": "is.currents.feed.searchSaves",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "saves"
          ],
          "properties": {
            "saves": {
              "type": "array",
              "items": {
                "ref": "is.currents.feed.defs#saveView",
                "type": "ref"
              }
            },
            "cursor": {
              "type": "string"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "type": "string",
            "maxLength": 2048,
            "description": "Full-text search query."
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1
          },
          "cursor": {
            "type": "string"
          },
          "excludeSaved": {
            "type": "boolean",
            "default": false,
            "description": "If true and the request is authenticated, exclude saves the viewer has already saved (matched by blob CID). Ignored for unauthenticated requests."
          }
        }
      },
      "description": "Search saves by text query across all actors. Auth is optional; if provided, viewer-specific state is included."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
