Skip to main content

Request

Let’s run a sample extraction with the Documind open-source package.

Parameters

Currently, only URLs are accepted. Ensure your document is hosted and accessible via a public URL.
string
required
The file URL.
object[]
required
The schema that defines the structure of the data you want to extract. Read more on how to define a schema.
string
The model you choose. Find the list of supported models here.
string
You can select a template schema that matches your document. [Template options] (/guides/templates/overview)
boolean | object
Use autoSchema to auto-generate your schema

Example Output

Once the extraction process is complete, the result will return a structured JSON object with the extracted data:
boolean
Indicates whether the extraction was successful or not.
number
The number of pages processed in the document.
object
The extracted data based on the schema.
string
The name of the processed file
string
The markdown of the file