Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create a minimal working Exa search example with real results. Use when starting a new Exa integration, testing your setup, or learning basic search, searchAndContents, and findSimilar patterns. Trigger with phrases like "exa hello world", "exa example", "exa quick start", "simple exa search", "first exa query".
.claude/skills/jeremylongshore-exa-hello-world/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 58% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 64% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-22 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-01 | ✓→✓ | = Same ✓ | 74% | 0% |
Minimal working examples demonstrating all core Exa search operations: basic search, search with contents, find similar, and get contents. Each example is runnable standalone.
exa-js SDK installed (npm install exa-js)EXA_API_KEY environment variable settypescriptimport Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); // Basic search returns URLs, titles, and scores — no page content const results = await exa.search("best practices for building RAG pipelines", { type: "auto", // auto | neural | keyword | fast | instant numResults: 5, }); for (const r of results.results) { console.log(`[${r.score.toFixed(2)}] ${r.title}`); console.log(` ${r.url}`); }
typescript// searchAndContents returns text, highlights, and/or summary with each result const results = await exa.searchAndContents( "how transformers work in large language models", { type: "neural", numResults: 3, text: { maxCharacters: 1000 }, highlights: { maxCharacters: 500, query: "attention mechanism" }, summary: { query: "explain transformers simply" }, } ); for (const r of results.results) { console.log(`## ${r.title}`); console.log(`URL: ${r.url}`); console.log(`Summary: ${r.summary}`); console.log(`Text preview: ${r.text?.substring(0, 200)}...`); console.log(`Highlights: ${r.highlights?.join(" | ")}`); console.log(); }
typescript// findSimilar takes a URL and returns semantically similar pages const similar = await exa.findSimilarAndContents( "https://arxiv.org/abs/2301.00234", { numResults: 5, text: { maxCharacters: 500 }, excludeSourceDomain: true, } ); console.log("Pages similar to the seed URL:"); for (const r of similar.results) { console.log(` ${r.title} — ${r.url}`); }
typescript// getContents retrieves page content for specific URLs const contents = await exa.getContents( ["https://example.com/article-1", "https://example.com/article-2"], { text: { maxCharacters: 2000 }, highlights: { maxCharacters: 500 }, livecrawl: "preferred", livecrawlTimeout: 10000, } ); for (const r of contents.results) { console.log(`${r.title}: ${r.text?.length} chars retrieved`); }
| Error | HTTP Code | Cause | Solution | |-------|-----------|-------|----------| | INVALID_API_KEY | 401 | API key missing or invalid | Check EXA_API_KEY env var | | INVALID_REQUEST_BODY | 400 | Malformed parameters | Verify parameter types match SDK docs | | NO_MORE_CREDITS | 402 | Account credits depleted | Top up at dashboard.exa.ai | | 429 Too Many Requests | 429 | Rate limit exceeded | Wait and retry; default is 10 QPS | | Empty results array | 200 | Query too narrow or filters too strict | Broaden query or relax date/domain filters |
typescriptimport Exa from "exa-js"; const exa = new Exa(process.env.EXA_API_KEY); async function main() { // 1. Search const search = await exa.search("AI safety research", { numResults: 3 }); console.log(`Found ${search.results.length} results\n`); // 2. Search with contents const detailed = await exa.searchAndContents("AI safety research", { numResults: 2, text: true, highlights: { maxCharacters: 300 }, }); console.log("First result text length:", detailed.results[0]?.text?.length); // 3. Find similar if (search.results[0]) { const similar = await exa.findSimilar(search.results[0].url, { numResults: 3, }); console.log("\nSimilar pages:", similar.results.map(r => r.title)); } } main().catch(console.error);
Proceed to exa-core-workflow-a for neural search patterns or exa-sdk-patterns for production-ready code.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 10,089 | 23,129 | +129% | 1 | 1 | 0% | 1,595 | 2,770 | +74% | 0 | 0 | — |
case-02 | pass→pass | 5,342 | 5,105 | -4% | 1 | 1 | 0% | 818 | 2,119 | +159% | 0 | 0 | — |
case-03 | pass→pass | 10,494 | 4,330 | -59% | 1 | 1 | 0% | 1,873 | 2,156 | +15% | 0 | 0 | — |
case-04 | pass→pass | 11,352 | 5,011 | -56% | 1 | 1 | 0% | 1,887 | 2,263 | +20% | 0 | 0 | — |
case-05 | fail→pass | 10,542 | 12,370 | +17% | 1 | 1 | 0% | 1,988 | 3,140 | +58% | 0 | 0 | — |
case-06 | pass→pass | 5,699 | 6,072 | +7% | 1 | 1 | 0% | 1,120 | 2,284 | +104% | 0 | 0 | — |
case-07 | pass→pass | 5,906 | 3,637 | -38% | 1 | 1 | 0% | 1,103 | 1,999 | +81% | 0 | 0 | — |
case-08 | fail→pass | 10,811 | 6,891 | -36% | 1 | 1 | 0% | 1,674 | 2,742 | +64% | 0 | 0 | — |
case-09 | pass→pass | 9,516 | 6,735 | -29% | 1 | 1 | 0% | 1,481 | 2,410 | +63% | 0 | 0 | — |
case-10 | fail→fail | 12,159 | 9,376 | -23% | 1 | 1 | 0% | 1,735 | 2,839 | +64% | 0 | 0 | — |
case-11 | pass→pass | 13,549 | 7,735 | -43% | 1 | 1 | 0% | 2,150 | 2,838 | +32% | 0 | 0 | — |
case-12 | pass→pass | 13,405 | 9,555 | -29% | 1 | 1 | 0% | 1,970 | 2,989 | +52% | 0 | 0 | — |
case-13 | pass→pass | 6,713 | 4,418 | -34% | 1 | 1 | 0% | 1,129 | 2,033 | +80% | 0 | 0 | — |
case-14 | pass→pass | 15,052 | 9,788 | -35% | 1 | 1 | 0% | 2,290 | 3,132 | +37% | 0 | 0 | — |
case-15 | pass→pass | 14,741 | 16,750 | +14% | 1 | 1 | 0% | 2,124 | 3,728 | +76% | 0 | 0 | — |
case-16 | pass→pass | 14,331 | 10,201 | -29% | 1 | 1 | 0% | 2,231 | 3,273 | +47% | 0 | 0 | — |
case-17 | pass→pass | 15,610 | 10,431 | -33% | 1 | 1 | 0% | 2,839 | 3,603 | +27% | 0 | 0 | — |
case-18 | fail→pass | 8,127 | 5,219 | -36% | 1 | 1 | 0% | 1,370 | 2,089 | +52% | 0 | 0 | — |
case-19 | pass→pass | 7,804 | 6,474 | -17% | 1 | 1 | 0% | 1,534 | 2,534 | +65% | 0 | 0 | — |
case-20 | pass→pass | 7,703 | 4,399 | -43% | 1 | 1 | 0% | 1,420 | 2,119 | +49% | 0 | 0 | — |
case-21 | pass→pass | 7,735 | 6,483 | -16% | 1 | 1 | 0% | 1,397 | 2,260 | +62% | 0 | 0 | — |
case-22 | fail→pass | 12,583 | 2,378 | -81% | 1 | 1 | 0% | 2,246 | 1,765 | -21% | 0 | 0 | — |
case-23 | pass→pass | 8,326 | 7,055 | -15% | 1 | 1 | 0% | 1,589 | 2,644 | +66% | 0 | 0 | — |
case-24 | pass→pass | 6,760 | 8,521 | +26% | 1 | 1 | 0% | 1,414 | 2,718 | +92% | 0 | 0 | — |
case-25 | pass→pass | 10,593 | 11,294 | +7% | 1 | 1 | 0% | 2,128 | 3,146 | +48% | 0 | 0 | — |
case-26 | pass→pass | 6,763 | 10,078 | +49% | 1 | 1 | 0% | 1,399 | 2,960 | +112% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 26 cases were attempted. The headline lift of +15 percentage points is the difference between those two pass rates over the 26 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.