# HTML Table to JSON & Markdown Extractor

**Use case:** 

Parse any HTML table on a webpage into structured JSON arrays, headers, records, and Markdown tables without spinning up a browser. Built for AI agents, MCP pipelines, benchmarks, and financial or public datasets.

## Input

```json
{
  "urls": [
    "https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)"
  ],
  "minRows": 2,
  "includeMarkdown": true,
  "maxTablesPerPage": 20,
  "timeoutSeconds": 20
}
```

## Output

```json
{
  "url": {
    "label": "URL",
    "format": "string"
  },
  "ok": {
    "label": "OK",
    "format": "boolean"
  },
  "httpStatus": {
    "label": "HTTP Status",
    "format": "integer"
  },
  "tableCount": {
    "label": "Tables",
    "format": "integer"
  },
  "tables": {
    "label": "Tables Data",
    "format": "array"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The HTML Table to JSON & Markdown Extractor (MCP Ready) Actor is ready to run with the inputs already set for "HTML Table to JSON & Markdown Extractor". [Sign up or log in](https://console.apify.com/create-task-from-example/UT425o6m2Gka5f2kh) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "HTML Table to JSON & Markdown Extractor" task

The HTML Table to JSON & Markdown Extractor (MCP Ready) Actor will start running based on the input automatically. You can also change all the input fields, like URLs to Extract Tables From, minimum data rows, and more, to match your specific use case.

### 3. Receive the "HTML Table to JSON & Markdown Extractor" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, OK, HTTP Status, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "HTML Table to JSON & Markdown Extractor" task via API](https://apify.com/brasil-api-lcm/html-table-to-json-mcp.md).

## FAQ

### What data does this task return?

The Html Table To Json Mcp Task extracts structured JSON arrays and Markdown tables from specified webpage HTML tables.

### What is the input for this task?

The task currently targets the URL 'https://en.wikipedia.org/wiki/List_of_countries_by_GDP_(nominal)' to extract data from its HTML tables.

### Does this task require a headless browser?

The Html Table To Json Mcp Task operates without headless browsers or expensive proxies.

### Can I connect this task to an AI agent?

The task is built for integration with AI agents, n8n, Make, and data pipelines.

### Is scheduling available for this task?

This task can be scheduled for automatic runs in the Apify Console.

## About this Actor

This example demonstrates how to use [HTML Table to JSON & Markdown Extractor (MCP Ready)](https://apify.com/brasil-api-lcm/html-table-to-json-mcp.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/brasil-api-lcm/html-table-to-json-mcp.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/brasil-api-lcm/html-table-to-json-mcp.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
