# Bible API API

> Returns Bible passages, chapters, random verses, and the available translations and books.

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

A Bible passage by reference, such as John 3:16 or Matthew 5:3-5, in one translation.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `reference` | string | yes | Book, chapter and verses, such as John 3:16 or Psalm 23:1-3. (e.g. John 3:16) |
| `translation` | string | no | Translation identifier from translations, such as web, kjv or asv. (default web) |
| `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: `license` (string), `reference` (string), `text` (string), `translationId` (string), `translationName` (string), `verses` (Verse[]), `verses[].book` (string), `verses[].bookId` (string), `verses[].chapter` (integer (int64)), `verses[].text` (string), `verses[].verse` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/bibleapi/verse?reference=John+3%3A16" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bibleapi/translations

The Bible translations the API serves, with their language and license.

Scope: `social:read` · Units: 1 · Cached: 10080 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: `id` (string), `language` (string), `languageCode` (string), `license` (string), `name` (string)

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

## GET /v1/bibleapi/books

The books of one translation, in order, with the id each book takes in a reference.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `translation` | string | yes | Translation identifier from translations, such as kjv. (e.g. kjv) |
| `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: `items` (Book[]), `items[].id` (string), `items[].name` (string), `translation` (string)

```bash
curl "https://api.hoshime.com/v1/bibleapi/books?translation=kjv" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bibleapi/chapter

All verses of one chapter of a book in one translation, from its book id such as JHN.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `book` | string | yes | Book id as listed by books, such as JHN for John or GEN for Genesis. (e.g. JHN) |
| `chapter` | integer | yes | Chapter number. (e.g. 3) |
| `translation` | string | no | Translation identifier from translations, such as web, kjv or asv. (default web; e.g. kjv) |
| `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: `book` (string), `bookId` (string), `chapter` (integer (int64)), `translationId` (string), `verses` (Verse[]), `verses[].book` (string), `verses[].bookId` (string), `verses[].chapter` (integer (int64)), `verses[].text` (string), `verses[].verse` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/bibleapi/chapter?book=JHN&chapter=3&translation=kjv" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/bibleapi/randomVerse

A random verse of the Bible in one translation.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `translation` | string | no | Translation identifier from translations, such as web, kjv or asv. (default web; e.g. kjv) |
| `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: `book` (string), `bookId` (string), `chapter` (integer (int64)), `text` (string), `verse` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/bibleapi/randomVerse?translation=kjv" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
