---
title: AI Document Table Data Extraction API
slug: extract-table-data
url: https://apyverse.com/apyhub/service/extract-table-data
provider: ApyHub
categories: [Data Extraction, Developer Tools, Image Processing]
tags: [table-extraction, document-parsing, ocr, pdf-extraction, data-extraction]
auth: api_key
---

# AI Document Table Data Extraction API

Extract tables from a document URL or file upload. Returns structured ApyHub output or raw Azure Document Intelligence parsing data.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `ai/document/extract/table/url` | What it does Extracts table data from a document at the provided URL and returns parsed results in… | 500 |
| POST | `ai/document/extract/table/file` | What it does Uploads a file and returns table extraction output. You can choose whether the respons… | 500 |

## About

## What it does
Table Extraction pulls tabular data out of documents and returns it in a structured response you can work with. Send a PDF or other file upload, or pass a document URL, and choose whether you want ApyHub’s structured table extraction output or raw Azure Document Intelligence parsing output.

Use the `/url` endpoint when the source document is already hosted online. Send a `url`, and optionally set `requested_service` to `azure` or `apyhub`. If you need to route through Azure directly, include the `azure` object with `key`, `region`, `endpoint`, `account_id`, or `access_token` as needed. The `/file` endpoint accepts a binary `file` upload and the same service choice, with Azure credentials supplied as `azure_key`, `azure_region`, `azure_endpoint`, `azure_account_id`, or `azure_access_token`.

The response contains a `data` object with an `azure` result and an `apyhub` result. That makes it straightforward to compare extraction paths or plug the output into downstream processing without having to build your own table parser.

Use Table Extraction for invoice line items, reports, scanned forms, and any workflow where you need tables captured from documents instead of manually copied into spreadsheets.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/extract-table-data
