Skip to main content
POST
/
extract
Python
from qaip import Qaip

client = Qaip(
    api_key="My API Key",
)
response = client.extract(
    schema={},
)
print(response.created)
{
  "created": 123,
  "result": {}
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
schema
object
required

JSON Schema for the data to be extracted.

tags
string[]
tag_ids
string[]
source_types
enum<string>[]

The type of the source

Available options:
crawl,
local_file,
google_drive,
github,
notion
file_types
enum<string>[]

The type of the source file

Available options:
html,
pdf,
ppt,
pptx,
pptm,
doc,
docx,
docm,
xls,
xlsx,
xlsm,
md,
txt,
notion_page
date_from
integer

Start date for content search (Unix timestamp in seconds)

Required range: x >= 1735639200
date_to
integer

End date for content search (Unix timestamp in seconds)

Required range: x >= 1735639200
domains
string[]
limit
integer
default:10
Required range: 1 <= x <= 100
offset
integer
default:0
Required range: x >= 0
prompt
string

Additional prompt for the LLM (optional, if not specified, a default prompt in Japanese will be used).

Response

Successful extraction

created
integer
required

抽出実行時刻(Unix timestamp)

result
object
required

Extraction result as a JSON object conforming to the provided schema.