# App Store Search (`appstore.search`)

Search iOS/macOS apps in the Apple App Store of any country.

- **Route:** `POST /v1/run/appstore.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:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `query` | string | yes |  |  |
| `country` | string | no | "us" |  |
| `limit` | integer | no | 25 |  |

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

| Field | Meaning |
|---|---|
| `results` | Apps with rating, price, developer and store URL. |

## Example

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

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

```bash
getallapis run appstore.search '{"query":"todo list","limit":5}'
```

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