Create and setup your API key
Get your Exa API key
Create a .env file
Create a file called.env
in the root of your project and add the following line.
Make an API request
Use our python or javascript SDKs, or call the API directly with cURL.- Python
- JavaScript
- cURL
Install the python SDKs with pip. If you want to store your API key in a Once you’ve installed the SDKs, create a file called
.env
file, make sure to install the dotenv library.exa.py
and add the code below.- Search and crawl
- Answer
- Chat Completions
- Find similar links and get full text
Get a list of results and their full text content.
python