Lodol Docs

Exa

API actions for the Exa integration.

Exa

Search, explore, and summarize web content using Exa.


Find similar pages

Find web pages that are similar to a page you provide.

Parameters

ParameterTypeRequiredDescription
urlstringYesThe web address (URL) of the page to find similar pages for.
num_resultsnumberNoHow many similar pages to return (1-100). Defaults to 10.

Response

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

Get page contents

Get the full text of one or more web pages by their web address.

Parameters

ParameterTypeRequiredDescription
urlsarrayYesThe web addresses (URLs) of the pages to read, such as those from an earlier search.

Response

{
  "contents": [
    {
      "id": "https://example.com/article",
      "text": "Full article content here...",
      "url": "https://example.com/article"
    }
  ]
}

Search the web

Search the web with Exa and get a list of matching pages.

Parameters

ParameterTypeRequiredDescription
querystringYesWhat to search for.
num_resultsnumberNoHow many results to return (1-100). Defaults to 10.
typestringNoHow Exa finds results. 'Automatic' lets Exa choose the best method, 'Meaning-based' matches by meaning, and 'Fast' is quicker but less thorough.
categorystringNoNarrow results to a specific type of page. Leave blank to search everything.
include_domainsarrayNoOnly show results from these websites (for example, nytimes.com).
exclude_domainsarrayNoLeave out results from these websites (for example, reddit.com).

Response

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

Summarize web pages

Summarize one or more web pages by their web address, focused on a question or topic you provide.

Parameters

ParameterTypeRequiredDescription
urlsarrayYesThe web addresses (URLs) of the pages to summarize, such as those from an earlier search.
querystringYesA question or topic to focus the summary on.

Response

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

On this page