# computer.localnetwork.directory.listShows

> List upcoming shows, soonest first or nearest first. A show stays upcoming until it ends, or 12 hours after it starts when it has no end. Only shows announced by a current manager of an active project are listed, and every show has coordinates.

- Kind: query
- Authority: directory.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listShows)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listShows/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.listShows/analytics)

## Query (`computer.localnetwork.directory.listShows`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
  - Constraints: maxLength: 512
- `follower` (string · did): Only shows by projects this account follows.
- `latE6` (integer)
  - Constraints: minimum: -90000000, maximum: 90000000
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 30
- `lngE6` (integer)
  - Constraints: minimum: -180000000, maximum: 180000000
- `project` (string · at-uri): Only this project's shows.
- `radiusKm` (integer): With latE6 and lngE6, only shows this close.
  - Constraints: minimum: 1, maximum: 20000
- `sort` (string): distance needs latE6 and lngE6.
  - Constraints: maxLength: 32, default: "date", knownValues: date | distance

### Output (application/json)

- `cursor` (string)
  - Constraints: maxLength: 512
- `shows` (array, required)
  - `items` (ref)
    - Reference: `computer.localnetwork.directory.defs#showView`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List upcoming shows, soonest first or nearest first. A show stays upcoming until it ends, or 12 hours after it starts when it has no end. Only shows announced by a current manager of an active project are listed, and every show has coordinates.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 512,
              "type": "string"
            },
            "shows": {
              "items": {
                "ref": "computer.localnetwork.directory.defs#showView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "shows"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 512,
            "type": "string"
          },
          "follower": {
            "description": "Only shows by projects this account follows.",
            "format": "did",
            "type": "string"
          },
          "latE6": {
            "maximum": 90000000,
            "minimum": -90000000,
            "type": "integer"
          },
          "limit": {
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "lngE6": {
            "maximum": 180000000,
            "minimum": -180000000,
            "type": "integer"
          },
          "project": {
            "description": "Only this project's shows.",
            "format": "at-uri",
            "type": "string"
          },
          "radiusKm": {
            "description": "With latE6 and lngE6, only shows this close.",
            "maximum": 20000,
            "minimum": 1,
            "type": "integer"
          },
          "sort": {
            "default": "date",
            "description": "distance needs latE6 and lngE6.",
            "knownValues": [
              "date",
              "distance"
            ],
            "maxLength": 32,
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "computer.localnetwork.directory.listShows",
  "lexicon": 1
}
```
