Basic settings

Filters

Auto prefers published time and falls back to crawled time.

Output options

Extract query-relevant highlights from the content.

Billed via full_content_max_tokens.

import requests
import json

url = "https://api.aisearch.dev/v1/search"
headers = {
    "X-Api-Key": "",
    "Content-Type": "application/json",
}

payload = {
  "query": "",
  "search_type": "auto",
  "count": 5,
  "time_basis": "auto",
  "highlight": {
    "enable": true,
    "max_tokens": 300
  },
  "full_content": {
    "enable": false
  },
  "safesearch": "strict"
}

response = requests.post(url, headers=headers, json=payload)
data = response.json()
print(json.dumps(data, indent=2))