> ## Documentation Index
> Fetch the complete documentation index at: https://productlasso.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Seznam řádků

> Načtení stránkovaného seznamu řádků z tabulky.

## Parametry cesty

<ParamField path="table_id" type="string" required>
  Jedinečný identifikátor tabulky.
</ParamField>

## Query parametry

<ParamField query="page" type="integer" default="1">
  Číslo stránky pro stránkování.
</ParamField>

<ParamField query="limit" type="integer" default="25">
  Počet položek na stránku (max 100).
</ParamField>

<ParamField query="sort_by" type="string">
  Klíč sloupce pro řazení. Řadí podle hodnoty v `extracted_data` pro daný sloupec.
</ParamField>

<ParamField query="sort_order" type="string" default="asc">
  Směr řazení: `asc` nebo `desc`.
</ParamField>

## Odpověď

<ResponseField name="data" type="array">
  <Expandable title="Objekt řádku">
    <ResponseField name="id" type="string">Jedinečný identifikátor řádku.</ResponseField>
    <ResponseField name="row_index" type="integer">Pozice řádku v tabulce.</ResponseField>
    <ResponseField name="data" type="object">Extrahovaná data klíčovaná podle klíče sloupce.</ResponseField>
    <ResponseField name="validation_status" type="string | null">Stav validace.</ResponseField>
    <ResponseField name="validation_errors" type="object | null">Podrobnosti o chybách validace.</ResponseField>
    <ResponseField name="enhancement_status" type="object | null">Stav obohacení pro jednotlivé sloupce.</ResponseField>
    <ResponseField name="is_edited" type="boolean">Zda byl řádek ručně upraven.</ResponseField>
    <ResponseField name="created_at" type="string">Časové razítko ISO 8601.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="pagination" type="object">
  <Expandable title="Metadata stránkování">
    <ResponseField name="page" type="integer">Aktuální stránka.</ResponseField>
    <ResponseField name="limit" type="integer">Položek na stránku.</ResponseField>
    <ResponseField name="total" type="integer">Celkový počet řádků.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```typescript TypeScript theme={null}
  const result = await client.tables.rows("tbl_abc123", {
    page: 1,
    limit: 50,
    sort_by: "name",
  });

  for (const row of result.data) {
    console.log(row.data.name, row.data.price);
  }
  ```

  ```python Python theme={null}
  result = client.tables.rows("tbl_abc123", page=1, limit=50, sort_by="name")

  for row in result["data"]:
      print(row["data"]["name"], row["data"]["price"])
  ```

  ```bash cURL theme={null}
  curl -X GET "https://hub.banditshq.com/api/v1/tables/tbl_abc123/rows?page=1&limit=50&sort_by=name" \
    -H "Authorization: Bearer lasso_..."
  ```
</RequestExample>

<Tip>
  Python SDK má helper `results_as_dataframe`, který načte všechny řádky a vrátí pandas DataFrame:

  ```python theme={null}
  df = client.tables.results_as_dataframe("tbl_abc123")
  print(df.head())
  ```
</Tip>

<ResponseExample>
  ```json Response theme={null}
  {
    "data": [
      {
        "id": "row_abc123",
        "row_index": 0,
        "data": {
          "product_name": "iPhone 15 Pro",
          "price": 999,
          "description": "Latest Apple smartphone"
        },
        "validation_status": null,
        "validation_errors": null,
        "enhancement_status": null,
        "is_edited": false,
        "created_at": "2025-03-10T14:30:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 50,
      "total": 42
    }
  }
  ```
</ResponseExample>
