How to Use the Datafromfile Public API

One REST endpoint does everything the web app's upload button does. Here's the real request/response shape, rate limits, and code examples to call it from your own scripts.

More from this article

  • Every extraction the web app does is also one REST call away. The Datafromfile API lets you send a file from your own script or server and get back structured rows and columns, no browser, no manual upload.
  • What the API actually does
  • POST a file as base64 to /api/v1/extract with an API key, and get back the same extracted table the web app's upload button would produce, same pipeline, same accuracy, just callable from code.
  • Quickstart
  • Get a free key at Settings, Integrations & API, then:
  • ```bash curl -X POST https://www.datafromfile.com/api/v1/extract \ -H "Authorization: Bearer $DFF_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "fileData": "'"$(base64 -w0 invoice.pdf)"'", "fileName": "invoice.pdf", "mimeType": "application/pdf", "mode": "auto" }' ```