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
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The web address (URL) of the page to find similar pages for. |
num_results | number | No | How 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
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | Yes | The 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
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | What to search for. |
num_results | number | No | How many results to return (1-100). Defaults to 10. |
type | string | No | How Exa finds results. 'Automatic' lets Exa choose the best method, 'Meaning-based' matches by meaning, and 'Fast' is quicker but less thorough. |
category | string | No | Narrow results to a specific type of page. Leave blank to search everything. |
include_domains | array | No | Only show results from these websites (for example, nytimes.com). |
exclude_domains | array | No | Leave 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
| Parameter | Type | Required | Description |
|---|---|---|---|
urls | array | Yes | The web addresses (URLs) of the pages to summarize, such as those from an earlier search. |
query | string | Yes | A question or topic to focus the summary on. |
Response
{
"summary": "This is a summary of the requested documents..."
}