Once you’ve installed the SDKs, create a file called exa.py and add the code below.
Get a list of results and their full text content.
python
Copy
Ask AI
from exa_py import Exafrom dotenv import load_dotenvimport os# Use .env to store your API key or paste it directly into the codeload_dotenv()exa = Exa(os.getenv('EXA_API_KEY'))result = exa.search_and_contents( "An article about the state of AGI", type="auto", text=True,)print(result)