Skip to content

Overview

Here is the list of different parameters you can use with DataClean's APIs.

ParameterDescription

text

stringrequired

The text content you want to extract information from. Can be any unstructured text.

api_key

stringrequired

Your api key

format

JSONrequired

JSON schema defining the structure of the data you want to extract.

type

stringrequiredenum

Source type of the document ("link" or "file")

attachment

stringrequired

URL or base64 encoded file content

extraction

stringrequiredenum

Desired output format ("text" or "json&"uot;)

structure

objectconditional

Required when extraction="json". Defines the JSON schema for extraction

prompt

stringoptional

Custom extraction instructions

logo

The easiest way to convert text to JSON