Skip to main content
GET
/
api
/
agentTools
/
searchTemplates
Search Templates
curl --request GET \
  --url https://api.example.com/api/agentTools/searchTemplates
import requests

url = "https://api.example.com/api/agentTools/searchTemplates"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.example.com/api/agentTools/searchTemplates', 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://api.example.com/api/agentTools/searchTemplates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.example.com/api/agentTools/searchTemplates"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.example.com/api/agentTools/searchTemplates")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/api/agentTools/searchTemplates")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
The request builder, cURL example, and response schema are generated from the OpenAPI definition in the API panel. Use this page for workflow guidance and AgentTools-specific rules.
Search Octoparse scraping templates when the client does not already know which template to run.
1

Search for candidate templates

Use keyword, id, slug, limitIds, or tags to narrow the template list.
2

Inspect the recommended template

Read recommendedTemplateName, inputSchema, sourceTree, sourceSummary, and outputSchema from response.data.
3

Prepare executeTask

Use each inputSchema.field value as the stable parameter key for executeTask.
searchTemplates -> executeTask -> exportData

Authentication

Prefer x-api-key. x-client and accept-language are optional.

Business data

Read business fields from response.data. Use requestId only for troubleshooting.
For source-backed fields, clients must pass the option key to executeTask, not the display label.
recommendedTemplateName is the best matching template name to pass to executeTask.templates contains matched templates and their metadata.inputSchema describes the inputs for the recommended template. Use field as the parameter key.sourceTree and sourceSummary describe source-backed options when a template requires selection.outputSchema describes expected output fields.
Follow suggestedNextCall, workflow, and toolHint when deciding whether to call executeTask.