OpenSERP
v0.1.12Search Google, Bing, Yandex, Baidu, DuckDuckGo and Ecosia with original ranks, plus page extraction.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search Search
Search one engine you choose and return its ranked web results. Use it when the engine matters (Yandex for Russian, Baidu for Chinese, Google for the widest index) or to page with start. If any engine will do, use any_search; to compare engines, use mega_search. Returns JSON: results (rank, title, url, snippet, domain, engine), pagination (has_more, next_start) and meta (request_id, took_ms, engines_failed). Cloud: 1 credit per 10 returned results. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked (CAPTCHA, 502/503), try anot…
| Parameter | Type | Description |
|---|---|---|
engine * | string | Engine to query: google, bing, yandex, baidu, duckduckgo (or duck), ecosia. |
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
extract | Enrich the top web results with cleaned page content. Boolean or integer depth: false/0 off, true/1 top result, N top N (1-5). | |
extractMode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
mega_search Mega Search
Query several engines in parallel and merge their web results into one list (mode balanced, the default). Each result keeps its source engine and rank, and clusters list each URL with its rank on every engine that found it. Use it to compare engines, check where a page ranks across engines, or widen coverage for research; it is slower and costs more than one engine. Balanced mode serves only the first page (start 0); mode any or fast behaves like any_search or fast_search. Returns JSON: results (rank, title, url, snippet, domain, engine), pagination (has_more, next_start) and meta (request_id,…
| Parameter | Type | Description |
|---|---|---|
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
dedupe | boolean | Drop duplicate URLs across engines (default true). |
engines | array | Engines to query, in priority order for any mode. Omit to use all available engines. |
extract | Enrich the top web results with cleaned page content. Boolean or integer depth: false/0 off, true/1 top result, N top N (1-5). | |
extractMode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
merge | boolean | true (default): one list from every engine that succeeded. false: keep only the first engine that returned results. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
mode | string | balanced (default): all engines in parallel, results merged. any: engines in your order until one succeeds; on Cloud slow attempts can overlap. fast: the healthiest, fastest engine. Only any and fast… |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
fast_search Fast Search
Return one web result set as fast as possible, from the engine with the best recent health and latency. Use it for quick lookups where the engine doesn't matter; use search to pick the engine, or any_search to set a fallback order. Returns JSON: results (rank, title, url, snippet, domain, engine), pagination (has_more, next_start) and meta (request_id, took_ms, engines_failed). Cloud: 1 credit. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked (CAPTCHA, 502/503), try another engine. Unsupported parameters return 400 and are n…
| Parameter | Type | Description |
|---|---|---|
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
dedupe | boolean | Drop duplicate URLs across engines (default true). |
engines | array | Engines to query, in priority order for any mode. Omit to use all available engines. |
extract | Enrich the top web results with cleaned page content. Boolean or integer depth: false/0 off, true/1 top result, N top N (1-5). | |
extractMode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
merge | boolean | true (default): one list from every engine that succeeded. false: keep only the first engine that returned results. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
any_search Any Search
Try engines one at a time in the order you give and return the first result set that succeeds, e.g. engines [google, bing, duckduckgo]. Use it as a resilient default when you prefer one engine but need a fallback; use fast_search when the order doesn't matter. On Cloud a slow attempt can overlap with the next one. Returns JSON: results (rank, title, url, snippet, domain, engine), pagination (has_more, next_start) and meta (request_id, took_ms, engines_failed). Cloud: 1 credit. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked…
| Parameter | Type | Description |
|---|---|---|
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
dedupe | boolean | Drop duplicate URLs across engines (default true). |
engines | array | Engines to query, in priority order for any mode. Omit to use all available engines. |
extract | Enrich the top web results with cleaned page content. Boolean or integer depth: false/0 off, true/1 top result, N top N (1-5). | |
extractMode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
merge | boolean | true (default): one list from every engine that succeeded. false: keep only the first engine that returned results. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
image_search Image Search
Search images on one engine you choose. Returns JSON results (rank, title, image url/thumbnail/width/height, source page_url and domain, engine) and pagination. Use mega_image to combine several engines. Cloud: cost scales with the number of returned images. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked (CAPTCHA, 502/503), try another engine. Unsupported parameters return 400 and are not charged.
| Parameter | Type | Description |
|---|---|---|
engine * | string | Engine to query: google, bing, yandex, baidu, duckduckgo (or duck), ecosia. |
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
mega_image Mega Image Search
Search images on several engines and merge them into one list (mode balanced, the default); each image keeps its source engine and rank, and duplicates are dropped. Use it when one engine gives too few or too similar images; use image_search for a single engine. Balanced mode serves only the first page; mode any or fast returns the first engine that succeeds. Output fields match image_search. Cloud: any/fast cost 1 credit, balanced depends on engines and image volume. Errors return isError with status, error code and retry_after. On 429 or 503 wait retry_after; if an engine is blocked (CAPTCHA…
| Parameter | Type | Description |
|---|---|---|
date | string | Published-date range YYYYMMDD..YYYYMMDD. Cloud web search supports Google and Ecosia; unsupported filters return 400 without charge. |
dedupe | boolean | Drop duplicate URLs across engines (default true). |
engines | array | Engines to query, in priority order for any mode. Omit to use all available engines. |
features | boolean | Add serp_features (AI summary, answer box, People Also Ask, related searches) when the engine shows them. |
file | string | File extension filter, such as PDF. |
filter | boolean | Let the engine collapse near-duplicate results (default true, mostly affects Google). |
format | string | json (default) for structured results; markdown, text or ndjson for compact plain text. |
lang | string | Language code, such as EN or de. |
limit | integer | Maximum result count, 1-100. Keep 10 when paging with start. |
merge | boolean | true (default): one list from every engine that succeeded. false: keep only the first engine that returned results. |
mode | string | balanced (default): all engines in parallel, results merged. any: engines in your order until one succeeds; on Cloud slow attempts can overlap. fast: the healthiest, fastest engine. Only any and fast… |
region | string | Market or location hint, such as US, DE, en-GB, Berlin, or a Yandex lr id. |
site | string | Domain filter, such as example.com. |
start | integer | Result offset. On Cloud, Google/Bing/Yandex use multiples of 10, Baidu supports early pages, Ecosia any offset, DuckDuckGo none. Balanced mega requires 0; unsupported offsets return 400. |
text | string | Search query text. At least one of text, site, or file should be provided. |
get_usage Get Usage
Show the OpenSERP Cloud account behind OPENSERP_API_KEY: account (plan, credits_remaining) and lastResponse (request_id, credits used, engine) for the previous tool call in this session. Read-only and free. Use it to check the balance before a large batch or to see what a call cost. Self-hosted mode has no credits, so it returns an error there.
list_engines List Engines
List the engines this OpenSERP backend can use and whether they work right now. Self-hosted: each engine with initialized and circuit_state (open means it is failing, skip it). Cloud: per-engine web/image support and status (operational, loaded, down) with latency. Read-only and free. Call it when searches keep failing, then pick a healthy engine for search or the engines list.
extract Extract URL
Fetch one URL and return its main content as Markdown, e.g. to read a page found by search. Returns JSON: url, title, description, markdown, text, headings, links (first 50), lang and meta.mode_used. Content over maxChars (default 20000) is cut and the result gets truncated: true. For two or more pages use batch_extract. Pages behind logins or bot walls can fail or come back thin; try mode rendered or another source. Cloud: 1 credit for a fast fetch, 3 when the page needs a browser, +1 with region; failed and empty pages are free. Errors return isError with status and error code.
| Parameter | Type | Description |
|---|---|---|
url * | string | Absolute URL to fetch and extract. |
clean | boolean | Article-only extraction (default true). Set false for landing pages, docs indexes and dashboards, where content sits in navigation or feature blocks. |
format | string | json (default) for the structured fields; markdown or text for the page content as plain text. |
lang | string | Preferred page language, sent as Accept-Language, such as en or de. |
maxChars | integer | Max characters of page content (default 20000). Longer pages are cut and marked truncated. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
mode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
region | string | Two-letter country code to extract from, e.g. US or DE, for geo-fenced or localized pages. On Cloud this adds 1 credit per extracted URL. |
useLlmsTxt | boolean | For a site root URL, return the site's /llms-full.txt or /llms.txt instead when it has one. |
batch_extract Extract several URLs
Extract LLM-ready content from up to 20 URLs in one request. Prefer this over repeated extract calls when grounding an answer in several pages: it is one round-trip, and a URL that fails returns an item with an error instead of failing the batch. Returns results (url, page_content as Markdown, error when that URL failed; metadata with title, mode_used and, when cut, truncated and total_chars) and meta (requested, succeeded, failed). Cloud: billed per URL like extract; failed and empty URLs are free.
| Parameter | Type | Description |
|---|---|---|
urls * | array | Absolute URLs to fetch and extract. Duplicates are dropped. |
clean | boolean | Article-only extraction (default true). Set false for landing pages, docs indexes and dashboards, where content sits in navigation or feature blocks. |
lang | string | Preferred page language, sent as Accept-Language, such as en or de. |
maxChars | integer | Max characters of content per URL. Default splits 40000 across the batch (at least 2000 each). Longer pages are cut and marked metadata.truncated. |
minRunes | integer | Minimum text length (in runes) before auto mode escalates to a browser render. 0 uses the built-in floor. |
mode | string | auto (default): fast HTTP fetch, browser render if the page comes back empty. fast: HTTP only. rendered: always a browser, for JavaScript-heavy pages. |
region | string | Two-letter country code applied to every URL, e.g. US or DE. On Cloud this adds 1 credit per extracted URL. |
useLlmsTxt | boolean | For a site root URL, return the site's /llms-full.txt or /llms.txt instead when it has one. |