API Documentation

Base URL: https://contextwire.dev/api

Free tier: 1,000 queries/month. All endpoints included. Get your API key →

Authentication

All API requests require an API key passed via the Authorization header:

Authorization: Bearer YOUR_API_KEY

Quickstart

curl "https://contextwire.dev/api/ask?q=What+is+quantum+computing" \
  -H "Authorization: Bearer YOUR_API_KEY"

Rate Limits

TierQueries/monthRate
Free1,00030/min
Pro50,000120/min
AdminUnlimitedUnlimited

Ask — Full Research Loop

GET/api/ask

Ask a factual question and get a direct answer with sources. Multi-phase research loop scoring 94.3% on SimpleQA benchmark.

ParameterTypeDescription
q requiredstringThe question to answer
{
  "answer": "299,792,458 meters per second",
  "source": "snippets",
  "latency_ms": 3854,
  "sources": [{"title": "Speed of light - Wikipedia", "url": "..."}],
  "pageExcerpts": [{"title": "...", "text": "..."}],
  "phases": [{"phase": 1, "source": "Google+Bing snippets"}]
}
GET/api/search

Search the web using 100+ engines via SearXNG.

ParameterTypeDescription
q requiredstringSearch query
profilestringweb, news, academic, code, devnews, images, videos, social, reference, finance, repos, packages, security, all
max_resultsnumber1-100 (default: 10)
formatstringjson or text (default: json)
freshnessstringday, week, month, year
include_contentnumberNumber of results to fetch full page content for (0-5)

Extract — Page Content

GET/api/extract

Extract clean text or markdown from any URL.

ParameterTypeDescription
url requiredstringURL to extract content from
formatstringtext or markdown (default: text)

Research — Academic Papers

GET/api/research

Search academic papers from arXiv, Semantic Scholar, CrossRef, PubMed, and OpenAlex.

ParameterTypeDescription
q requiredstringResearch query
max_papersnumber1-20 (default: 5)

Batch Search

POST/api/search/batch

Run multiple search queries in parallel.

{
  "queries": [
    {"q": "latest AI news", "profile": "news", "max_results": 5},
    {"q": "machine learning papers", "profile": "academic", "max_results": 5}
  ]
}

Autocomplete

GET/api/suggest

Get autocomplete suggestions for a partial query.

Engines

GET/api/engines

List all available search engines. Filter by category.

Profiles

GET/api/profiles

List all 22 search profiles with their engine configurations.

MCP Server Integration

Add ContextWire to Claude Code or Cursor as an MCP server:

# Claude Code
claude mcp add contextwire --transport http \
  https://contextwire.dev/mcp \
  -- --header "Authorization: Bearer YOUR_KEY"

# Cursor — add to .cursor/mcp.json
{
  "mcpServers": {
    "contextwire": {
      "url": "https://contextwire.dev/mcp",
      "headers": {"Authorization": "Bearer YOUR_KEY"}
    }
  }
}

Error Codes

CodeMeaning
400Bad request — missing or invalid parameters
401Unauthorized — invalid or missing API key
429Rate limit exceeded
500Server error

Changelog

v2.1.0 (March 2026) — MCP server, fact checker, deep research reports, batch search, 22 profiles

v2.0.0 (March 2026) — Full research loop, 94.3% SimpleQA, page extraction, academic search