Skip to main content
Recommended: Skip the docs and try our Coding Agent Quickstart — get set up in under a minute.
  1. 1
    Install the SDK

    Install the Python SDK with pip.

    pip install exa-py
    
  2. 2
    Create your code

    Get your API key from the Exa Dashboard, create a file called exa.py, and add the code below.

    python
    from exa_py import Exa
    
    exa = Exa(api_key="your-api-key")
    
    result = exa.get_contents(
      ["tesla.com"],
      highlights={"max_characters": 4000}
    )