Data

Extract text from a file URL

Download a file from a public URL and extract its text content. Supports PDF, DOCX, XLSX, PPTX, HTML, and plain text. Set chunking: true to split the output into fixed-size chunks (default 4000 chars, minimum 1000) — useful for embedding pipelines.

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

Request

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

Path parameters

project_idstring required
Example:my-project-123

Unique identifier for the project

Request body

urlstring uri required

Public URL of the file to extract data from

chunkingboolean

Whether to split text into chunks. If false, returns single text string.

chunkSizeinteger

Size of each chunk in characters (minimum 1000). Only used when chunking=true.

Example request

{
  "url": "https://example.com/document.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.