---
title: Talk to PDF API
slug: ask-question-about-pdf
url: https://apyverse.com/apyhub/service/ask-question-about-pdf
provider: ApyHub
categories: [Artificial Intelligence, Data Extraction, Smart Generation]
auth: api_key
---

# Talk to PDF API

Send a PDF or PDF URL and a natural-language question. Returns an answer string for document lookup, review, and support workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract/qna/ask/file` | What it does Uploads a PDF file and a natural-language question, then returns a generated answer ba… | 200 |
| POST | `/extract/qna/ask/url` | What it does Sends a public PDF URL and a natural-language question to the endpoint and returns a t… | 10 |

## About

## What it does
Ask PDF Questions lets you send a PDF and a natural-language question, then get an answer back from the document content. Use it with either an uploaded file or a publicly accessible PDF URL.

For uploads, POST `/file` accepts a `file` field containing a valid, non-password-protected PDF up to 10 MB, plus a `query` string of up to 2000 characters. For remote documents, POST `/url` accepts a `file_url` that ends in `.pdf` and a `query` string. In both cases, the response always includes an `answer` field as a string.

This is useful when you need to query contracts, reports, policies, manuals, or research papers without building your own document search pipeline. Ask for a specific figure, a summary of a section, or a fact buried in a long PDF, and use the returned answer in review workflows, document assistants, or internal support tools.

Ask PDF Questions is a fit when the source of truth is already in a PDF and you want a direct answer instead of extracting the whole file first. Keep in mind that the service only works with valid PDF input and the query is limited to document content.

## Usage

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