exa-contents
БесплатноБез исполняемых скриптовНе проверенCall Exa Contents directly with cURL or raw HTTP. Use when an agent already has URLs and needs POST /contents without an SDK for extracted text, highlights…
от exa-labs★ 77 звёзд на GitHubОб этом скилле
Exa Contents
Requires API key: Get one at https://dashboard.exa.ai/api-keys
Header:
x-api-key: $EXA_API_KEY
Use POST https://api.exa.ai/contents when the agent already knows the URLs and needs clean, LLM-ready extraction without running a new search. Start with one content mode: highlights for compact agent context, text for broad page context, or summary for Exa-side compression.
Quick Start (cURL)
Basic text extraction
curl -sS -X POST "https://api.exa.ai/contents" \
-H "Content-Type: application/json" \
-H "x-api-key: $EXA_API_KEY" \
-d '{
"urls": ["https://example.com"],
"text": true
}'
Highlights with freshness control
curl -sS -X POST "https://api.exa.ai/contents" \
-H "Content-Type: application/json" \
-H "x-api-key: $EXA_API_KEY" \
-d '{
"urls": ["https://arxiv.org/abs/2307.06435"],
"highlights": {
"query": "methodology and results"
},
"maxAgeHours": 24,
"livecrawlTimeout": 12000
}'
Endpoint
POST https://api.exa.ai/contents
Authentication: x-api-key: <API_KEY> header. Exa also accepts Authorization: Bearer <API_KEY>, but prefer x-api-key in cURL examples for consistency.
Use this endpoint for known-URL extraction. If the agent needs discovery or ranking first, use POST /search.
Parameters
Core request parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
urls |
string[] | Yes | - | URLs to extract content from. Use this for known URLs. |
text |
boolean or object | No | - | Return full page text as markdown. Object form supports maxCharacters, includeHtmlTags, verbosity, includeSections, and excludeSections. |
highlights |
boolean or object | No | - | Return key excerpts. Prefer true for agent workflows unless a custom focus is needed. |
summary |
boolean or object | No | - | Return per-page LLM summaries. Use when the caller wants Exa-side compression or structured extraction. |
maxAgeHours |
integer | No | - | Freshness control. 0 always live crawls; -1 uses cache only; omit for default cache-first behavior with crawl fallback. |
livecrawlTimeout |
integer | No | 10000 |
Timeout for live crawling in milliseconds. Use 10000 to 15000 for most freshness-sensitive calls. |
subpages |
integer | No | 0 |
Number of linked subpages to crawl from each URL. |
subpageTarget |
string or string[] | No | - | Terms used to prioritize which subpages matter, such as ["api", "reference", "pricing"]. |
extras.links |
integer | No | 0 |
Number of links to extract from each page. |
extras.imageLinks |
integer | No | 0 |
Number of image URLs to extract from each page. |
compliance |
string | No | - | Enterprise-only compliance mode, such as hipaa, when enabled for the account. |
Text object options
| Parameter | Type | Default | Description |
|---|---|---|---|
maxCharacters |
integer | - | Character limit for returned text. Use this instead of tokensNum. |
includeHtmlTags |
boolean | false |
Preserve HTML tags in output. |
verbosity |
string | compact |
compact, standard, or full. Pair fresh section-aware extraction with maxAgeHours: 0. |
includeSections |
string[] | - | Only include selected sections: header, navigation, banner, body, sidebar, footer, metadata. |
excludeSections |
string[] | - | Exclude selected sections from the same section list. |
Highlights object options
Prefer highlights: true for the highest-quality default. Only use object form when the agent needs a custom focus or budget.
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | - | Custom query guiding which excerpts are returned. |
maxCharacters |
integer | - | Cap highlight characters per URL. Omit unless the caller has a strict budget. |
Summary object options
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
string | - | Custom query for the summary. |
schema |
object | - | JSON Schema for structured per-page summaries. |
Content Modes
On /contents, text, highlights, and summary are top-level request fields.
| Mode | Best for | Notes |
|---|---|---|
text |
Deep analysis and broad page context | Use maxCharacters to keep payloads bounded. |
highlights |
Agent workflows and factual lookups | Most token-efficient default. Excerpts are grounded in the source page. |
summary |
Compression or structured per-page extraction | Adds Exa-side synthesis per page. |
Avoid requesting multiple modes unless the caller truly needs multiple views of the same page.
Freshness and Crawling
Use maxAgeHours as the normative freshness control.
| Value | Behavior |
|---|---|
| omitted | Use default cache-first behavior with crawl fallback when needed. |
| positive integer | Use cache if it is less than |
Установить exa-contents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл exa-contents?
Call Exa Contents directly with cURL or raw HTTP. Use when an agent already has URLs and needs POST /contents without an SDK for extracted text, highlights, summaries, links, image links, subpages, freshness-controlled crawling, or per-URL status handling.
Как установить скилл exa-contents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл exa-contents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic