---
name: metabase_list_cards
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_list_cards(client: MetabaseClient, filter: str = '', model_id: int = 0) -> list[dict]"
description: "Lista preguntas/cards de Metabase. Filtros: all, mine, fav, archived, recent, popular, database, table. Endpoint: GET /api/card."
tags: [metabase, card, question, list, api, python]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: [httpx]
params:
  - name: client
    desc: "instancia autenticada de MetabaseClient"
  - name: filter
    desc: "filtro: all, mine, fav, archived, recent, popular, database, table"
  - name: model_id
    desc: "ID de modelo para filtros database/table"
output: "list[dict]: lista de cards que coinciden con el filtro"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/cards.py"
---

## Ejemplo

```python
cards = metabase_list_cards(client, filter="mine")
cards = metabase_list_cards(client, filter="database", model_id=1)
```

## Notas

No tiene paginacion offset/limit. Retorna todas las cards que coinciden.
