# app.zeens.getFilmFacets

> Aggregate film-stock usage across app.zeens.postMeta records that have film.stockSlug set. Powers the search 'Popular film stocks' sidebar and the per-profile 'Top film stocks' card.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getFilmFacets)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getFilmFacets/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pwpuqwge6g7xrjmfbw73uycw/app.zeens.getFilmFacets/analytics)

## Query (`app.zeens.getFilmFacets`)

Type: query · GET

### Parameters (query string)

- `did` (string): Optional DID to scope facets to one user. Omit for the global popular-stocks view.

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Aggregate film-stock usage across app.zeens.postMeta records that have film.stockSlug set. Powers the search 'Popular film stocks' sidebar and the per-profile 'Top film stocks' card.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "did": {
            "description": "Optional DID to scope facets to one user. Omit for the global popular-stocks view.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getFilmFacets",
  "lexicon": 1
}
```
