# Read receipt photos with OCR into text and tables

**Use case:** 

Send a photo or scan of a receipt and get the shop, items, prices, tax and total as clean text, with any tables as JSON. OCR runs inside the Actor, so no receipt is sent to an outside AI service. The example reads a phone photo of a cafe receipt; JPG, PNG, TIFF, BMP, WEBP and scanned PDFs all work.

## Input

```json
{
  "documentUrls": [
    "https://api.apify.com/v2/key-value-stores/gZUDoFSN6sExqUTEm/records/sample-receipt.jpg"
  ],
  "ocrMode": "auto",
  "extractTablesAsJson": true,
  "maxPages": 100,
  "maxFileSizeMb": 50,
  "maxDocuments": 100,
  "documentTimeoutSecs": 300
}
```

## Output

```json
{
  "source_url": {
    "label": "Source URL",
    "format": "string"
  },
  "full_markdown": {
    "label": "Full Markdown",
    "format": "string"
  }
}
```

## How it works

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

The Invoice, Receipt & PDF Table to JSON/Markdown OCR Actor is ready to run with the inputs already set for "Read receipt photos with OCR into text and tables". [Sign up or log in](https://console.apify.com/create-task-from-example/38mwAenq6tbzTdu01) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Read receipt photos with OCR into text and tables" task

The Invoice, Receipt & PDF Table to JSON/Markdown OCR Actor will start running based on the input automatically. You can also change all the input fields, like document urls, OCR mode, and more, to match your specific use case.

### 3. Receive the "Read receipt photos with OCR into text and tables" 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 source url and full markdown.

### 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 "Read receipt photos with OCR into text and tables" task via API](https://apify.com/panix/invoice-table-json-extractor.md).

## FAQ

### How accurate is the receipt OCR?

The receipt OCR task uses the PP-OCRv6 model, which reads printed receipts in English and other Latin-script languages well. Blurry, crumpled or handwritten receipts give weaker results, so photograph them flat and in good light.

### Which file types can I send?

The receipt OCR task accepts JPG, PNG, TIFF, BMP and WEBP images and scanned PDFs, from any direct public download link, signed S3 links included.

### Can I process many receipts at once?

Add up to 1,000 links to Document URLs. The receipt OCR task returns one row per receipt, and one bad photo never stops the rest of the run.

### How much does the receipt OCR task cost?

The receipt OCR task costs $0.02 per image or scanned page on the Apify Free plan and $0.018 on Starter, less on Scale and Business, plus $0.004 per run. Files that fail are free.

## About this Actor

This example demonstrates how to use [Invoice, Receipt & PDF Table to JSON/Markdown OCR](https://apify.com/panix/invoice-table-json-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/panix/invoice-table-json-extractor.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/panix/invoice-table-json-extractor.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`).
