Quickstart
Make your first request to one of Exa’s API endpoints
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.
Install the python SDKs with pip. If you want to store your API key in a .env
file, make sure to install the dotenv library.
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.
Get a list of results and their full text content.
Get an answer to a question, grounded by citations from exa.
Get a chat completion from exa.
Find similar links to a given URL and get the full text for each link.
Install the python SDKs with pip. If you want to store your API key in a .env
file, make sure to install the dotenv library.
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.
Get a list of results and their full text content.
Get an answer to a question, grounded by citations from exa.
Get a chat completion from exa.
Find similar links to a given URL and get the full text for each link.
Install the javascript SDK with npm. If you want to store your API key in a .env
file, make sure to install the dotenv library.
Once you’ve installed the SDK, create a file called exa.ts
and add the code below.
Get a list of results and their full text content.
Get a list of results and their full text content.
Get an answer to a question, grounded by citations from exa.
Get a chat completion from exa.
Find similar links to a given URL and get the full text for each link.
Pass one of the following commands to your terminal to make an API request.
Get a list of results and their full text content.
Get a list of results and their full text content.
Get an answer to a question, grounded by citations from exa.
Get a chat completion from exa.