Skip to content
Menu
Automate · Agent · 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 tool engine_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

  1. Plan

    An LLM decides the next step: search, open a page or map a site (effort sets how many steps it may take).

  2. Collect

    Pages are read as Markdown; with strictConstrainToURLs it only opens the URLs you gave.

  3. Extract

    The final data is validated against your schema; mismatches are reported in warning.

  4. 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 →
FieldType DefaultDescription
promptrequiredstring—What to find, up to 10000 characters.
schemaobject—JSON Schema for the result.
urlsstring[]—Starting URLs (up to 50).
strictConstrainToURLsbooleanfalseOnly open the given urls (no search, no map).
maxCreditsinteger2500Spending cap for the run, 1–2500.
effortstring"medium"low, medium or high — 50 / 80 / 100 % of the step cap.
modelstring"spark-2"spark-1-mini and spark-1-pro are accepted and run as spark-2.
webhookstring | 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

bash
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"
python · requests
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"))
javascript · fetch
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);
mcp
# 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

json · trimmed
{
  "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"
}
WhatCredits
Each page opened1
Web search, per 10 results2
Each site map1
LLM tokens1 per 1000 tokens
Hard capmaxCredits

Start with 500 free credits

No card required. Every endpoint, REST and MCP.