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

# Talk to PDF API

Ask natural-language questions about an uploaded PDF or a PDF URL. Returns an answer string for document search, review, and support workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/extract/qna/ask/file` | What it does Uploads a PDF and a natural-language question about that document, then returns the mo… | 200 |
| POST | `/extract/qna/ask/url` | What it does Submits a public PDF URL and a natural-language question, then returns a text answer b… | 200 |

## About

## What it does
PDF Question Answering lets you send a PDF and ask a natural-language question about its contents. It returns an `answer` string based on the document you provide, so you can extract specific facts without building your own parser or retrieval pipeline.

Use `POST /file` when you have the PDF as an uploaded file. Send a binary `file` up to 10 MB and a `query` string up to 2000 characters. Use `POST /url` when the PDF is already hosted online; send a public `.pdf` URL in `file_url` plus the same `query` field. In both cases, the response includes an `answer` field with the model's answer.

This is a good fit for document search, internal knowledge assistants, contract review, and support workflows where users need a direct answer from a specific PDF. Ask for totals, dates, requirements, definitions, or other details from reports, manuals, policies, and forms.

PDF Question Answering is useful when you want a lightweight AI layer over documents without converting them into another format first. Send the file or URL, ask the question, and use the returned answer in your app or automation.

## Usage

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