UnSearch Docs

Python SDK

Official UnSearch Python SDK reference.

Python SDK

Installation

pip install unsearch

Quick Start

from unsearch import UnSearch

client = UnSearch(api_key="sk_live_...")

# Search
results = client.search(
    query="latest AI news",
    engines=["google", "bing"],
    max_results=10
)

# Extract content
content = client.extract("https://example.com")

# Agent search (Tavily-compatible)
answer = client.agent_search(
    query="What is RAG?",
    include_answer=True
)

Configuration

client = UnSearch(
    api_key="sk_live_...",
    base_url="https://api.unsearch.dev",  # or your self-hosted URL
    timeout=30,
)

Requirements

  • Python >= 3.9
  • httpx >= 0.24.0

On this page