file, up to 36 MB. Encode a file from disk with base64 -w0 report.pdf, or send raw bytes with Large files. Small files also parse without a key, within the keyless limits.
data.markdown. metadata.contentType is the type read from the bytes, whatever the name says. For a PDF, numPages is the page count and ocrPages counts pages read from their picture. data.warning is The file text was cut short. when the file had more pages than maxPages.
Fields
These fields can also sit inside an
options object. The full list is in the API reference.
File types
GET /v1/parse/formats is free and lists each type with the options that apply.
.doc, .xls, .ppt, .ods and .odp are not read. Save them in a listed format.
Read a PDF
parsers takes one entry: [{ "type": "pdf", "pages": true }].
Read an HTML file
Errors
Other codes are on Errors.
Next
- Large files: upload raw bytes.
- PDFs and documents: read a file at a URL.
- JSON: get named fields from the text.