curl --request POST \
--url https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"mode": "auto",
"depth": "basic",
"topic": "general",
"max_results": 10,
"add_answer": false,
"include_raw_content": false,
"include_images": false,
"filters": {
"include_domains": [
"<string>"
],
"exclude_domains": [
"<string>"
],
"include_text": [
"<string>"
],
"exclude_text": [
"<string>"
]
},
"view": [
"results"
],
"similar_to": "<string>",
"stream": true,
"user_context": {}
}
'import requests
url = "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search"
payload = {
"query": "<string>",
"mode": "auto",
"depth": "basic",
"topic": "general",
"max_results": 10,
"add_answer": False,
"include_raw_content": False,
"include_images": False,
"filters": {
"include_domains": ["<string>"],
"exclude_domains": ["<string>"],
"include_text": ["<string>"],
"exclude_text": ["<string>"]
},
"view": ["results"],
"similar_to": "<string>",
"stream": True,
"user_context": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
mode: 'auto',
depth: 'basic',
topic: 'general',
max_results: 10,
add_answer: false,
include_raw_content: false,
include_images: false,
filters: {
include_domains: ['<string>'],
exclude_domains: ['<string>'],
include_text: ['<string>'],
exclude_text: ['<string>']
},
view: ['results'],
similar_to: '<string>',
stream: true,
user_context: {}
})
};
fetch('https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'mode' => 'auto',
'depth' => 'basic',
'topic' => 'general',
'max_results' => 10,
'add_answer' => false,
'include_raw_content' => false,
'include_images' => false,
'filters' => [
'include_domains' => [
'<string>'
],
'exclude_domains' => [
'<string>'
],
'include_text' => [
'<string>'
],
'exclude_text' => [
'<string>'
]
],
'view' => [
'results'
],
'similar_to' => '<string>',
'stream' => true,
'user_context' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"answer": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"content": "<string>",
"score": 0.5,
"meta": {}
}
],
"images": [
{
"url": "<string>",
"alt": "<string>"
}
],
"embeddings": [
[
123
]
]
},
"request_id": "<string>",
"meta": {
"api_version": "<string>",
"processing_ms": 123,
"tokens_used": 123,
"cost": {
"total": 1,
"breakdown": {}
}
}
}{
"error": "<string>"
}Search
curl --request POST \
--url https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"mode": "auto",
"depth": "basic",
"topic": "general",
"max_results": 10,
"add_answer": false,
"include_raw_content": false,
"include_images": false,
"filters": {
"include_domains": [
"<string>"
],
"exclude_domains": [
"<string>"
],
"include_text": [
"<string>"
],
"exclude_text": [
"<string>"
]
},
"view": [
"results"
],
"similar_to": "<string>",
"stream": true,
"user_context": {}
}
'import requests
url = "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search"
payload = {
"query": "<string>",
"mode": "auto",
"depth": "basic",
"topic": "general",
"max_results": 10,
"add_answer": False,
"include_raw_content": False,
"include_images": False,
"filters": {
"include_domains": ["<string>"],
"exclude_domains": ["<string>"],
"include_text": ["<string>"],
"exclude_text": ["<string>"]
},
"view": ["results"],
"similar_to": "<string>",
"stream": True,
"user_context": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
mode: 'auto',
depth: 'basic',
topic: 'general',
max_results: 10,
add_answer: false,
include_raw_content: false,
include_images: false,
filters: {
include_domains: ['<string>'],
exclude_domains: ['<string>'],
include_text: ['<string>'],
exclude_text: ['<string>']
},
view: ['results'],
similar_to: '<string>',
stream: true,
user_context: {}
})
};
fetch('https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'mode' => 'auto',
'depth' => 'basic',
'topic' => 'general',
'max_results' => 10,
'add_answer' => false,
'include_raw_content' => false,
'include_images' => false,
'filters' => [
'include_domains' => [
'<string>'
],
'exclude_domains' => [
'<string>'
],
'include_text' => [
'<string>'
],
'exclude_text' => [
'<string>'
]
],
'view' => [
'results'
],
'similar_to' => '<string>',
'stream' => true,
'user_context' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://906e-2001-5a8-6cc-e000-55c0-f0b-9da7-10b0.ngrok-free.app/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"mode\": \"auto\",\n \"depth\": \"basic\",\n \"topic\": \"general\",\n \"max_results\": 10,\n \"add_answer\": false,\n \"include_raw_content\": false,\n \"include_images\": false,\n \"filters\": {\n \"include_domains\": [\n \"<string>\"\n ],\n \"exclude_domains\": [\n \"<string>\"\n ],\n \"include_text\": [\n \"<string>\"\n ],\n \"exclude_text\": [\n \"<string>\"\n ]\n },\n \"view\": [\n \"results\"\n ],\n \"similar_to\": \"<string>\",\n \"stream\": true,\n \"user_context\": {}\n}"
response = http.request(request)
puts response.read_body{
"data": {
"answer": "<string>",
"results": [
{
"title": "<string>",
"url": "<string>",
"content": "<string>",
"score": 0.5,
"meta": {}
}
],
"images": [
{
"url": "<string>",
"alt": "<string>"
}
],
"embeddings": [
[
123
]
]
},
"request_id": "<string>",
"meta": {
"api_version": "<string>",
"processing_ms": 123,
"tokens_used": 123,
"cost": {
"total": 1,
"breakdown": {}
}
}
}{
"error": "<string>"
}Example Request
curl -X POST https://api.agentserp.com/search \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"query": "openai"}'
Body
Input contract for POST /search
Natural-language search query
Retrieval strategy: let backend choose, force keyword, or force embedding
auto, keyword, neural Depth/quality tier; advanced costs more & may run longer
basic, advanced Domain-specific retrieval agent
general, news Maximum number of results to return
1 <= x <= 50false → no answer. basic → one-sentence LLM answer. detailed → richer
false If true, include cleaned HTML text in each result
If true, also run an image search
Limit results to this many days in the past or a preset
day, week, month, year Fine-grained filtering for /search
Show child attributes
Show child attributes
Which data blocks to include in the response
Selective blocks to include in response
results, answer, images, embeddings Return docs similar to this URL instead of keyword search
If true, respond with NDJSON streaming
Serialization format for large/bulk results
json, ndjson, csv, parquet Opaque object echoed for personalization
Show child attributes
Show child attributes