# Travel Guide Search (Wikivoyage) (`wikivoyage.search`)

Search Wikivoyage, the free travel guide, for destinations, itineraries and travel topics.

- **Route:** `POST /v1/run/wikivoyage.search`
- **Price:** $0.0005 per request ($0.50 per 1,000) · `cost_usd` on every response
- **Source:** Wikimedia APIs (`wikipedia`) · failover: no
- **Measured latency:** not enough calls measured yet
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `query` | string | yes |  | Search words |
| `language` | string | no | "en" | Language edition, e.g. en, de, fr |
| `limit` | integer | no | 10 | Results to return |

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

| Field | Meaning |
|---|---|
| `results` | title, snippet, words, url. |
| `total` | Total matches. |
| `license` | CC BY-SA attribution note. |

## Example

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

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

```bash
getallapis run wikivoyage.search '{"query":"Lisbon","limit":5}'
```

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