Data

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.

post/api/data/{project_id}/extract-from-blob

Request

  • Base URL
    https://core.blink.new
  • URL
    https://core.blink.new/api/data/{project_id}/extract-from-blob
  • Auth
    HTTP bearer

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body multipart/form-data

filestring binary required

The file to extract text from (PDF, DOCX, XLSX, PPTX, TXT, HTML, etc.)

filenamestring

Optional filename hint for better format detection

chunking'true' | 'false'

Pass "true" to split extracted text into chunks

chunkSizestring

Chunk size in characters as a string (minimum "1000"). Only used when chunking="true"

Example request

{
  "filename": "report.pdf"
}

Response

Text extracted successfully

chunksstring[]

Array of text chunks (when chunking=true)

textstring

Complete extracted text as single string (when chunking=false)

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.