Lodol Docs

Exa

API actions for the Exa integration.

Exa

Search, explore, and summarize web content using Exa.


Find similar content

Find content similar to a given URL.

Parameters

ParameterTypeRequiredDescription
urlstringYesThe URL to find similar content for.
num_resultsnumberNoNumber of similar results to return (default 10).

Response

{
  "results": [
    {
      "id": "similar-123",
      "score": 0.87,
      "title": "Related Article",
      "url": "https://similar-site.com/article"
    }
  ]
}

Get contents

Retrieve the full content of documents by their IDs.

Parameters

ParameterTypeRequiredDescription
content_idsarrayYesList of content IDs to retrieve.

Response

{
  "results": [
    {
      "id": "result-123",
      "text": "Full article content here...",
      "url": "https://example.com/article"
    }
  ]
}

Search the web

Search the web using Exa's neural search API.

Parameters

ParameterTypeRequiredDescription
querystringYesThe search query.
num_resultsnumberNoNumber of results to return (default 10).
include_domainsarrayNoOptional list of domains to include.
exclude_domainsarrayNoOptional list of domains to exclude.

Response

{
  "results": [
    {
      "id": "result-123",
      "score": 0.95,
      "title": "Example Article",
      "url": "https://example.com/article"
    }
  ]
}

Summarize contents

Generate a summary of content documents based on a query.

Parameters

ParameterTypeRequiredDescription
content_idsarrayYesList of content IDs to summarize.
querystringYesThe query to guide the summary.

Response

{
  "summary": "This is a summary of the requested documents..."
}

On this page