# Fruityvice API

> Returns fruits with botanical family, order, genus and nutrition values per 100 g.

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

One fruit by name: family, order, genus and nutrition per 100 g.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | Fruit name in English, such as apple. Case does not matter. (e.g. apple) |
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/fruit?name=apple" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/fruityvice/all

Every fruit the API knows, with its family and nutrition.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/all" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/fruityvice/family

The fruits of one botanical family, such as Rosaceae.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `family` | string | yes | Botanical family in Latin, such as Rosaceae. (e.g. Rosaceae) |
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/family?family=Rosaceae" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/fruityvice/order

The fruits of one botanical order, such as Rosales, with their family and nutrition.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | yes | Botanical order in Latin, such as Rosales. (e.g. Rosales) |
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/order?order=Rosales" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/fruityvice/genus

The fruits of one botanical genus, such as Malus for apples.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `genus` | string | yes | Botanical genus in Latin, such as Malus. (e.g. Malus) |
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/genus?genus=Malus" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/fruityvice/byId

One fruit by its Fruityvice id.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Fruit id, such as 1 for banana. (e.g. 1) |
| `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: `family` (string), `genus` (string), `id` (string), `name` (string), `nutrition` (Nutrition), `nutrition.calories` (number (double)), `nutrition.carbohydrates` (number (double)), `nutrition.fat` (number (double)), `nutrition.protein` (number (double)), `nutrition.sugar` (number (double)), `order` (string)

```bash
curl "https://api.hoshime.com/v1/fruityvice/byId?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
