Configuration

Basic settings

Filters

Output options

import requests
import json

url = "https://api.octen.ai/search"
headers = {
  "X-Api-Key": "octen-345d••••••cc9f",
  "Content-Type": "application/json",
}

payload = {
  "query": "NVDA earnings",
  "topic": "general",
  "count": 5,
  "time_basis": "auto",
  "highlight": {"enable": True, "max_tokens": 512},
  "full_content": {"enable": False},
  "safesearch": "strict",
}

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