---
title: AI Document Invoice Data Extraction API
slug: extract-invoice-data
url: https://apyverse.com/apyhub/service/extract-invoice-data
provider: ApyHub
tags: [invoice-extraction, document-parsing, accounts-payable, ocr, finance-automation]
auth: api_key
---

# AI Document Invoice Data Extraction API

What it does Invoice Extraction turns an invoice document into structured data you can use in your app. Send either a PDF URL to /url or upload a file to /file, and choose the extraction backend with requestedservice. The response contains a data object with the parsing output from either apyhub or…

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/document/extract/invoice/url` | What it does Extracts invoice data from a document available at a URL. The request sends the URL in… | 500 |
| POST | `/ai/document/extract/invoice/file` | What it does Uploads an invoice file and returns parsed invoice data in a JSON object. You can opti… | 500 |

## About

## What it does
Invoice Extraction turns an invoice document into structured data you can use in your app. Send either a PDF URL to `/url` or upload a file to `/file`, and choose the extraction backend with `requested_service`.

The response contains a `data` object with the parsing output from either `apyhub` or `azure`. If you select `azure`, you can also pass Azure credentials such as `key`, `region`, `endpoint`, `account_id`, and `access_token` in the URL flow, or the matching `azure_*` fields in the file flow. If you leave `requested_service` at its default, the service uses `apyhub`.

Use Invoice Extraction when you need invoice details from supplier PDFs, attached billing documents, or scanned finance paperwork without building your own parsing pipeline. It fits accounts payable workflows, expense systems, and document ingestion jobs where invoices arrive in different formats but need to be normalized into machine-readable output.

The API is focused on extraction, not validation or transformation. You send a document source, optionally provide Azure credentials, and get back the raw parsing result for the service you selected.

## Usage

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