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

# Extract Text from PDF API

Extract text from uploaded PDFs or PDF URLs. Supports page ranges and page-region selection for document ingestion, search, and parsing.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract/text/pdf-file` | What it does Extracts text from an uploaded PDF file and returns the extracted content as a string.… | 50 |
| POST | `/extract/text/pdf-url` | What it does Extracts text from a PDF available at a remote URL and returns the extracted text in a… | 50 |

## About

## What it does
PDF Text Extractor pulls plain text from a PDF and returns it in a single `data` field. Send either an uploaded PDF file or a remote PDF URL, and get the extracted text back.

Use the `/file` endpoint when the document is already in your request body as binary PDF data. Use `/url` when the PDF is hosted elsewhere and you want to pass a `url` instead. Both endpoints support page-range extraction with `start_page` and `end_page`, where `end_page` set to `0` means all pages.

If you need to capture only part of a page, you can also provide `starting_x_coordinate`, `starting_y_coordinate`, `ending_x_coordinate`, and `ending_y_coordinate` to limit extraction to a defined region. The `preserve_paragraphs` setting lets you keep paragraph structure when you need text that is easier to read or process downstream.

This is useful for document ingestion, search indexing, quote extraction, and turning reports, invoices, or manuals into text your application can parse, store, or analyze.

## Usage

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