Use cases
- Converting research papers from PDF to searchable text for analysis
- Extracting content from business reports for data processing
- Converting PDF documentation into markdown format for web publishing
- Making archived PDF documents searchable and analyzable
- Automating data extraction from PDF forms and invoices
You need an API key to access the Writer API. Get an API key by following the steps in the API quickstart.We recommend setting the API key as an environment variable in a
.env
file with the name WRITER_API_KEY
.Endpoint overview
URL:POST https://api.writer.com/v1/tools/pdf-parser
Path parameters
Parameter | Description |
---|---|
file_id | The ID of the uploaded PDF file to parse. |
Request body
The request body includes the following parameters:Parameter | Type | Description |
---|---|---|
format | string | The desired output format. Can be text or markdown . |
Response parameters
Returns an object with acontent
field containing the extracted text in the specified format.
JSON