> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Templates

> Search Octoparse scraping templates and inspect their input schema before running executeTask.

> [!NOTE]
>
> 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`.

```text theme={null}
searchTemplates -> executeTask -> exportData
```

> [card] Authentication
>
> Prefer `x-api-key`. `x-client` and `accept-language` are optional.

> [card] Business data
>
> Read business fields from `response.data`. Use `requestId` only for troubleshooting.

> [!WARNING]
>
> For source-backed fields, clients must pass the option key to `executeTask`, not the display label.

> [accordion] Important response fields
>
> `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.

> [accordion] What to call next
>
> Follow `suggestedNextCall`, `workflow`, and `toolHint` when deciding whether to call `executeTask`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.