# Search Suggest API

> Returns search autocomplete suggestions for a text from Google, Google Images, Scholar, DuckDuckGo, Bing and YouTube.

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

Google search suggestions for a text, in a chosen interface language.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `lang` | string | no | Interface language code, such as en or id. (default en) |
| `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/suggest/google?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/googleImages

Google Images search suggestions for a text, in a chosen interface language.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. kucing) |
| `lang` | string | no | Interface language code, such as en or id. (default en) |
| `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/suggest/googleImages?query=kucing" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/googleScholar

Google Scholar search suggestions for an academic text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. machine learning) |
| `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/suggest/googleScholar?query=machine+learning" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/duckduckgo

DuckDuckGo search suggestions for a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `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/suggest/duckduckgo?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/bing

Bing search suggestions for a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `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/suggest/bing?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/youtube

YouTube search suggestions for a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `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/suggest/youtube?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/yandex

Yandex search suggestions for a text.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `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/suggest/yandex?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/amazon

Amazon.com product search suggestions for a text, across all departments.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | The text to complete, such as hello. (e.g. hello) |
| `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/suggest/amazon?query=hello" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/googleExpand

Google search suggestions 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 | The text to complete, such as hello. (e.g. go) |
| `lang` | string | no | Interface language code, such as en or id. (default en) |
| `modifiers` | string | no | Words appended to the seed: alphabet (a to z), questions (how, what, …), prepositions (for, with, …) or digits (0 to 9). (one of alphabet, questions, prepositions, digits; default questions; e.g. questions) |
| `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/suggest/googleExpand?query=go&modifiers=questions&limit=50" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/suggest/yandexExpand

Yandex search suggestions 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 | The text to complete, such as hello. (e.g. go) |
| `modifiers` | string | no | Words appended to the seed: alphabet (a to z), questions (how, what, …), prepositions (for, with, …) or digits (0 to 9). (one of alphabet, questions, prepositions, digits; default questions; e.g. digits) |
| `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/suggest/yandexExpand?query=go&modifiers=digits&limit=50" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
