> ## 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.

# Particle: Get Podcast Advertising

> Get a podcast's advertising profile (total ads, unique sponsors, host-read share) from its slug. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Get a podcast's advertising profile (total ads, unique sponsors, host-read share) from its slug.

> [!NOTE]
>
> Tool ID: `particle_get_podcast_advertising`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'particle_get_podcast_advertising',
  {
    "id": "id_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute particle_get_podcast_advertising --input '{
  "id": "id_123"
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "avg_ads_per_episode": 123,
    "episodes_with_ads": 123,
    "podcast_id": "podcast_123",
    "read_type_breakdown": {
      "host_read": 123,
      "pre_recorded": 123
    },
    "top_sponsors": [
      {
        "ad_count": 123,
        "episode_count": 123,
        "sponsor_name": "Example"
      }
    ],
    "total_ads": 123,
    "unique_sponsors": 123
  }
}
```

Use `deepline describe particle_get_podcast_advertising --json` for the latest machine-readable contract.

## Input reference

Returns advertising intelligence for a specific podcast, including aggregate stats, read type breakdown, and top sponsors. Identify the podcast by slug (e.g., 'all-in') or ID.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.id` | `string` | Yes | — | Podcast slug (e.g., 'all-in'), internal ID, or numeric iTunes ID |

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

  ### Input JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Returns advertising intelligence for a specific podcast, including aggregate stats, read type breakdown, and top sponsors. Identify the podcast by slug (e.g., 'all-in') or ID.",
    "properties": {
      "id": {
        "type": "string",
        "description": "Podcast slug (e.g., 'all-in'), internal ID, or numeric iTunes ID"
      }
    },
    "required": [
      "id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.avg_ads_per_episode` | `number` | Yes | — | Average ads per episode Format: `double`. |
| `result.data.episodes_with_ads` | `integer` | Yes | — | Number of episodes containing ads Format: `int64`. |
| `result.data.podcast_id` | `string` | Yes | — | Podcast identifier |
| `result.data.podcast_slug` | `string` | No | — | Human-readable slug (when available) |
| `result.data.read_type_breakdown` | `object` | Yes | — | — |
| `result.data.read_type_breakdown.host_read` | `integer` | Yes | — | Number of host-read ads Format: `int64`. |
| `result.data.read_type_breakdown.pre_recorded` | `integer` | Yes | — | Number of pre-recorded ads Format: `int64`. |
| `result.data.top_sponsors` | `array \| null` | Yes | — | Most frequent sponsors |
| `result.data.top_sponsors[].ad_count` | `integer` | Yes | — | Total number of ads Format: `int64`. |
| `result.data.top_sponsors[].company_id` | `string` | No | — | Linked company identifier (domain, slug, or encoded ID) |
| `result.data.top_sponsors[].episode_count` | `integer` | Yes | — | Number of episodes with ads from this sponsor Format: `int64`. |
| `result.data.top_sponsors[].slug` | `string` | No | — | Stable human-readable handle (the linked knowledge-graph slug, e.g. 'nvidia'), when known. Prefer it (or company\_id) as a /v1/companies key. |
| `result.data.top_sponsors[].sponsor_id` | `string` | No | — | Linked sponsor ID, when known. Works as the \{id} of /v1/podcasts/advertising/sponsors/\{id} and its sub-resources, including when the sponsor has no linked company. |
| `result.data.top_sponsors[].sponsor_name` | `string` | Yes | — | Sponsor name |
| `result.data.total_ads` | `integer` | Yes | — | Total number of ads detected Format: `int64`. |
| `result.data.unique_sponsors` | `integer` | Yes | — | Number of distinct sponsors Format: `int64`. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

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

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "avg_ads_per_episode": {
            "type": "number",
            "description": "Average ads per episode",
            "format": "double"
          },
          "episodes_with_ads": {
            "type": "integer",
            "description": "Number of episodes containing ads",
            "format": "int64"
          },
          "podcast_id": {
            "type": "string",
            "description": "Podcast identifier"
          },
          "podcast_slug": {
            "type": "string",
            "description": "Human-readable slug (when available)"
          },
          "read_type_breakdown": {
            "type": "object",
            "properties": {
              "host_read": {
                "type": "integer",
                "description": "Number of host-read ads",
                "format": "int64"
              },
              "pre_recorded": {
                "type": "integer",
                "description": "Number of pre-recorded ads",
                "format": "int64"
              }
            },
            "required": [
              "host_read",
              "pre_recorded"
            ],
            "additionalProperties": false
          },
          "top_sponsors": {
            "type": [
              "array",
              "null"
            ],
            "description": "Most frequent sponsors",
            "items": {
              "type": "object",
              "properties": {
                "ad_count": {
                  "type": "integer",
                  "description": "Total number of ads",
                  "format": "int64"
                },
                "company_id": {
                  "type": "string",
                  "description": "Linked company identifier (domain, slug, or encoded ID)"
                },
                "episode_count": {
                  "type": "integer",
                  "description": "Number of episodes with ads from this sponsor",
                  "format": "int64"
                },
                "slug": {
                  "type": "string",
                  "description": "Stable human-readable handle (the linked knowledge-graph slug, e.g. 'nvidia'), when known. Prefer it (or company_id) as a /v1/companies key."
                },
                "sponsor_id": {
                  "type": "string",
                  "description": "Linked sponsor ID, when known. Works as the {id} of /v1/podcasts/advertising/sponsors/{id} and its sub-resources, including when the sponsor has no linked company."
                },
                "sponsor_name": {
                  "type": "string",
                  "description": "Sponsor name"
                }
              },
              "required": [
                "sponsor_name",
                "ad_count",
                "episode_count"
              ],
              "additionalProperties": false
            }
          },
          "total_ads": {
            "type": "integer",
            "description": "Total number of ads detected",
            "format": "int64"
          },
          "unique_sponsors": {
            "type": "integer",
            "description": "Number of distinct sponsors",
            "format": "int64"
          }
        },
        "required": [
          "podcast_id",
          "total_ads",
          "unique_sponsors",
          "episodes_with_ads",
          "avg_ads_per_episode",
          "read_type_breakdown",
          "top_sponsors"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Particle provider guide](https://deepline.com/docs/providers/particle/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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