New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

apapyr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apapyr

Extract structured data from invoices, receipts, and documents. PDF/image in, JSON out.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

aPapyr Node.js SDK

Extract structured data from invoices, receipts, and documents. Send a PDF or image, get clean JSON back.

Install

npm install apapyr

Quick Start

const { aPapyr } = require("apapyr");

const client = new aPapyr("sk_live_your_key");

// Extract data from an invoice
const result = await client.extract("invoice.pdf");

console.log(result.getField("vendor_name")); // "Acme Corp"
console.log(result.getField("total")); // 1250.00
console.log(result.confidence); // 0.97

// Get all fields as a flat object
console.log(result.toFlatDict());
// { document_type: "invoice", vendor_name: "Acme Corp", total: 1250.00, ... }

AI Agent Support

aPapyr works natively with AI agents via MCP:

claude mcp add apapyr -- npx @apapyr/mcp-server

Then just ask: "Extract the data from invoice.pdf"

Document Types

  • invoice — vendor, total, tax, due_date, line_items
  • receipt — merchant, total, tax, tip, payment_method
  • w2 — employer, wages, federal_tax, state_tax
  • bank_statement — bank, balances, transactions
  • contract — parties, dates, value, obligations
  • auto — automatically detects type (default)

Environment Variable

export APAPYR_API_KEY=sk_live_your_key
const client = new aPapyr(); // reads from env
  • API Docs
  • Dashboard
  • Free Tool

Keywords

invoice

FAQs

Package last updated on 29 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts