API.Bible Logo

Documentation Navigation

Content Output Formats

Table of Contents

You can configure the format of verses returned from API.Bible three ways depending on your use-case: html, json, and text . Below you will see a quick overview and sample response for each, showing Genesis 1:1.

HTML

HTML-formatted verse content, alongside our scripture styles package, allows you to display your API results directly in your application without a need for additional styling or transformation.

{
"data": {
"id": "GEN.1.1",
"orgId": "GEN.1.1",
"bookId": "GEN",
"chapterId": "GEN.1",
"bibleId": "78a9f6124f344018-01",
"reference": "Gen. 1:1",
"content": "<p class=\"s1\">The Beginning</p><p class=\"p\"><span data-number=\"1\" data-sid=\"GEN 1:1\" class=\"v\">1</span>In the beginning God created the heavens and the earth. </p>",
"verseCount": 1,
"copyright": "The Holy Bible, New International Version® NIV® Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.® Used by Permission of Biblica, Inc.® All rights reserved worldwide.",
"next": { "id": "GEN.1.2", "number": "2" },
"previous": { "id": "GEN.intro.0", "number": "0" }
}
}

JSON

JSON-formatted verse content allows you to build your own display mechanism for Bible verses. The JSON output is structured as an array of content blocks with varying display attributes.

{
"data": {
"id": "GEN.1.1",
"orgId": "GEN.1.1",
"bookId": "GEN",
"chapterId": "GEN.1",
"bibleId": "78a9f6124f344018-01",
"reference": "Gen. 1:1",
"content": [
{
"name": "para",
"type": "tag",
"attrs": { "style": "s1" },
"items": [{ "text": "The Beginning", "type": "text" }]
},
{
"name": "para",
"type": "tag",
"attrs": { "style": "p" },
"items": [
{
"name": "verse",
"type": "tag",
"attrs": { "number": "1", "style": "v", "sid": "GEN 1:1" },
"items": [{ "text": "1", "type": "text" }]
},
{
"text": "In the beginning God created the heavens and the earth. ",
"type": "text",
"attrs": { "verseId": "GEN.1.1", "verseOrgIds": ["GEN.1.1"] }
}
]
}
],
"verseCount": 1,
"copyright": "The Holy Bible, New International Version® NIV® Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.® Used by Permission of Biblica, Inc.® All rights reserved worldwide.",
"next": { "id": "GEN.1.2", "number": "2" },
"previous": { "id": "GEN.intro.0", "number": "0" }
}
}

Text

Text-formatted verse content minimizes clutter and only returns the raw text of the given verse.

{
"data": {
"id": "GEN.1.1",
"orgId": "GEN.1.1",
"bookId": "GEN",
"chapterId": "GEN.1",
"bibleId": "78a9f6124f344018-01",
"reference": "Gen. 1:1",
"content": "The Beginning\n [1] In the beginning God created the heavens and the earth. \n",
"verseCount": 1,
"copyright": "The Holy Bible, New International Version® NIV® Copyright © 1973, 1978, 1984, 2011 by Biblica, Inc.® Used by Permission of Biblica, Inc.® All rights reserved worldwide.",
"next": { "id": "GEN.1.2", "number": "2" },
"previous": { "id": "GEN.intro.0", "number": "0" }
}
}