build-with-exa
Build applications and agents with Exa's API Platform: search, contents, answer, context, Agent API, monitors, websets, OpenAI-compatible endpoints, and exa-py / exa-js. Use when choosing Exa endpoints, writing Exa API calls, integrating semantic web search or research into products, or debugging Exa request shapes. Load references/ on demand for endpoint details.
- License 许可
- MIT
- 最近更新
- 2026-10-20
- Stars
- ★ 35
- Forks
- 5
01 前言 Front Matter
- name
- build-with-exa
- author
- Exa Labs (ported by mktg)
- license
- MIT
- version
- 0.1.0
- metadata
- { "openclaw": { "emoji": "?" } }
- description
- Build applications and agents with Exa's API Platform: search, contents, answer, context, Agent API, monitors, websets, OpenAI-compatible endpoints, and exa-py / exa-js. Use when choosing Exa endpoints, writing Exa API calls, integrating semantic web search or research into products, or debugging Exa request shapes. Load references/ on demand for endpoint details.
- allowed-tools
- [ "Bash", "Read", "Write", "Edit", "Skill" ]
- user-invocable
- true
02 资源文件 13
- 参考文档references/agent.md7.8 KB
- 参考文档references/answer.md3.1 KB
- 参考文档references/common-mistakes.md2.5 KB
- 参考文档references/contents.md4.2 KB
- 参考文档references/context.md3.2 KB
- 参考文档references/http-requests.md4.0 KB
- 参考文档references/models-and-modes.md2.4 KB
- 参考文档references/monitors.md4.0 KB
- 参考文档references/openai-compat.md3.3 KB
- 参考文档references/prompting-and-patterns.md5.7 KB
- 参考文档references/sdks.md4.5 KB
- 参考文档references/search.md8.1 KB
- 参考文档references/websets.md4.7 KB
03 SKILL.md 正文
On Activation
- Confirm
EXA_API_KEYis available for any live API call. SDK examples assume the key is set. - Default new integrations to
POST /searchwithtype: "auto"andcontents.highlights: true. Escalate to Agent API only for multi-step research / list-building. - Load only the
references/*.mdfile needed for the current endpoint - do not dump the whole tree into context. - For agent-native marketing research inside mktg projects, prefer
exa-search,company-research, orlead-generationover inventing a custom integration.
Build with Exa
Scope
Included by default:
- Core retrieval APIs: search endpoint, contents endpoint, answer endpoint, context endpoint
- Long-running research workflows: Agent API (
/agent) - Async and recurring workflows: Monitors API, Websets API
- SDK guidance: Python
exa-py, TypeScriptexa-js
Note on data retention:
/search,/answer, and deep research are Zero Data Retention (ZDR). The Agent API (/agent), Websets, and Monitors are not ZDR. If a use case requires ZDR, stay on the ZDR surfaces or contact Exa.
Installation
# Python
pip install exa-py
# TypeScript / JavaScript
npm install exa-js
Authentication
export EXA_API_KEY="your_api_key_here"
Exa accepts either the x-api-key header or Authorization: Bearer <key>.
API Decision Workflow
Before picking an endpoint, decide which workflow shape fits:
- Raw web content for your own LLM or agent: start with
/searchusingtype: "auto"andcontents: { highlights: true } - Synthesized structured output: start with
/searchusing the search type that fits your latency and reasoning needs, then addoutputSchemaandsystemPrompt - Long-running multi-step research, list-building, or enrichment with structured output: use the Agent API (
/agent)
Default to the search endpoint. Use the search endpoint (/search) for most new integrations, then move to a more specialized Exa surface only when the task shape clearly calls for it.
- Need general semantic web retrieval, synthesized output, filters, or content extraction from search results: use the search endpoint (
/search) - Already know the URLs and need clean page extraction or freshness controls: use the contents endpoint (
/contents) - Need pages related to a known seed URL: use the search endpoint (
/search) with a query derived from the page (for example title, topic, or text from/contents) - Need a grounded answer with citations from Exa-managed search: use the answer endpoint (
/answer) - Need code-focused retrieval from repos, docs, and Stack Overflow: use the context endpoint (
/context) - Need OpenAI SDK drop-in compatibility for chat or responses clients: use the OpenAI-compatible endpoints (
/chat/completions,/responses) - Need asynchronous multi-step research, list-building, enrichment, or follow-up questions over prior research: use the Agent API (
/agent) - Need scheduled recurring search with webhook delivery: use the Monitors API (
/monitors) - Need async verified and enriched entity collection workflows: use the Websets API (
/websets/v0)
Quick Start
For more complete examples, see the relevant reference file in the table below.
Python (/search):
from exa_py import Exa
exa = Exa(api_key="YOUR_EXA_API_KEY")
result = exa.search(
"latest developments in LLMs",
type="auto",
contents={"highlights": True}
)
for item in result.results:
print(item.title, item.url)
TypeScript (/search):
import Exa from "exa-js";
const exa = new Exa();
const result = await exa.search("latest developments in LLMs", {
type: "auto",
contents: { highlights: true }
});
for (const item of result.results) {
console.log(item.title, item.url);
}
Raw HTTP (/search):
curl -X POST "https://api.exa.ai/search" \
-H "Content-Type: application/json" \
-H "x-api-key: $EXA_API_KEY" \
-d '{
"query": "latest developments in LLMs",
"type": "auto",
"contents": {
"highlights": true
}
}'
Anti-Patterns
- On the search endpoint,
text,highlights, andsummarybelong insidecontents, not at the top level. - On the contents endpoint,
text,highlights, andsummaryare top-level fields, not nested insidecontents. - Pick one of
highlights,text, orsummaryby default. Do not stack them unless the use case truly needs multiple views of the same page. numSentencesandhighlightsPerUrlare deprecated highlight knobs. Preferhighlights: true, or setmaxCharactersonly when you have a fixed budget.- Prefer
maxAgeHoursfor freshness guidance. Olderlivecrawlexamples still exist, butmaxAgeHoursis the normative control for new integrations. - Stick to the documented
categoryset and do not invent categories likegithub,documentation,qa, orpdf. Specialized categories such aspeopleandcompanyalso restrict which filters are valid; check the search reference before combining categories with domain or date filters. - OpenAI-compatible endpoints are for compatibility-first use cases. Prefer native Exa endpoints for new integrations when you want clearer request semantics.
- Do not treat
/agentas a drop-in replacement for/search. It is higher-latency and async, so use the dedicated Agent reference when that workflow shape is the real fit. Consider using it over websets or deep where appropriate. - Treat
/research/v1as legacy. Do not present it as the default for new work. - Treat
/findSimilaras deprecated. Prefer/search(optionally after/contentson the seed URL) for related-page discovery.
Reference Files
| File | Topics |
|---|---|
| references/search.md | Search endpoint request/response shape, search types, filters, nested contents, structured output |
| references/contents.md | Contents endpoint extraction, freshness, statuses, top-level content fields |
| references/answer.md | Grounded answer generation with citations and structured output |
| references/context.md | Code-focused retrieval with tokensNum |
| references/agent.md | Agent API for async multi-step research, enrichment, structured output, polling, and events |
| references/openai-compat.md | OpenAI-compatible endpoints, model routing, extra_body usage |
| references/monitors.md | Standalone Monitors API for scheduled recurring search |
| references/websets.md | Websets API for async verified and enriched collection building |
| references/sdks.md | Python and TypeScript SDK naming, methods, and shape differences |
| references/http-requests.md | Minimal raw HTTP examples across major Exa surfaces |
| references/models-and-modes.md | Search type selection, answer/research model routing, latency tradeoffs |
| references/prompting-and-patterns.md | Durable query, prompting, freshness, and output-schema patterns |
| references/common-mistakes.md | Parameter-shape corrections |
Canonical Docs
- Docs home:
https://exa.ai/docs - Documentation index:
https://exa.ai/docs/llms.txt - Search reference:
https://exa.ai/docs/reference/search - Agent API guide:
https://exa.ai/docs/reference/agent-api-guide - Exa Connect overview:
https://exa.ai/docs/reference/agent-api/connect/overview - Python SDK spec:
https://exa.ai/docs/sdks/python-sdk-specification - TypeScript SDK spec:
https://exa.ai/docs/sdks/typescript-sdk-specification
Attribution
Ported from exa-labs/agent-skills - adapted for mktg's drop-in contract on 2026-07-18.
Upstream commit: 390ffee2d7e1d0dce2ed8efe4994c2b3c1c0173b
Drift detection: if the upstream skill changes, re-run mktg-steal https://github.com/exa-labs/agent-skills to evaluate the diff.
04 同仓库更多 Skills
cmo-studio-integration
When mktg-studio is running on this machine, /cmo proactively narrates work into the dashboard via Bash + curl against the localhost HTTP API. Detect via /api/health, then log every meaningful action — the user sees what /cmo is doing in real time.
voice-extraction
Reverse-engineer any person's writing voice from their content. Paste in posts, articles, tweets, or essays and this skill launches 10 parallel Sonnet subagents to analyze every dimension of the voice, then synthesizes into a voice file. Use when someone says 'match this voice,' 'analyze this writing,' 'extract their voice,' 'make me sound like this,' 'study this person's writing,' or pastes in content they want to learn from.
visual-style
Build a persistent visual brand identity for image generation. Defines how the brand looks visually — aesthetic, lighting, composition, mood — and writes it to brand/creative-kit.md so /image-gen and other creative skills produce consistent on-brand visuals. Three modes: Extract (from website/URL), Build (interview), Reference (mood board/examples). Use when starting any project that needs images, when the user says "visual style", "brand aesthetic", "image style", "visual identity", "how should our images look", "build visual brand", "define our look", or when /image-gen outputs feel generic because no visual style exists yet.
video-content
Three-tier video pipeline: ffmpeg Quick (5s, instant) → ffmpeg Enhanced with Ken Burns (15s, polished) → Remotion Animated (60-90s, production-grade). Takes static slides from Paper MCP or any PNGs and assembles them into platform-ready video. Make sure to use this skill whenever the user has slides, images, or PNGs and wants to turn them into video — even if they just say 'make a video from these', 'animate my slides', 'I have images and need a TikTok', or 'stitch these together'. Also use when they mention ffmpeg video assembly, Remotion-animated slide assembly, Ken Burns effects, or any slides-to-video pipeline. Owns the slides→MP4 assembly pipeline; for writing, debugging, or running `remotion render` on Remotion code itself, see /remotion-best-practices; for screen-recorded product demos, see /marketing-demo. Works with any PNG source — Paper exports, Canva, screenshots, anything.
typefully
Create, schedule, and manage social media posts via Typefully. ALWAYS use this skill when asked to draft, schedule, post, or check tweets, posts, threads, or social media content for Twitter/X, LinkedIn, Threads, Bluesky, or Mastodon.
tiktok-slideshow
Orchestrator skill that chains /slideshow-script → /paper-marketing → /video-content for end-to-end TikTok slideshow production. Each phase is an independent Lego block — this orchestrator is just one recipe that combines them. Produces 5 publishable TikTok videos from a single positioning angle. Triggers on "TikTok slideshow", "TikTok video", "make TikTok", "slideshow video", "TikTok content".