Index of every page on this site: llms.txt
All skills
ejirocodes avatar

/exa-search

@6e805e4
Run it yourself

Exa.ai search API integration for neural and keyword web search with content retrieval. Use when implementing web search features, integrating Exa SDK (exa_py, exa-js), or retrieving web content. Triggers on: Exa, exa_py, exa-js, neural search, web search API, search_and_contents, searchAndContents, find_similar, findSimilar, domain filtering, date filtering, text extraction, page summaries, highlights, search auto mode, fast search, search categories, livecrawl, excluding domains, include text, exclude text, EXA_API_KEY.

Use this Skill: https://skilld.dev/gh/ejirocodes/agent-skills/exa-search

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesfilters.md

≈1.4k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Search Filters Reference

Table of Contents


Domain Filtering

Include Specific Domains

Limit results to specific websites.

results = exa.search_and_contents(
    "machine learning tutorials",
    include_domains=["github.com", "medium.com", "dev.to"],
    num_results=10
)
const results = await exa.searchAndContents("machine learning tutorials", {
  includeDomains: ["github.com", "medium.com", "dev.to"],
  numResults: 10,
});

Exclude Domains

Filter out unwanted sources.

results = exa.search_and_contents(
    "python programming",
    exclude_domains=["pinterest.com", "facebook.com", "twitter.com"],
    num_results=10
)

Subdomain Wildcards

Match all subdomains of a domain.

# Matches docs.github.com, gist.github.com, etc.
results = exa.search_and_contents(
    "GitHub Actions examples",
    include_domains=["*.github.com"],
    num_results=10
)

Date Filtering

Published Date Range

Filter by when content was published.

results = exa.search_and_contents(
    "AI developments",
    start_published_date="2024-01-01",
    end_published_date="2024-12-31",
    num_results=10
)
const results = await exa.searchAndContents("AI developments", {
  startPublishedDate: "2024-01-01",
  endPublishedDate: "2024-12-31",
  numResults: 10,
});

Crawl Date Range

Filter by when Exa indexed the page (useful for finding recently discovered content).

results = exa.search_and_contents(
    "new JavaScript frameworks",
    start_crawl_date="2024-06-01",
    num_results=10
)

Date Format

  • Use ISO 8601 format: YYYY-MM-DD
  • Timestamps also supported: 2024-01-01T00:00:00Z

Text Filtering

Include Text

Results must contain all specified strings.

results = exa.search_and_contents(
    "web development",
    include_text=["React", "TypeScript"],
    num_results=10
)
const results = await exa.searchAndContents("web development", {
  includeText: ["React", "TypeScript"],
  numResults: 10,
});

Exclude Text

Filter out results containing specified strings.

results = exa.search_and_contents(
    "JavaScript tutorials",
    exclude_text=["advertisement", "sponsored", "affiliate"],
    num_results=10
)

Text Filter Best Practices

  • Use for required technical terms
  • Helps narrow broad queries
  • Case-insensitive matching
  • Combine with domain filters for precision

Category Filtering

Pre-defined categories for specialized searches.

Available Categories

Category Description Use Case
company Company websites and profiles Lead generation, company research
research_paper Academic papers and studies Scientific research
news News articles Current events, media monitoring
pdf PDF documents Reports, whitepapers
github GitHub repositories Code search, open source
tweet Twitter/X posts Social media monitoring
personal_site Personal websites and blogs Individual perspectives
linkedin_profile LinkedIn profiles Recruiting, people search

Usage

# Company search
results = exa.search_and_contents(
    "AI startups healthcare",
    category="company",
    num_results=10
)

# Research papers
results = exa.search_and_contents(
    "transformer architecture improvements",
    category="research_paper",
    num_results=10
)

# GitHub repositories
results = exa.search_and_contents(
    "React component library",
    category="github",
    num_results=10
)
const results = await exa.searchAndContents("AI startups healthcare", {
  category: "company",
  numResults: 10,
});

Geolocation Filtering

Filter by user location for localized results.

results = exa.search_and_contents(
    "coffee shops",
    user_location={
        "latitude": 37.7749,
        "longitude": -122.4194,
        "radius_miles": 10
    },
    num_results=10
)

Language Filtering

Exa auto-detects query language and filters results accordingly. This is enabled by default.

# Disable language filtering to get results in all languages
results = exa.search_and_contents(
    "machine learning",
    filter_language=False,
    num_results=10
)

Combining Filters

Complex Filter Example

results = exa.search_and_contents(
    "Series A funding announcement",
    type="neural",
    category="news",
    include_domains=["techcrunch.com", "venturebeat.com", "bloomberg.com"],
    exclude_text=["sponsored"],
    start_published_date="2024-01-01",
    num_results=20,
    text=True,
    summary=True
)
const results = await exa.searchAndContents("Series A funding announcement", {
  type: "neural",
  category: "news",
  includeDomains: ["techcrunch.com", "venturebeat.com", "bloomberg.com"],
  excludeText: ["sponsored"],
  startPublishedDate: "2024-01-01",
  numResults: 20,
  text: true,
  summary: true,
});

Filter Priority Tips

  1. Start broad, then narrow with filters
  2. Category filters are highly optimized - use when applicable
  3. Domain filters reduce noise effectively
  4. Date filters essential for time-sensitive content
  5. Text filters for required technical terms

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides safe and well-documented patterns for integrating the Exa.ai search API. It includes standard implementations for neural and keyword searches using official SDKs. The only identified concern is the inherent risk of indirect prompt injection common to all tools that fetch and process external web content.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer9mo

    1/5 files flagged

  • ZeroLeaks7mo

    1 finding · Score: 82/100

Signed by skilld at 6e805e4. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 10 months ago
metadata
{
  "author": "ejirocodes",
  "version": "1.0.0"
}

README badge

README badge for ejirocodes/agent-skills/exa-search