# quest.sableye.magnet.listEntries

> Published by [matt.evil.gay](https://lexicon.garden/identity/did:plc:tas6hj2xjrqben5653v5kohk)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tas6hj2xjrqben5653v5kohk/quest.sableye.magnet.listEntries)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tas6hj2xjrqben5653v5kohk/quest.sableye.magnet.listEntries/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tas6hj2xjrqben5653v5kohk/quest.sableye.magnet.listEntries/examples)

## Definitions

### `quest.sableye.magnet.listEntries`

**Type**: `query`

List and search magnet entries.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `q` | `string` | No | Search query (searches name and description). |
| `tag` | `string` | No | Filter by tag. |
| `limit` | `integer` | No | Maximum number of results. |
| `cursor` | `string` | No | Pagination cursor. |

#### Output

**Encoding**: `application/json`

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

### `quest.sableye.magnet.listEntries#entryView`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |
| `name` | `string` | Yes |  |
| `rkey` | `string` | Yes |  |
| `tags` | `array` | No |  |
| `infoHash` | `string` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `fileCount` | `integer` | No |  |
| `indexedAt` | `string` (datetime) | Yes |  |
| `magnetUri` | `string` | Yes |  |
| `sizeBytes` | `integer` | No |  |
| `description` | `string` | No |  |
| `torrentFile` | `blob` | No | Optional .torrent file on the author's PDS (same shape as record field). |

## Raw Schema

```json
{
  "id": "quest.sableye.magnet.listEntries",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "entries"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "entries": {
              "type": "array",
              "items": {
                "ref": "#entryView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "q": {
            "type": "string",
            "description": "Search query (searches name and description)."
          },
          "tag": {
            "type": "string",
            "description": "Filter by tag."
          },
          "limit": {
            "type": "integer",
            "default": 25,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of results."
          },
          "cursor": {
            "type": "string",
            "description": "Pagination cursor."
          }
        }
      },
      "description": "List and search magnet entries."
    },
    "entryView": {
      "type": "object",
      "required": [
        "uri",
        "did",
        "rkey",
        "magnetUri",
        "name",
        "createdAt",
        "indexedAt"
      ],
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "uri": {
          "type": "string",
          "format": "at-uri"
        },
        "name": {
          "type": "string"
        },
        "rkey": {
          "type": "string"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "infoHash": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime"
        },
        "fileCount": {
          "type": "integer"
        },
        "indexedAt": {
          "type": "string",
          "format": "datetime"
        },
        "magnetUri": {
          "type": "string"
        },
        "sizeBytes": {
          "type": "integer"
        },
        "description": {
          "type": "string"
        },
        "torrentFile": {
          "type": "blob",
          "description": "Optional .torrent file on the author's PDS (same shape as record field)."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
