---
title: AI Document Receipt Data Extraction API
slug: extract-receipt-data
url: https://apyhub.com/apyhub/service/extract-receipt-data
provider: ApyHub
categories: [Data Extraction, Finance, Image Processing]
auth: api_key
---

# AI Document Receipt Data Extraction API

Extract receipt data from uploads or URLs. Returns ApyHub or raw Azure parsing output for expense tracking and receipt processing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/document/extract/receipt/file` | What it does Uploads a receipt file for data extraction and returns parsed receipt data. You can re… | 500 |
| POST | `/ai/document/extract/receipt/url` | What it does Extracts receipt data from a document URL and returns a JSON object with parsing resul… | 500 |

## About

## What it does
Receipt Extraction reads a receipt from a file upload or a URL and returns parsed receipt data. Send a receipt image or PDF, and choose whether you want the ApyHub result, the raw Azure Document Intelligence output, or both.

Use the `/file` endpoint when you already have the receipt content in hand. It accepts a binary `file` plus optional Azure settings such as `azure_key`, `azure_region`, `azure_endpoint`, `azure_account_id`, `azure_access_token`, and `requested_service`. Use the `/url` endpoint when the receipt is hosted remotely; it takes a `url`, optional `azure` credentials object, and `requested_service`.

The response is wrapped under `data` and includes `azure` and `apyhub` objects, matching the service you requested. That makes it useful when you need receipt parsing in expense apps, accounting workflows, or backend systems that ingest vendor receipts and store extracted data for review or downstream processing.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Azure                        |   500 |
| ApyHub                       |  2000 |

## Usage

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