# Yahoo Search Suggest API

> Returns Yahoo Search autocomplete suggestions for a query, including expansions using alphabet, question word, preposition or digit sets.

Category: Search & Knowledge. Region: global. 2 endpoints at `https://api.hoshime.com/v1/yahoosuggest/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/yahoosuggest
## GET /v1/yahoosuggest/autocomplete

Yahoo Search completions for a seed query, in the order Yahoo ranks them.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Seed text to complete, such as hello. (e.g. hello) |
| `limit` | integer | no | Items per page, 1 to 50. (default 50) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `text` (string)

```bash
curl "https://api.hoshime.com/v1/yahoosuggest/autocomplete?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/yahoosuggest/expand

Yahoo Search completions expanded with words from a set (the alphabet, question words, prepositions or digits), one query per word.

Scope: `social:read` · Units: 26 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Seed text to expand, such as hello. (e.g. hello) |
| `modifiers` | string | no | Words appended to the seed: alphabet (a to z), questions, prepositions or digits (0 to 9). (one of alphabet, questions, prepositions, digits; default questions; e.g. questions) |
| `lang` | string | no | Language of the question and preposition words: en or id. (one of en, id; default en; e.g. en) |
| `limit` | integer | no | Items per page, 1 to 500. (default 100; e.g. 50) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `text` (string)

```bash
curl "https://api.hoshime.com/v1/yahoosuggest/expand?query=hello&modifiers=questions&lang=en&limit=50" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
