---
title: Extract Text from Word API
slug: extract-text-from-word
url: https://apyhub.com/apyhub/service/extract-text-from-word
provider: ApyHub
categories: [Data Extraction, Developer Tools, File Conversion]
auth: api_key
---

# Extract Text from Word API

Extract plain text from .doc or .docx files by URL or upload. Returns a single text field for indexing, search, and document workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract/text/word-url` | What it does Extracts text from a Word document located at a remote URL and returns the extracted t… | 60 |
| POST | `/extract/text/word-file` | What it does Uploads a Word document and extracts its text content. The response returns the extrac… | 60 |

## About

## What it does
Word Text Extraction pulls plain text out of `.doc` and `.docx` files and returns it as a single `data` string. Send a remote document URL or upload a file, and get the extracted text back without dealing with Word-specific parsing in your own code.

Use the `/url` endpoint when the document is already hosted remotely, or `/file` when you have the binary upload in hand. Both endpoints accept an optional `preserve_paragraphs` setting so you can keep paragraph breaks when the structure matters, or flatten the text when you only need the content.

This is useful for indexing contracts, ingesting office documents into search, or normalising user-uploaded Word files before passing them into downstream workflows. If you need document text for analysis, storage, or moderation, Word Text Extraction gives you a simple text payload you can process immediately.

The response schema is intentionally minimal: you get extracted text in `data`, with no extra document metadata to filter out.

## Usage

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