# quest.cozysky.getFrenStatuses

> What a player's frens (Marco follow graph) are playing: their games.atmosphere.status records whose staleAt hasn't passed, the newest per fren and game, newest first. Served by getFrenStatuses.lua.

- Kind: query
- Authority: cozysky.quest
- Lexicon: 1
- Published by [cozysky.quest](https://lexicon.garden/identity/did:plc:r3t343mn4ksrkgzustdwj5iv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getFrenStatuses)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getFrenStatuses/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:r3t343mn4ksrkgzustdwj5iv/quest.cozysky.getFrenStatuses/analytics)

## Query (`quest.cozysky.getFrenStatuses`)

Type: query · GET

### Parameters (query string)

- `did` (string · did): Whose frens. Required unless dids is given.
- `dids` (string): Comma-separated DIDs to use instead of asking Marco.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 500, default: 100
- `pool` (string): Which frens, from Marco's follow graph.
  - Constraints: default: "mutuals", knownValues: mutuals | following | followers
- `stale` (boolean): Include stale statuses too (the latest per fren and game).
  - Constraints: default: false

### Output (application/json)

- `looked` (integer)
- `statuses` (array, required)
  - `items` (ref)
    - Reference: `#frenStatus`

## #frenStatus (`quest.cozysky.getFrenStatuses#frenStatus`)

Type: object

### Properties

- `did` (string · did, required)
- `live` (boolean): staleAt is still in the future.
- `status` (unknown, required): The games.atmosphere.status record.
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "frenStatus": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        },
        "live": {
          "description": "staleAt is still in the future.",
          "type": "boolean"
        },
        "status": {
          "description": "The games.atmosphere.status record.",
          "type": "unknown"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "did",
        "uri",
        "status"
      ],
      "type": "object"
    },
    "main": {
      "description": "What a player's frens (Marco follow graph) are playing: their games.atmosphere.status records whose staleAt hasn't passed, the newest per fren and game, newest first. Served by getFrenStatuses.lua.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "looked": {
              "type": "integer"
            },
            "statuses": {
              "items": {
                "ref": "#frenStatus",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "statuses"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "Whose frens. Required unless dids is given.",
            "format": "did",
            "type": "string"
          },
          "dids": {
            "description": "Comma-separated DIDs to use instead of asking Marco.",
            "type": "string"
          },
          "limit": {
            "default": 100,
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          },
          "pool": {
            "default": "mutuals",
            "description": "Which frens, from Marco's follow graph.",
            "knownValues": [
              "mutuals",
              "following",
              "followers"
            ],
            "type": "string"
          },
          "stale": {
            "default": false,
            "description": "Include stale statuses too (the latest per fren and game).",
            "type": "boolean"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "quest.cozysky.getFrenStatuses",
  "lexicon": 1
}
```
