Build with Exa
Get started with Exa’s web search and contents APIs
Make your first API call in minutes
curl -X POST "https://api.exa.ai/search" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"query": "blog post about artificial intelligence",
"type": "auto"
"contents": {
"text": true,
}
}'
from exa_py import Exa
exa = Exa(api_key = "your-api-key")
result = exa.search_and_contents(
"blog post about artificial intelligence",
text = True,
type = "auto"
)
import Exa from 'exa-js';
const exa = new Exa("your-api-key");
const result = await exa.searchAndContents(
"blog post about artificial intelligence",
{
text: true,
type: "auto"
}
);