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

# Podscan Episodes Search: Inputs, Cost & CLI Example

> Finding every podcast episode whose transcript mentions a keyword or phrase, with host/guest names, companies, transcript highlights, and topic sentiment.

## Run in Enrichment Spreadsheet

<Info>
  Use this function as a column step in `deepline enrich`.
</Info>

```bash theme={null}
deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=podscan_episodes_search:{"query":"{{query}}"}' --json
```

<Tip>
  Map payload values to spreadsheet columns with `{{column_name}}` placeholders.
</Tip>

## Input Schema

| Name                         | Type      | Required | Default | Description                                                                                                                                                                                                  |
| ---------------------------- | --------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `payload.query`              | `string`  | Yes      |         | Full-text search query run across every indexed podcast transcript. Supports quoted phrases, e.g. `"customer interviews"`.                                                                                   |
| `payload.per_page`           | `integer` | No       | `10`    | Results per page (1-50). Defaults to 10.                                                                                                                                                                     |
| `payload.page`               | `integer` | No       |         | 1-indexed results page (1-1000).                                                                                                                                                                             |
| `payload.language`           | `string`  | No       |         | ISO 639-1 language code filter, e.g. `en`.                                                                                                                                                                   |
| `payload.include_transcript` | `boolean` | No       | `false` | Include the full episode transcript in each result. Defaults to false: only the matched `_search_highlight` snippet is returned, which keeps responses small. Set true only when you need whole transcripts. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Search every indexed podcast episode transcript for a keyword or phrase. Returns matching episodes with a highlighted snippet, host/guest metadata, and topic sentiment. Set include_transcript for full transcripts.",
    "properties": {
      "query": {
        "type": "string",
        "description": "Full-text search query run across every indexed podcast transcript. Supports quoted phrases, e.g. `\"customer interviews\"`.",
        "minLength": 1
      },
      "per_page": {
        "type": "integer",
        "description": "Results per page (1-50). Defaults to 10.",
        "default": 10,
        "minimum": 1,
        "maximum": 50
      },
      "page": {
        "type": "integer",
        "description": "1-indexed results page (1-1000).",
        "minimum": 1,
        "maximum": 1000
      },
      "language": {
        "type": "string",
        "description": "ISO 639-1 language code filter, e.g. `en`.",
        "minLength": 2,
        "maxLength": 2
      },
      "include_transcript": {
        "type": "boolean",
        "description": "Include the full episode transcript in each result. Defaults to false: only the matched `_search_highlight` snippet is returned, which keeps responses small. Set true only when you need whole transcripts.",
        "default": false
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output Schema

| Name          | Type     | Required | Default | Description                                    |
| ------------- | -------- | -------- | ------- | ---------------------------------------------- |
| `result.data` | `object` | Yes      |         | Provider response payload.                     |
| `result.meta` | `record` | No       |         | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "episodes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "episode_id": {
                  "type": "string"
                },
                "episode_title": {
                  "type": "string"
                },
                "episode_url": {
                  "type": "string"
                },
                "posted_at": {
                  "type": "string"
                },
                "episode_has_guests": {
                  "type": [
                    "boolean",
                    "null"
                  ]
                },
                "episode_transcript": {
                  "type": "string"
                },
                "_search_highlight": {},
                "podcast": {
                  "type": "object",
                  "properties": {
                    "podcast_id": {
                      "type": "string"
                    },
                    "podcast_name": {
                      "type": "string"
                    },
                    "podcast_url": {
                      "type": "string"
                    },
                    "podcast_reach_score": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                },
                "metadata": {
                  "type": "object",
                  "properties": {
                    "hosts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "host_name": {
                            "type": "string"
                          },
                          "guest_name": {
                            "type": "string"
                          },
                          "guest_company": {
                            "type": "string"
                          },
                          "guest_industry": {
                            "type": "string"
                          },
                          "guest_occupation": {
                            "type": "string"
                          },
                          "host_company": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "guests": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "host_name": {
                            "type": "string"
                          },
                          "guest_name": {
                            "type": "string"
                          },
                          "guest_company": {
                            "type": "string"
                          },
                          "guest_industry": {
                            "type": "string"
                          },
                          "guest_occupation": {
                            "type": "string"
                          },
                          "host_company": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "topics": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "topic_id": {
                        "type": "string"
                      },
                      "topic_name": {
                        "type": "string"
                      },
                      "sentiment": {
                        "type": "object",
                        "additionalProperties": {}
                      }
                    },
                    "additionalProperties": false
                  }
                }
              },
              "additionalProperties": false
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "total": {
                "type": "number"
              },
              "per_page": {
                "type": "number"
              },
              "current_page": {
                "type": "number"
              },
              "last_page": {
                "type": "number"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Advanced: Direct CLI

<Info>
  Use direct execution for single payload debugging.
</Info>

```bash theme={null}
deepline tools execute podscan_episodes_search --payload '{
  "query": "string"
}' --json
```

### CLI flags

| Flag                        | Description                                         |
| --------------------------- | --------------------------------------------------- |
| `--json`                    | Print machine-readable output.                      |
| `--wait`                    | Wait for terminal provider status when supported.   |
| `--debug`                   | Enable wait mode with additional status/log output. |
| `--wait-timeout SECONDS`    | Max seconds to wait in wait mode.                   |
| `--poll-interval SECONDS`   | Polling interval in seconds during wait mode.       |
| `--timeout SECONDS`         | Request timeout in seconds.                         |
| `--connect-timeout SECONDS` | Connection timeout in seconds.                      |

## Cost

* Pricing model: `per_result` (per result).
* Estimated Deepline credits: `0.14` per pricing unit.
* Billing mode: `post_deduct`.
