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

client = Qaip(
    api_key="My API Key",
)
response = client.search(
    query="machine learning and artificial intelligence",
)
print(response.created)
{
  "created": 1677649420,
  "results": [
    {
      "id": "<string>",
      "text": "<string>",
      "url": "<string>",
      "title": "<string>",
      "timestamp": 123,
      "file_type": "html",
      "page_number": 0,
      "source_type": "crawl",
      "keywords": [
        "<string>"
      ]
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for authentication

Body

application/json
query
string
required

Search query string

Example:

"machine learning and artificial intelligence"

tags
string[]

target tag names to be obtained

tag_ids
string[]

target tag IDs to be obtained

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
Example:

1735639200

date_to
integer

End date for content search (Unix timestamp in seconds)

Required range: x >= 1735639200
Example:

1735639200

domains
string[]

Array of domains to search within (supports partial matching)

Example:
["example.com", "blog.example.com"]
limit
integer
default:10

Maximum number of results to return

Required range: 1 <= x <= 100
Example:

10

offset
integer
default:0

Number of results to skip

Required range: x >= 0
Example:

0

Response

Successful search results

created
integer
required

The Unix timestamp (in seconds) of when the search was performed

Example:

1677649420

results
object[]
required

Array of search results