# Multi-Page HTML Table Extraction Workflow

**Use case:** 

Convert tables from multiple webpages into JSON with row filters, table limits, selectors, and nested-table handling.

## Input

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)",
    "https://en.wikipedia.org/wiki/List_of_countries_by_population_(United_Nations)"
  ],
  "tableSelector": "table.wikitable",
  "tableIndices": [],
  "minRows": 5,
  "maxTablesPerPage": 3,
  "headerRowIndex": -1,
  "includeNestedTables": false
}
```

## Output

```json
{
  "url": {
    "label": "Source URL",
    "format": "link"
  },
  "pageTitle": {
    "label": "Page Title",
    "format": "text"
  },
  "tableIndex": {
    "label": "Table #",
    "format": "number"
  },
  "hasHeaders": {
    "label": "Has Headers",
    "format": "boolean"
  },
  "columnCount": {
    "label": "Columns",
    "format": "number"
  },
  "rowCount": {
    "label": "Rows",
    "format": "number"
  },
  "headers": {
    "label": "Headers",
    "format": "text"
  },
  "rows": {
    "label": "Data",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [HTML Table Extractor](https://apify.com/automation-lab/html-table-extractor) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/html-table-extractor) to learn more, explore other use cases, and run it yourself.