Skip to content
Browse all functions

OCR DOCX – Word to Markdown

files/ocrdocx

ocrdocx (OCR DOCX – Word to Markdown) is a 1001fx API function in the group Files & PDF: POST https://api.1001fx.com/files/ocrdocx, 6 credits per item. It works as a ready-made module in Make or as a plain HTTP call.

Converts a Word document (DOCX) into Markdown or plain text, with tables, headings and embedded images. Works with scanned documents, photos, tables and handwriting. Processed in the EU by Mistral AI (no training on your data). Charged per page (6 credits), at most 8 pages per call.

Endpoint

POSThttps://api.1001fx.com/files/ocrdocx
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • filefileoptional

    The Word document to read. Either file or fileUrl.

  • fileUrlstringoptional

    Public URL of the Word document. Either file or fileUrl.

    Example:
    https://api.1001fx.com/testdata/word.docx
  • pagesstringoptional

    Pages to read, e.g. 1-3,7 (first page = 1). At most 8 pages per call; without it all pages (documents up to 8 pages).

    Example:
    1-2
  • outputFormatenumoptional

    markdown (default) keeps headings and tables; text is plain text.

    Values:
    markdown
    text
    Default:
    markdown
  • tableFormatenumoptional

    inline (default): tables as Markdown in the text; markdown or html: tables separately in pages[].tables.

    Values:
    inline
    markdown
    html
    Default:
    inline
  • extractHeaderFooterbooleanoptional

    Return page headers and footers separately instead of in the text.

    Default:
    false
  • extractImagesenumoptional

    urls (default): photos and figures as download links (48 h) in the text and in pages[].images; base64: inline; none: left out.

    Values:
    urls
    none
    base64
    Default:
    urls
  • describeImagesbooleanoptional

    Adds a short description of every image, chart and figure. Costs 18 instead of 6 credits per page.

    Default:
    false

Examples

OCR DOCX

One page as Markdown (costs real provider money with test keys – keep examples at one page)

Input

Expects multipart/form-data or a json body
{
  "fileUrl": "https://api.1001fx.com/testdata/word.docx",
  "pages": "1",
  "outputFormat": "markdown"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/files/ocrdocx' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'

Step-by-step guides

Try ocrdocx now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created