From signup to your first API call in under a minute. Search, extract, research, and ask — one API for everything.
Sign up right here to get your free API key instantly. No credit card required.
Response:
{
"success": true,
"api_key": "cw_a1b2c3d4e5f6...",
"message": "Welcome to ContextWire!"
}
Use the /api/ask endpoint to ask any question. It searches the web, synthesizes sources, and returns a grounded answer.
curl "https://contextwire.dev/api/ask?q=What+is+the+capital+of+France" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"answer": "The capital of France is Paris.",
"sources": [
{ "title": "France - Wikipedia", "url": "https://en.wikipedia.org/wiki/France" },
{ "title": "Paris | History, Map, Population...", "url": "https://www.britannica.com/place/Paris" }
],
"confidence": 0.97,
"profile": "web"
}
Profiles tune the search strategy for your use case. Add profile= to any request to optimize results.
curl "https://contextwire.dev/api/ask?q=how+to+parse+JSON+in+Python&profile=code" \
-H "Authorization: Bearer YOUR_API_KEY"
Pull clean text, metadata, and structured content from any URL with /api/extract.
curl "https://contextwire.dev/api/extract?url=https://example.com/article" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"title": "Example Article Title",
"text": "The full extracted article text...",
"url": "https://example.com/article",
"word_count": 1247,
"language": "en"
}
Connect ContextWire as an MCP server to get grounded search directly inside your AI coding tools.
Add this to your claude_desktop_config.json or .cursor/mcp.json:
{
"mcpServers": {
"contextwire": {
"url": "https://mcp.kept.live/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
This gives your AI assistant 5 tools:
Use the JavaScript/TypeScript SDK for a cleaner integration.
npm install @contextwire/sdk
import { ContextWire } from '@contextwire/sdk';
const cw = new ContextWire('YOUR_API_KEY');
const result = await cw.ask('What is quantum computing?');
console.log(result.answer);
console.log(result.sources);
ContextWire uses LLM inference to synthesize answers. By default, this is included free. For higher limits or custom models, pass your own OpenRouter key.
curl "https://contextwire.dev/api/ask?q=explain+CRISPR" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-OpenRouter-Key: your_openrouter_key"
Try it live in the playground or grab your API key to start building.