# Podcast Search (`apple_podcasts.search`)

Search the Apple Podcasts directory: show name, author, genres, episode count and the show's public RSS feed URL.

- **Route:** `POST /v1/run/apple_podcasts.search`
- **Price:** $0.00085 per request ($0.85 per 1,000) · `cost_usd` on every response
- **Source:** Apple iTunes Search API + App Store RSS (`apple`) · failover: no
- **Measured latency:** p50 861 ms · p95 861 ms · p99 861 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `query` | string | yes |  | Search words |
| `country` | string | no | "us" | Two-letter country code of the store |
| `limit` | integer | no | 25 | Results to return |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `podcasts` | podcast_id, name, author, genres, episode_count, feed_url, artwork, url. |
| `count` | Shows returned. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/apple_podcasts.search \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"machine learning","limit":5}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('apple_podcasts.search', {'query': 'machine learning', 'limit': 5})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run apple_podcasts.search '{"query":"machine learning","limit":5}'
```

Quote first (free, validates input): `POST /v1/quote/apple_podcasts.search` with the same body.
