Exa API

Give your agents access to Exa API. Bring your own Exa key, or skip the signup and pay per call from your Composio balance with Composio Instant.

Exa logoExa
Instant

Exa is a data extraction and search platform for gathering and analyzing information from websites, APIs, or databases. It helps teams quickly surface insights and automate data-driven workflows.

64 Tools
COMPOSIO INSTANT

What is Composio Instant?

Composio Instant lets your agent use paid APIs like Exa without a separate account or API key for each one. New accounts start with $2 of free credit.

No Exa account or key

Your agent calls Exa through Composio, so there is nothing to sign up for, store, or rotate.

Pay per call, at cost

$0.007 per search, paid from your Composio balance with zero markup.

Works in any agent

Claude, ChatGPT, Cursor, and other MCP clients, or your own code with the Composio SDK.

Works with your apps

Use Exa with Gmail, Slack, Google Sheets, and 1,700+ other apps you connect.

AI ASSISTANTS

Connect the Exa API to your AI assistant

Use Exa from the AI assistant you already work in. Connect Composio once, then paste the prompt.

  1. 1

    Open the Connectors menu

    Use the button to open Claude's Add connector dialog with Composio filled in. Or click + in the message box, then Connectors, Add connector and Add custom connector.
    Add Composio to Claude
  2. 2

    Add the Composio MCP server

    Name it Composio, paste the MCP server URL and click Add.
    https://connect.composio.dev/mcp
  3. 3

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  4. 4

    Paste the prompt

    Start a new chat and paste the prompt. Claude runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio's plugin page in ChatGPT and click Install. Sign in to ChatGPT first if it asks.
    Install in ChatGPT
  2. 2

    Authorize in your browser

    Connect the plugin, then sign in to Composio to approve the connection.
  3. 3

    Turn on Composio in your chat

    In a new chat, click +, then More, and select Composio.
  4. 4

    Paste the prompt

    Paste the prompt into that chat. ChatGPT runs the call on Composio Instant.
  1. 1

    Install the Composio plugin

    Open Composio in the Cursor marketplace, click Install Composio Plugin for Cursor and approve the connection in your browser.
    Install in Cursor
  2. 2

    Paste the prompt

    Open the Agent chat and paste the prompt. Cursor runs the call on Composio Instant.
  1. 1

    Add the Composio plugin

    Open Composio's listing on x.ai and click Add to Grok Bot. When Grok Bot opens the plugin, click Add.
    Add to Grok Bot
  2. 2

    Authenticate

    Go to Installed, open Composio and click Authenticate. Sign in to Composio and click Authorize.
  3. 3

    Paste the prompt

    Paste the prompt into your bot's chat. Grok Bot runs the call on Composio Instant.
  1. 1

    Paste the setup prompt

    Copy this into your Hermes chat. Hermes adds the Composio MCP server for you.
    Set up Composio from composio.dev/hermes
  2. 2

    Authorize in your browser

    A browser window opens. Sign in to Composio to approve the connection.
  3. 3

    Paste the prompt

    Start a new chat and paste the prompt. Hermes runs the call on Composio Instant.
ClaudeNew chat

Paste this prompt

Use Exa through Composio Instant to find five guides on evaluating AI browser agents. Return the title and URL for each result.

What success looks like

EXA_SEARCH

Your assistant runs Exa and replies with a list of sources: a title and URL for each of the five results.

Runs on Composio Instant
SDK

Use the Exa API in your code

Call Exa from your own agent with the Composio SDK. Four steps and one tool call.

  1. 1

    Set up Composio

    Turn on Instant Toolkits in your project settings and check your prepaid balance in Billing. Then set your API key.
    export COMPOSIO_API_KEY="your_composio_api_key"
  2. 2

    Install the SDK

    The Python SDK needs Python 3.11 through 3.15.
    pip install composio
  3. 3

    Run the call

    Create a session that keeps Instant to this toolkit and reports the charge, then run the tool on the Instant account.
    EXA_SEARCH
  4. 4

    Read the response

    When the call runs on Instant, the response includes its charge: the amount as an exact USD decimal string, the currency and charged_by.
agent.py
from composio import Composio

composio = Composio()

session = composio.sessions.create(
    user_id="user_123",
    toolkits=["exa"],
    instant={
        "toolkits": {"enable": ["exa"]},
        "return_instant_charge": True,
    },
)

result = session.execute(
    "EXA_SEARCH",
    arguments={
        "query": "guides on evaluating AI browser agents",
        "numResults": 5,
    },
    account="instant_account",
)
print(result)
print("Instant charge:", result.instant_charge)
TOOLS

Available Exa API tools

3 Exa tools run on Instant, priced per call with no Exa key. Tools marked Your key need your own Exa account.

ActionTool slugWhat it doesAvailability
SearchEXA_SEARCHFind and rank web pages for a query.
Instant$0.007 per search
Get ContentsEXA_GET_CONTENTS_ACTIONRetrieve text, highlights, or summaries for selected pages.
Instant$0.001 per page per content type
AnswerEXA_ANSWERGenerate an answer with citations to web sources.
Instant$0.005 per answer
Create WebsetEXA_CREATE_WEBSETBuild a list of results that match your criteria.Your key
Create Webset EnrichmentEXA_CREATE_WEBSET_ENRICHMENTAdd fields to the results in a Webset.Your key
Create Search MonitorEXA_CREATE_SEARCH_MONITORSchedule searches to track new results.Your key
Create Agent RunEXA_CREATE_AGENT_RUNStart an extended research task.Your key

Instant prices are Exa's list prices with 0% markup, paid from your Composio balance and updated every hour. Instant calls also count toward your plan's tool calls. See all plans on the pricing page.

USE CASES

Exa API use cases and example prompts

Copy a prompt into your agent. Each one uses Exa with apps you connect through Composio.

  • Turn web research into a team brief

    Use Exa to find five credible sources on how teams evaluate AI agents. Read the two most relevant pages and add their titles, URLs, and key findings to my Research Tracker in Google Sheets. Post a three-bullet summary with a link to the sheet in Slack's #research channel.

    Apps used: Exa, Google Sheets, Slack

  • Build a knowledge base from official sources

    Use Exa Answer to explain how OAuth refresh tokens work. Cite official documentation and include a short example. Save the explanation as a page in my Engineering Handbook in Notion.

    Apps used: Exa, Notion

  • Research accounts and draft outreach

    Find Acme's company record in HubSpot. Use Exa to look for recent product announcements on its official website. If you find a relevant announcement, create a Gmail draft that explains why it's a good reason to reach out. Include the source link in a HubSpot note and leave the draft ready for review.

    Apps used: Exa, HubSpot, Gmail

  • Track competitor launches

    Create a weekly Exa Search Monitor for product launches from the companies on my watchlist. Send new results to my existing webhook workflow so it can post a digest in #competitive-intel and log each announcement's date, company, and source URL in Google Sheets.

    Apps used: Exa, Slack, Google Sheets

TROUBLESHOOTING

Exa API troubleshooting

Still stuck? The Instant tools docs cover limits, charges and session settings.

Start with Exa.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Exa tool your agent needs.Free to start.

Start building