Skip to main content
Exa is a powerful web search API that provides real-time access to current web information. It allows AI agents to search the internet and retrieve up-to-date information on any topic, making it an essential tool for agents that need current knowledge beyond their training data. Key features of Exa:
FeatureDescription
Real-time searchAccess the latest information from the web
Semantic searchFind relevant results using natural language queries
Comprehensive coverageSearch across billions of web pages
Structured resultsGet clean, formatted search results for easy processing
API integrationSimple REST API for seamless integration with AI applications

Install

pip3 install -U swarms swarms-tools

ENV

# Get your API key from exa
EXA_SEARCH_API=""

OPENAI_API_KEY=""

WORKSPACE_DIR=""

Code

from swarms import Agent
from swarms_tools import exa_search


agent = Agent(
    name="Exa Search Agent",
    llm="gpt-5.4",
    tools=[exa_search],
)

out = agent.run("What are the latest experimental treatments for diabetes?")
print(out)