# Primbon API

> Returns Javanese primbon readings: weton, zodiac signs, dream interpretations, name meanings and couple name compatibility.

Category: Religion & Culture. Region: ID. 5 endpoints at `https://api.hoshime.com/v1/primbon/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/primbon
## GET /v1/primbon/zodiac

The zodiac sign of a birth date, or of a sign name, with its period, traits, lucky numbers, colours, stones, planet and compatible sign, from primbon.com (zodiak).

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `sign` | string | no | Zodiac sign in English, such as aries or sagittarius. Give sign or date. (one of capricorn, aquarius, pisces, aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius; e.g. aries) |
| `date` | string | no | Birth date as YYYY-MM-DD, such as 1990-08-17; its sign is returned. Give sign or date. |
| `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: `compatibleSign` (string), `description` (string), `element` (string), `luckyColor` (string), `luckyFlower` (string), `luckyNumbers` (string[]), `luckyScent` (string), `luckyStone` (string), `name` (string), `period` (string), `planet` (string), `sign` (string), `traits` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/primbon/zodiac?sign=aries" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/primbon/dreamMeaning

Dream interpretations (tafsir mimpi) from primbon.com that match the words of a dream, the most relevant first, with their relevance in percent.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Words of the dream, such as ular masuk rumah (a snake enters the house). (e.g. ular masuk rumah) |
| `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: `label` (string), `meaning` (string), `rank` (integer (int64)), `relevance` (integer (int64)), `title` (string)

```bash
curl "https://api.hoshime.com/v1/primbon/dreamMeaning?query=ular+masuk+rumah" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/primbon/nameMeaning

The meaning of a first name (arti nama) from primbon.com, with the personality the name is said to give, in Javanese and Islamic names alike.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | The name, such as Budi. (e.g. Budi) |
| `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: `meaning` (string), `name` (string), `personality` (string), `traits` (string[])

```bash
curl "https://api.hoshime.com/v1/primbon/nameMeaning?name=Budi" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/primbon/weton

The weton of a birth date in the Javanese calendar from primbon.com: the day and pasaran, the neptu, the character, the unlucky day (hari naas), and the lucky direction, stone, job and fortune.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `date` | string | yes | Birth date as YYYY-MM-DD, such as 1990-08-17. (e.g. 1990-08-17) |
| `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: `businessTrait` (string), `character` (string), `date` (string), `day` (string), `fortune` (string), `job` (string), `luckyDirection` (string), `luckyStone` (string), `naasDay` (string), `neptu` (integer (int64)), `pasaran` (string)

```bash
curl "https://api.hoshime.com/v1/primbon/weton?date=1990-08-17" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/primbon/nameCompatibility

Name compatibility of a couple (kecocokan nama pasangan) from primbon.com: the positive and negative traits of the first name and the relationship the page describes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes | The first name, such as Budi. (e.g. Budi) |
| `partner` | string | yes | The partner's name, such as Sari. (e.g. Sari) |
| `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: `name` (string), `negativeTraits` (string[]), `partner` (string), `positiveTraits` (string[]), `relationship` (string)

```bash
curl "https://api.hoshime.com/v1/primbon/nameCompatibility?name=Budi&partner=Sari" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
