Developer documentation

Search API

Search the web, extract page text, and retrieve news, images and location data with a single API key.

Your first request

GET
curl --get 'https://vybsly.ai/api/v1/search' \
  --data-urlencode 'q=northern lights' \
  --data 'limit=3' \
  --header "X-API-Key: $VYBSLY_API_KEY"

Set VYBSLY_API_KEY to your key before running the example.

Endpoint reference

Find a route and expand it for parameters and examples.

GET /v1/search Search web pages and their extracted text
ParamDescription
q requiredSearch query
limitMax results (default 10, max 50)
formatfull, compact, or markdown
guaranteedOnly return results with verified 500+ char content
modeSet to "agent" for structured AI output
// Example request
GET /v1/search?q=machine+learning&limit=5&mode=agent

// Response includes full page content
{
  "results": [{
    "title": "Introduction to Machine Learning",
    "content": "... 30,000 chars of full page content ...",
    "url": "https://example.com/ml-guide",
    "relevance_score": 0.95
  }],
  "_meta": { "index_size": 24219426, "self_growing": true }
}
GET /v1/extract Extract page text from a URL
ParamDescription
url requiredTarget URL to extract
formatfull, markdown, or text
modeSet to "agent" for key_facts, entities, summary
GET /v1/extract?url=https://docs.anthropic.com&mode=agent
GET /v1/geocode Convert address to coordinates
ParamDescription
q requiredAddress or place name
limitMax results (default 5)
GET /v1/geocode?q=Times+Square+New+York
GET /v1/directions Turn-by-turn driving directions
ParamDescription
fromStarting address
toDestination address
GET /v1/directions?from=NYC&to=LA
GET /v1/news Find recent news articles
GET /v1/news?q=artificial+intelligence&hours=24&limit=20
GET /v1/images Image search with context
GET /v1/images?q=neural+network+diagram&limit=20
GET /v1/videos Video search with embeddable URLs
GET /v1/videos?q=python+tutorial&limit=10
POST /v1/search/bulk Batch search โ€” up to 50 queries in one request
POST /v1/search/bulk
{ "queries": ["query 1", "query 2", ...], "limit": 5 }
GET /v1/weather ยท /v1/crypto ยท /v1/currency ยท /v1/time Real-time utilities
GET /v1/weather?q=Nashville
GET /v1/crypto?coin=bitcoin
GET /v1/currency?from=USD&to=EUR&amount=100
GET /v1/time?tz=America/New_York
GET /v1/places ยท /v1/elevation ยท /v1/reverse-geocode Geospatial tools
GET /v1/places?q=coffee&lat=40.758&lng=-73.985
GET /v1/elevation?lat=27.9881&lng=86.925
GET /v1/reverse-geocode?lat=40.758&lng=-73.985
GET /v1/odds Live sports betting odds โ€” NBA, UFC, NFL, MLB, NHL
ParamDescription
sportSport key: nba, ufc, nfl, mlb, nhl, soccer, ncaaf, ncaab
teamSearch by team/fighter name (works across all sports)
qAlias for team โ€” search any matchup
// Get all NBA odds
GET /v1/odds?sport=nba

// Search by fighter name
GET /v1/odds?team=chimaev

// List available sports
GET /v1/odds

// Response
{
  "sport": "NBA",
  "game_count": 21,
  "games": [{
    "away_team": "Chicago",
    "home_team": "Washington",
    "game_time": "7:00pm EDT",
    "best_odds": { "away_spread": "-5.5", "away_ml": "-235" },
    "bookmakers": [
      { "name": "FanDuel", "away_ml": "-235", "home_ml": "+210" },
      { "name": "DraftKings", "away_ml": "-230", "home_ml": "+200" }
    ]
  }],
  "_meta": { "source": "live scrape", "update_interval": "10 minutes" }
}
GET /v1/ships Find vessels using AIS positions
ParamDescription
qSearch by ship name or MMSI
lat, lngCenter point for area search
radiusSearch radius in km (default 50)
limitMax results (default 100)
// Ships near New York
GET /v1/ships?lat=40.7&lng=-74.0&radius=30&limit=10

// Search by name
GET /v1/ships?q=henry+hudson
GET /v1/cameras Look up cameras by location
ParamDescription
qSearch by camera name or city
lat, lngCenter point for area search
radiusSearch radius in km (default 100)
limitMax results (default 20)
// Cameras in Tokyo
GET /v1/cameras?q=tokyo

// Cameras near a location
GET /v1/cameras?lat=48.858&lng=2.294&radius=50

Free plan limits

Daily allowance
100 API requests per day
Quota resets
Midnight UTC

Once you reach the limit, the API returns 429 Too Many Requests. The Retry-After header gives the wait in seconds.

Open developer dashboard โ†’

Search the web and encyclopedia

Use /v1/knowledge to query both indexes. Each result identifies its source.

# Inline: add encyclopedia results to any search
curl "https://vybsly.ai/api/v1/search?q=einstein&include=encyclopedia"

# Dedicated federated endpoint (cleaner for agents)
curl "https://vybsly.ai/api/v1/knowledge?q=quantum+physics&limit=10"

Response Shape

{
  "total_results": 10,
  "layers": {
    "vybsly": { "count": 7, "total_index": 24219426 },
    "vybpedia": { "count": 3, "total_found": 3279 }
  },
  "results": {
    "vybsly": [
      { "source": "vybsly", "url": "...", "content": "5000 chars...",
        "domain_score": 90, "page_type": "article" }
    ],
    "vybpedia": [
      { "source": "vybpedia", "title": "Quantum physics",
        "summary": "...", "categories": ["Quantum physics"],
        "page_type": "encyclopedia" }
    ]
  }
}

Filter search results

Use strict mode to enforce a source filter. The response metadata shows which filters ran and whether the search used a fallback.

# Loose: prefer research domains, but allow edge results
curl "https://vybsly.ai/api/v1/search?q=mRNA+vaccines&research=true"

# Strict: ONLY peer-reviewed research domains (arxiv, nature, pubmed, NEJM, Lancet, ...)
curl "https://vybsly.ai/api/v1/search?q=mRNA+vaccines&research=true&strict=true"

# Strict + fallback: when too few strict results, auto-fill with relaxed (clearly tagged)
curl "https://vybsly.ai/api/v1/search?q=obscure+topic&research=true&strict=true&strict_fallback=relaxed"

Available Filters

  • ?research=true โ€” research papers (arxiv, nature, pubmed, science, IEEE, Lancet, NEJM)
  • ?news=true โ€” news outlets (Reuters, AP, BBC, CNN, NYT, WSJ, Bloomberg, NPR)
  • ?educational=true โ€” tutorials/docs (MDN, MIT OCW, Khan, docs.python.org, learn.microsoft)
  • ?source=domain.com โ€” restrict to a single domain
  • ?lang=en โ€” language filter (en, es, fr, de, ja, zh, ko, ar)
  • ?page_type=article โ€” article, homepage, reference, tag, category, video
  • ?has_content=true โ€” only results with substantive page content
  • &strict=true โ€” enforce filters as hard allowlists
  • &strict_fallback=relaxed โ€” auto-retry without strict when too few results

Response Validation Fields

{
  "_meta": {
            "version": "1.2",
    "strict_mode": true,
    "strict_filters_applied": ["research"],
    "strict_insufficient": false,
    "strict_fallback_used": false,
    "strict_pass_count": 7
  },
  "results": [{
    "url": "https://www.nature.com/...",
    "domain": "nature.com",
    "domain_score": 90,
    "strict_pass": true,
    "confidence": 0.95
  }]
}

Search workflows

Combine search and extraction, request a sourced answer, or discover the tools available to an agent.

Search, extract and summarize

# Python โ€” full RAG pipeline in 8 lines
import requests

q = "latest CRISPR breakthroughs in 2026"
hits = requests.get("https://vybsly.ai/api/v1/search",
    params={"q": q, "research": "true", "strict": "true", "limit": 5}).json()["results"]

# Each result already has 30K chars of content โ€” no extra extract needed
context = "\n\n".join([f"## {r['title']}\n{r['content'][:5000]}" for r in hits])

# Hand to your local LLM with the context
prompt = f"Answer using only these sources:\n{context}\n\nQuestion: {q}"

Request a sourced answer

curl -X POST "https://vybsly.ai/api/v1/ask" \
  -H "Content-Type: application/json" \
  -d '{"question": "How does mRNA vaccine work?", "max_sources": 5}'

# Returns: { answer: "...", sources: [{ title, url }, ...] }

Discover available tools

# Pull OpenAI/LangChain compatible tool list
curl "https://vybsly.ai/api/v1/tools"

# Returns 15+ tools ready for function-calling agents:
# search, extract, stocks, odds, weather, geocode, directions, ...

Read result metadata

Use fields such as domain, language and page type to decide which results to include in your application.

# Trust-aware agent search โ€” only use high-authority sources

results = vybsly.search("kubernetes pod security", limit=10)

# Filter: only trust canonical docs (domain_score >= 80)
trusted = [r for r in results if r.get("domain_score", 0) >= 80]

# Filter: only official developer docs
official = [r for r in results if r.get("is_agent_docs") == True]

# Skip junk: no tag pages, no archive pages
clean = [r for r in results if r.get("page_type") not in ("tag", "archive")]

# Strict mode: use domain allowlists for maximum reliability
strict = vybsly.search("CRISPR safety", research=True, strict=True)
# Check _meta.strict_pass on each result to verify it passed
Field Type Agent Use
domain_score0โ€“9595 = canonical docs, 90 = Wikipedia, 80 = .gov/.edu, 50 = default. Filter ≥80 for high-authority only.
is_agent_docsbooleanTrue = official framework documentation (555K+ sections from 340+ sources). Prefer for "how to" queries.
page_typestringarticle, tag, category, archive. Skip tag/archive pages โ€” they have no content.
languageISO 639-1Detected language (en, de, fr). Filter when user locale is known.
_meta.strict_passbooleanTrue when result passed strict domain-allowlist filtering. Only present with strict=true.

Connect an MCP client

Configure the vybsly-mcp package in Claude Desktop, Cursor or Windsurf to call the API from your client.

# Install globally
npm install -g vybsly-mcp

# Or run without installing (recommended for Claude Desktop)
npx vybsly-mcp

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "vybsly": {
      "command": "npx",
      "args": ["-y", "vybsly-mcp"],
      "env": { "VYBSLY_API_KEY": "your_api_key_here" }
    }
  }
}

Cursor / Windsurf

Same JSON โ€” drop it into .cursor/mcp.json or the equivalent MCP config.

Available tools

vybsly_search โ€” full-content web search with strict filters
vybsly_knowledge โ€” federated web + encyclopedia
vybsly_extract โ€” JS-rendered URL extraction
vybsly_ask โ€” sourced AI answer
vybsly_stocks โ€” live stock prices
vybsly_crypto โ€” live crypto data
vybsly_weather โ€” forecast + current conditions
vybsly_news โ€” recent news with dates
vybsly_odds โ€” live sportsbook lines
vybsly_geocode โ€” address โ†’ coordinates
vybsly_directions โ€” turn-by-turn

Package: npmjs.com/package/vybsly-mcp ยท Size: 5.5 KB ยท Node 18+ ยท MIT License

Use Vybsly with LangChain

Wrap a search request in a LangChain tool and return the fields your agent needs.

from langchain.tools import Tool
import requests

def vybsly_search(query: str) -> str:
    r = requests.get("https://vybsly.ai/api/v1/search",
        params={"q": query, "limit": 5, "mode": "agent"}).json()
    return "\n\n".join([f"[{r['title']}]({r['url']})\n{r['content'][:3000]}"
                        for r in r["results"]])

vybsly_tool = Tool(
    name="VybslySearch",
    func=vybsly_search,
    description="Search the web and return titles, URLs and extracted content."
)

# Add to any LangChain agent
from langchain.agents import initialize_agent, AgentType
agent = initialize_agent([vybsly_tool], llm, agent=AgentType.OPENAI_FUNCTIONS)
result = agent.run("What are the latest CRISPR breakthroughs?")

Hybrid RAG โ€” Web + Encyclopedia in One Tool (/v1/knowledge)

from langchain.tools import Tool
import requests

def vybsly_knowledge(query: str) -> str:
    """Return web and encyclopedia results for the same query."""
    data = requests.get("https://vybsly.ai/api/v1/knowledge",
        params={"q": query, "limit": 10}).json()

    parts = []
    # Encyclopedia first (structured, authoritative)
    for r in data.get("results", {}).get("vybpedia", []):
        parts.append(f"[ENCYCLOPEDIA] {r['title']}\n"
                     f"Categories: {', '.join(r.get('categories', []))}\n"
                     f"{r.get('summary', '')}\n")
    # Then web (long-form, messy but full-content)
    for r in data.get("results", {}).get("vybsly", []):
        parts.append(f"[WEB] {r['title']} ({r.get('domain','?')})\n"
                     f"{r.get('content', '')[:2000]}\n")
    return "\n---\n".join(parts)

knowledge_tool = Tool(
    name="VybslyKnowledge",
    func=vybsly_knowledge,
    description="Search web pages and encyclopedia articles."
)

# Use as a standalone tool OR alongside VybslySearch / VybslyResearch
agent = initialize_agent([knowledge_tool], llm, agent=AgentType.OPENAI_FUNCTIONS)
result = agent.run("What is Einstein's general relativity and who verified it?")

Research-Only Variant (strict mode)

def vybsly_research(query: str) -> str:
    """Search research sources with a relaxed fallback."""
    r = requests.get("https://vybsly.ai/api/v1/search",
        params={"q": query, "research": "true", "strict": "true",
                "strict_fallback": "relaxed", "limit": 5}).json()
    return "\n\n".join([f"[{r['domain']}] {r['title']}\n{r['content'][:3000]}"
                        for r in r["results"]])

research_tool = Tool(name="VybslyResearch", func=vybsly_research,
    description="Peer-reviewed research search. Use for medical, scientific, or technical queries needing authoritative sources.")

Use Vybsly with LlamaIndex

Expose a search function to a LlamaIndex agent with FunctionTool.

from llama_index.core.tools import FunctionTool
from llama_index.core.agent import ReActAgent
import requests

def vybsly_search(query: str, research_only: bool = False) -> dict:
    """Full-content web search. Set research_only=True for peer-reviewed sources."""
    params = {"q": query, "limit": 5, "mode": "agent"}
    if research_only:
        params.update({"research": "true", "strict": "true"})
    return requests.get("https://vybsly.ai/api/v1/search", params=params).json()

vybsly_tool = FunctionTool.from_defaults(fn=vybsly_search)
agent = ReActAgent.from_tools([vybsly_tool], llm=llm, verbose=True)
response = agent.chat("Compare the latest LLM benchmarks")

Search from a voice agent

This Vapi server tool searches Vybsly and returns an excerpt for the agent to read aloud.

# Vapi Server Tool โ€” give your voice agent live web knowledge
# 1. Create a server endpoint that Vapi calls when the agent needs info

from fastapi import FastAPI, Request
import requests

app = FastAPI()

@app.post("/vapi-tool")
async def vapi_search_tool(req: Request):
    body = await req.json()
    query = body["message"]["toolCalls"][0]["function"]["arguments"]["query"]

    # Search Vybsly โ€” get clean markdown, not HTML noise
    results = requests.get("https://vybsly.ai/api/v1/search", params={
        "q": query, "limit": 3, "guaranteed": "true"
    }, headers={"X-API-Key": "YOUR_KEY"}).json()

    # Format top result as spoken context for the voice agent
    top = results["results"][0]
    context = f"{top['title']}: {top['content'][:2000]}"

    return {"results": [{
        "toolCallId": body["message"]["toolCalls"][0]["id"],
        "result": context
    }]}