exa-py 2.10.2


pip install exa-py

  Latest version

Released: Mar 26, 2026

Project Links

Meta
Author: Exa AI
Requires Python: >=3.9

Classifiers

License
  • OSI Approved :: MIT License

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Exa Python SDK

PyPI version

The official Python SDK for Exa, the web search API for AI.

Documentation | Dashboard

Install

pip install exa-py

Requires Python 3.9+

Quick Start

from exa_py import Exa

exa = Exa(api_key="your-api-key")

# Search the web
results = exa.search(
    "blog post about artificial intelligence",
    type="auto",
    contents={"highlights": True}
)

# Ask a question
response = exa.answer("What is the capital of France?")

Search

results = exa.search(
    "machine learning startups",
    contents={"highlights": True}
)
results = exa.search(
    "climate tech news",
    num_results=20,
    start_published_date="2024-01-01",
    include_domains=["techcrunch.com", "wired.com"],
    contents={"highlights": True}
)
results = exa.search(
    "What are the latest battery breakthroughs?",
    type="deep",
    system_prompt="Prefer official sources and avoid duplicate results",
    output_schema={
        "type": "object",
        "properties": {
            "summary": {"type": "string"},
            "key_companies": {"type": "array", "items": {"type": "string"}},
        },
        "required": ["summary", "key_companies"],
    },
)
print(results.output.content if results.output else None)

Deep output_schema modes:

  • {"type": "text", "description": "..."}: return plain text in output.content
  • {"type": "object", ...}: return structured JSON in output.content

Deep search also supports system_prompt to guide both the search process and the final returned result, for example by preferring certain sources, emphasizing novel findings, avoiding duplicates, or constraining output style.

For type: "object", deep search currently enforces:

  • max nesting depth: 2
  • max total properties: 10

Deep search variants:

  • deep: light mode
  • deep-reasoning: base reasoning mode

Contents

results = exa.get_contents(
    ["https://docs.exa.ai"],
    text=True
)
results = exa.get_contents(
    ["https://arxiv.org/abs/2303.08774"],
    highlights=True
)

Answer

response = exa.answer("What caused the 2008 financial crisis?")
print(response.answer)
for chunk in exa.stream_answer("Explain quantum computing"):
    print(chunk, end="", flush=True)

Async

from exa_py import AsyncExa

exa = AsyncExa(api_key="your-api-key")

results = await exa.search("async search example", contents={"highlights": True})

More

See the full documentation for all features including websets, filters, and advanced options.

2.10.2 Mar 26, 2026
2.10.1 Mar 25, 2026
2.10.0 Mar 23, 2026
2.9.0 Mar 13, 2026
2.8.1 Mar 10, 2026
2.8.0 Mar 10, 2026
2.7.1 Mar 10, 2026
2.7.0 Mar 04, 2026
2.6.1 Feb 27, 2026
2.6.0 Feb 27, 2026
2.5.0 Feb 25, 2026
2.4.0 Feb 10, 2026
2.3.0 Feb 01, 2026
2.2.0 Jan 27, 2026
2.1.1 Jan 22, 2026
2.1.0 Jan 22, 2026
2.0.2 Dec 19, 2025
2.0.1 Nov 21, 2025
2.0.0 Oct 28, 2025
1.16.1 Oct 09, 2025
1.16.0 Oct 08, 2025
1.15.6 Sep 10, 2025
1.15.5 Sep 05, 2025
1.15.4 Aug 29, 2025
1.15.3 Aug 25, 2025
1.15.2 Aug 23, 2025
1.15.1 Aug 21, 2025
1.15.0 Aug 21, 2025
1.14.20 Jul 30, 2025
1.14.19 Jul 29, 2025
1.14.18 Jul 21, 2025
1.14.17 Jul 17, 2025
1.14.16 Jul 10, 2025
1.14.15 Jul 03, 2025
1.14.14 Jul 02, 2025
1.14.13 Jun 27, 2025
1.14.12 Jun 24, 2025
1.14.11 Jun 23, 2025
1.14.10 Jun 21, 2025
1.14.9 Jun 18, 2025
1.14.8 Jun 21, 2025
1.14.7 Jun 17, 2025
1.14.6 Jun 09, 2025
1.14.5 Jun 07, 2025
1.14.4 Jun 07, 2025
1.14.3 Jun 06, 2025
1.14.2 Jun 04, 2025
1.14.1 Jun 03, 2025
1.14.0 Jun 01, 2025
1.13.2 May 31, 2025
1.13.1 May 14, 2025
1.13.0 May 10, 2025
1.12.5 May 29, 2025
1.12.4 May 28, 2025
1.12.3 May 15, 2025
1.12.1 Apr 18, 2025
1.12.0 Apr 13, 2025
1.11.0 Apr 04, 2025
1.10.0 Mar 31, 2025
1.9.1 Mar 21, 2025
1.9.0 Mar 11, 2025
1.8.9 Feb 18, 2025
1.8.8 Feb 06, 2025
1.8.7 Jan 30, 2025
1.8.6 Jan 30, 2025
1.8.5 Jan 24, 2025
1.8.4 Jan 22, 2025
1.8.3 Jan 22, 2025
1.7.3 Jan 21, 2025
1.7.2 Jan 14, 2025
1.7.1 Dec 25, 2024
1.7.0 Nov 26, 2024
1.6.0 Nov 05, 2024
1.5.2 Nov 01, 2024
1.5.1 Oct 29, 2024
1.5.0 Oct 28, 2024
1.4.1b0 Oct 15, 2024
1.4.0 Oct 04, 2024
1.3.1b0 Oct 03, 2024
1.3.0b0 Oct 03, 2024
1.2.1 Oct 01, 2024
1.2.0 Oct 01, 2024
1.1.8 Sep 26, 2024
1.1.7 Sep 17, 2024
1.1.6 Sep 17, 2024
1.1.5 Sep 17, 2024
1.1.4 Sep 14, 2024
1.1.3 Sep 13, 2024
1.1.2 Sep 13, 2024
1.1.1 Sep 13, 2024
1.1.0 Sep 07, 2024
1.0.18 Aug 16, 2024
1.0.18b1 Aug 28, 2024
1.0.17 Jul 29, 2024
1.0.16 Jul 16, 2024
1.0.15 Jul 16, 2024
1.0.14 Jul 14, 2024
1.0.13 Jul 08, 2024
1.0.12 May 26, 2024
1.0.11 May 24, 2024
1.0.10 May 24, 2024
1.0.9 Mar 12, 2024
1.0.8 Feb 05, 2024
1.0.7 Jan 25, 2024
1.0.6 Jan 25, 2024
1.0.5 Jan 25, 2024
1.0.2 Jan 23, 2024
1.0.1 Jan 23, 2024
1.0.0 Jan 23, 2024

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras: None
Dependencies:
httpcore (>=1.0.9)
httpx (>=0.28.1)
openai (>=1.48)
pydantic (>=2.10.6)
python-dotenv (>=1.0.1)
requests (>=2.32.3)
typing-extensions (>=4.12.2)