POST /v2/agent
Describe what you need — the research agent finds it
The agent searches the web, opens and maps pages, and returns structured data with its sources. Every run is capped by maxCredits and a full event trace shows what it did.
- Endpoint
POST /v2/agent- Mode
- Background job — poll GET /v2/agent/{id}
- Credits
- Pay for what it does · capped by maxCredits (default 2500)
- Also
GET /v2/agent/{id}/trace·DELETE /v2/agent/{id}· MCP toolengine_agent
What it's for
Market scans
"Find the pricing of the three biggest EU news-monitoring vendors" — with a schema, you get a table back.
Due diligence
Collect facts about a company from its site, registries and news, each with the URL it came from.
Ready-made recipes
Ten tested prompts with parameters and schemas at GET /native/v1/workflows.
How it works
- Plan
An LLM decides the next step: search, open a page or map a site (effort sets how many steps it may take).
- Collect
Pages are read as Markdown; with strictConstrainToURLs it only opens the URLs you gave.
- Extract
The final data is validated against your schema; mismatches are reported in warning.
- Stop safely
Caps on steps (10), pages (12), time (300 s) and maxCredits end the run; hitting maxCredits fails the run with credit_limit_reached.
Request parameters
Full docs →| Field | Type | Default | Description |
|---|---|---|---|
promptrequired | string | — | What to find, up to 10000 characters. |
schema | object | — | JSON Schema for the result. |
urls | string[] | — | Starting URLs (up to 50). |
strictConstrainToURLs | boolean | false | Only open the given urls (no search, no map). |
maxCredits | integer | 2500 | Spending cap for the run, 1–2500. |
effort | string | "medium" | low, medium or high — 50 / 80 / 100 % of the step cap. |
model | string | "spark-2" | spark-1-mini and spark-1-pro are accepted and run as spark-2. |
webhook | string | object | — | agent.started / action / completed / failed / cancelled. |
Unknown fields do not fail the request — they are listed in the response warning, as are values that were clamped to the engine's limits.
Example request
curl -X POST https://crawl.echolotnews.com/v2/agent \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Find the pricing of the three biggest EU news-monitoring vendors",
"schema": {
"type": "object",
"properties": {
"vendors": {
"type": "array"
}
}
},
"effort": "medium",
"maxCredits": 300
}'
# -> {"success": true, "id": "<jobId>"}
# poll until status is completed | failed
curl https://crawl.echolotnews.com/v2/agent/<jobId> \
-H "Authorization: Bearer YOUR_API_KEY"import requests
API = "https://crawl.echolotnews.com"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY"}
resp = requests.post(f"{API}/v2/agent", headers=HEADERS, json={
"prompt": "Find the pricing of the three biggest EU news-monitoring vendors",
"schema": {
"type": "object",
"properties": {
"vendors": {
"type": "array",
},
},
},
"effort": "medium",
"maxCredits": 300,
}, timeout=120)
resp.raise_for_status()
job_id = resp.json()["id"]
import time
while True:
job = requests.get(f"{API}/v2/agent/{job_id}", headers=HEADERS, timeout=30).json()
if job["status"] != "processing":
break
time.sleep(3)
print(job["status"], job.get("data"))const API = "https://crawl.echolotnews.com";
const headers = { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" };
const res = await fetch(`${API}/v2/agent`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "Find the pricing of the three biggest EU news-monitoring vendors",
"schema": {
"type": "object",
"properties": {
"vendors": {
"type": "array"
}
}
},
"effort": "medium",
"maxCredits": 300
}),
});
const { id } = await res.json();
let job;
do {
await new Promise((r) => setTimeout(r, 3000));
job = await (await fetch(`${API}/v2/agent/${id}`, { headers })).json();
} while (job.status === "processing");
console.log(job.status, job.data);# 1. Connect once (Claude Code)
claude mcp add --transport http echolot https://crawl.echolotnews.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"
# 2. Ask in plain words — the agent calls engine_agent, e.g.
# "Research the pricing of the biggest EU news-monitoring vendors"
# Tool call it makes:
{
"name": "engine_agent",
"arguments": {
"action": "start",
"prompt": "Find the pricing of the three biggest EU news-monitoring vendors",
"max_credits": 300
}
}Example response
{
"success": true,
"status": "completed",
"model": "spark-2",
"effort": "medium",
"data": {
"vendors": [
{ "name": "Vendor A", "plan": "Pro", "price": "€299 / month" }
]
},
"sources": [
{ "url": "https://vendor-a.example/pricing", "title": "Pricing" }
],
"creditsUsed": 64,
"expiresAt": "2026-09-27T10:15:00Z"
}Credits
Pricing →| What | Credits |
|---|---|
| Each page opened | 1 |
| Web search, per 10 results | 2 |
| Each site map | 1 |
| LLM tokens | 1 per 1000 tokens |
| Hard cap | maxCredits |
Start with 500 free credits
No card required. Every endpoint, REST and MCP.