Extract text from an uploaded file
π File Text Extraction from Direct Upload
Upload a file directly via multipart form-data and extract its text content in a single request. Supports a wide range of document formats including PDFs, Office documents (DOCX, XLSX, PPTX), plain text files, HTML, and more.
π€ File Upload Send the file using multipart/form-data with the file field named file. Additional options (chunking, chunkSize) are passed as form fields alongside the file.
π¦ Output Modes
- Single string (default, chunking: false) β All extracted text as one string
- Chunked (chunking: true) β Text split into fixed-size chunks, ideal for embedding pipelines and RAG (Retrieval-Augmented Generation) applications
π Chunking When chunking: true, text is split into chunks of up to chunkSize characters (minimum 1000, default 4000). Chunk boundaries respect word boundaries.
Request
- Base URLhttps://core.blink.new
- URLhttps://core.blink.new/api/data/{project_id}/extract-from-blob
- AuthHTTP bearer
Path parameters
Unique identifier for the project
Request body multipart/form-data
Example request
{
"filename": "report.pdf"
}Response
Text extracted successfully
Example response
{
"chunks": [
"First chunk of extracted text...",
"Second chunk..."
],
"text": "Complete document text extracted from the file..."
}Changes
No recorded changes to this operation across all 1 revision of this API.