# Wikipedia GDP Table Extractor

**Use case:** 

Extract the GDP table from Wikipedia into structured JSON rows with automatic header detection and table filtering.

## Input

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)"
  ],
  "tableSelector": "table.wikitable",
  "tableIndices": [
    0
  ],
  "minRows": 10,
  "maxTablesPerPage": 1,
  "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.