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

/exa-entities

@6e805e4
Run it yourself

Exa.ai company and people search for lead generation, competitive intelligence, and data enrichment. Use when searching for companies, finding people profiles, building lead gen tools, or implementing Websets for data collection at scale. Triggers on: Exa company search, Exa people search, category company, lead generation, company research, profile search, LinkedIn profiles, Websets API, data enrichment, company lookup, find companies, competitive intelligence, recruiting, talent search, 1B profiles.

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referenceswebsets.md

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

Websets API Reference

Table of Contents


Overview

Websets enable web data collection, verification, and processing at scale:

  • Search-based collection: Automatically gather data matching your criteria
  • Monitoring: Get notified when new matches appear
  • Enrichment: Enhance collected data with additional information
  • Webhooks: Integrate with your systems in real-time

Creating Websets

Basic Webset

from exa_py import Exa

exa = Exa()

# Create a webset for company collection
webset = exa.websets.create(
    name="AI Startups 2024",
    description="AI companies founded in 2024",
    search_query="AI startup founded 2024",
    category="company",
    max_results=500
)

print(f"Webset ID: {webset.id}")
print(f"Status: {webset.status}")

With Advanced Filters

webset = exa.websets.create(
    name="Healthcare AI Series A",
    description="Healthcare AI companies with Series A funding",
    search_query="healthcare AI startup series A funding",
    category="company",
    include_domains=None,  # All domains
    exclude_domains=["linkedin.com", "crunchbase.com"],
    start_published_date="2023-01-01",
    max_results=200
)

People Webset

webset = exa.websets.create(
    name="ML Engineers SF",
    description="Machine learning engineers in San Francisco",
    search_query="machine learning engineer San Francisco",
    category="linkedin_profile",
    max_results=1000
)

Managing Websets

List Websets

# Get all websets
websets = exa.websets.list()

for ws in websets:
    print(f"Name: {ws.name}")
    print(f"ID: {ws.id}")
    print(f"Status: {ws.status}")
    print(f"Items: {ws.item_count}")
    print()

Get Webset Details

webset = exa.websets.get(webset_id="ws_abc123")

print(f"Name: {webset.name}")
print(f"Status: {webset.status}")
print(f"Created: {webset.created_at}")
print(f"Item count: {webset.item_count}")

Get Webset Items

# Get items from a webset
items = exa.websets.get_items(
    webset_id="ws_abc123",
    limit=100,
    offset=0
)

for item in items:
    print(f"URL: {item.url}")
    print(f"Title: {item.title}")
    print(f"Added: {item.added_at}")

Update Webset

updated = exa.websets.update(
    webset_id="ws_abc123",
    name="Updated Name",
    description="Updated description"
)

Delete Webset

exa.websets.delete(webset_id="ws_abc123")

Monitoring

Set up monitors to track new matches over time.

Create Monitor

# Daily monitoring for new results
monitor = exa.websets.add_monitor(
    webset_id="ws_abc123",
    schedule="daily",  # or "hourly", "weekly"
    enabled=True
)

print(f"Monitor ID: {monitor.id}")
print(f"Schedule: {monitor.schedule}")

With Webhook Notification

monitor = exa.websets.add_monitor(
    webset_id="ws_abc123",
    schedule="hourly",
    webhook_url="https://your-app.com/webhooks/exa",
    webhook_secret="your-secret-key"
)

Manage Monitors

# List monitors for a webset
monitors = exa.websets.list_monitors(webset_id="ws_abc123")

# Pause monitor
exa.websets.update_monitor(
    monitor_id="mon_xyz",
    enabled=False
)

# Delete monitor
exa.websets.delete_monitor(monitor_id="mon_xyz")

Webhook Payload Structure

{
  "event": "new_items",
  "webset_id": "ws_abc123",
  "webset_name": "AI Startups 2024",
  "new_items_count": 5,
  "items": [
    {
      "url": "https://example.com",
      "title": "New AI Startup",
      "added_at": "2024-01-15T10:30:00Z"
    }
  ],
  "timestamp": "2024-01-15T10:30:00Z"
}

Verify Webhook Signature

import hmac
import hashlib

def verify_webhook(payload, signature, secret):
    """Verify Exa webhook signature."""
    expected = hmac.new(
        secret.encode(),
        payload.encode(),
        hashlib.sha256
    ).hexdigest()

    return hmac.compare_digest(signature, expected)

# In your webhook handler
@app.post("/webhooks/exa")
def handle_webhook(request):
    signature = request.headers.get("X-Exa-Signature")
    payload = request.body

    if not verify_webhook(payload, signature, WEBHOOK_SECRET):
        return {"error": "Invalid signature"}, 401

    data = json.loads(payload)
    # Process new items
    for item in data["items"]:
        process_new_item(item)

    return {"status": "ok"}

Enrichment

Enhance webset items with additional data.

Basic Enrichment

# Enrich items with full content
enriched = exa.websets.enrich(
    webset_id="ws_abc123",
    enrichments=["text", "summary"]
)

# Get enriched items
items = exa.websets.get_items(webset_id="ws_abc123")

for item in items:
    print(f"URL: {item.url}")
    print(f"Summary: {item.summary}")
    print(f"Full text: {item.text[:500]}")

Custom Enrichment Fields

enriched = exa.websets.enrich(
    webset_id="ws_abc123",
    enrichments={
        "text": True,
        "summary": True,
        "highlights": {"num_sentences": 3}
    }
)

Export and Integration

Export to CSV

# Export webset to CSV
export = exa.websets.export(
    webset_id="ws_abc123",
    format="csv"
)

# Download the export
with open("companies.csv", "wb") as f:
    f.write(export.content)

Export to JSON

export = exa.websets.export(
    webset_id="ws_abc123",
    format="json"
)

data = json.loads(export.content)

Import URLs

# Import existing URLs into a webset
exa.websets.import_urls(
    webset_id="ws_abc123",
    urls=[
        "https://company1.com",
        "https://company2.com",
        "https://company3.com"
    ]
)

Sync with Database

def sync_webset_to_database(webset_id, db):
    """Sync webset items to a database."""
    items = exa.websets.get_items(webset_id=webset_id)

    for item in items:
        db.upsert("companies", {
            "url": item.url,
            "title": item.title,
            "summary": item.summary,
            "added_at": item.added_at,
            "source": "exa_webset"
        })

Common Patterns

Lead Generation Pipeline

def create_lead_pipeline(industry, target_count=500):
    """Create a complete lead generation pipeline."""

    # 1. Create webset for companies
    webset = exa.websets.create(
        name=f"{industry} Companies",
        search_query=f"{industry} startup company",
        category="company",
        max_results=target_count
    )

    # 2. Set up daily monitoring
    monitor = exa.websets.add_monitor(
        webset_id=webset.id,
        schedule="daily",
        webhook_url="https://your-crm.com/webhooks/new-leads"
    )

    # 3. Enrich with content
    exa.websets.enrich(
        webset_id=webset.id,
        enrichments=["text", "summary"]
    )

    return {
        "webset_id": webset.id,
        "monitor_id": monitor.id,
        "status": "pipeline_created"
    }

Competitive Monitoring

def monitor_competitors(competitor_names):
    """Set up monitoring for competitor news."""

    for name in competitor_names:
        webset = exa.websets.create(
            name=f"{name} News",
            search_query=f"{name} news announcement",
            category="news",
            max_results=100
        )

        exa.websets.add_monitor(
            webset_id=webset.id,
            schedule="hourly",
            webhook_url="https://your-app.com/webhooks/competitor-news"
        )

Talent Pool Management

def create_talent_pool(role, skills, location):
    """Create and maintain a talent pool."""

    query = f"{role} {' '.join(skills)} {location}"

    webset = exa.websets.create(
        name=f"Talent Pool: {role}",
        search_query=query,
        category="linkedin_profile",
        max_results=1000
    )

    # Monitor for new profiles weekly
    exa.websets.add_monitor(
        webset_id=webset.id,
        schedule="weekly"
    )

    # Enrich with profile details
    exa.websets.enrich(
        webset_id=webset.id,
        enrichments=["text", "summary"]
    )

    return webset

Source: SKILL.md on GitHub

No rule matched.

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 documentation and code snippets for integrating with Exa.ai for company and people search tasks. The analysis identifies a potential surface for indirect prompt injection because the skill fetches and processes data from external websites, which is an inherent risk for any web-connected search tool.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer9mo

    4 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

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-entities