{"componentChunkName":"component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js","path":"/resources/content-output-formats/","result":{"data":{"mdx":{"id":"a279d7c5-bfb0-54ce-b4dd-333083bc8a25","excerpt":"You can configure the format of verses returned from API.Bible three ways depending on your use-case:  html ,  json , and  text  .\nBelow you will see a quick…","fields":{"slug":"/resources/content-output-formats/"},"frontmatter":{"title":"Content Output Formats","description":null,"image":null,"disableTableOfContents":null},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Content Output Formats\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"You can configure the format of verses returned from API.Bible three ways depending on your use-case: \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"html\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"json\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"text\"), \" .\\nBelow you will see a quick overview and sample response for each, showing Genesis 1:1.\"), mdx(\"h3\", {\n    \"id\": \"html\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h3\"\n  }, {\n    \"href\": \"#html\",\n    \"aria-label\": \"html permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  })))), mdx(\"strong\", {\n    parentName: \"h3\"\n  }, \"HTML\")), mdx(\"p\", null, \"HTML-formatted verse content, alongside our \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"https://docs.api.bible/guides/styling\"\n  }), \"scripture styles\"), \" package, allows you\\nto display your API results directly in your application without a need for additional styling or transformation.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-json\"\n  }), \"{\\n  \\\"data\\\": {\\n    \\\"id\\\": \\\"GEN.1.1\\\",\\n    \\\"orgId\\\": \\\"GEN.1.1\\\",\\n    \\\"bookId\\\": \\\"GEN\\\",\\n    \\\"chapterId\\\": \\\"GEN.1\\\",\\n    \\\"bibleId\\\": \\\"78a9f6124f344018-01\\\",\\n    \\\"reference\\\": \\\"Gen. 1:1\\\",\\n    \\\"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>\\\",\\n    \\\"verseCount\\\": 1,\\n    \\\"copyright\\\": \\\"The Holy Bible, New International Version\\xAE NIV\\xAE Copyright \\xA9 1973, 1978, 1984, 2011 by Biblica, Inc.\\xAE Used by Permission of Biblica, Inc.\\xAE All rights reserved worldwide.\\\",\\n    \\\"next\\\": { \\\"id\\\": \\\"GEN.1.2\\\", \\\"number\\\": \\\"2\\\" },\\n    \\\"previous\\\": { \\\"id\\\": \\\"GEN.intro.0\\\", \\\"number\\\": \\\"0\\\" }\\n  }\\n}\\n\")), mdx(\"h3\", {\n    \"id\": \"json\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h3\"\n  }, {\n    \"href\": \"#json\",\n    \"aria-label\": \"json permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  })))), mdx(\"strong\", {\n    parentName: \"h3\"\n  }, \"JSON\")), mdx(\"p\", null, \"JSON-formatted verse content allows you to build your own display mechanism for Bible verses.\\nThe JSON output is structured as an array of content blocks with varying display attributes.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-json\"\n  }), \"{\\n  \\\"data\\\": {\\n    \\\"id\\\": \\\"GEN.1.1\\\",\\n    \\\"orgId\\\": \\\"GEN.1.1\\\",\\n    \\\"bookId\\\": \\\"GEN\\\",\\n    \\\"chapterId\\\": \\\"GEN.1\\\",\\n    \\\"bibleId\\\": \\\"78a9f6124f344018-01\\\",\\n    \\\"reference\\\": \\\"Gen. 1:1\\\",\\n    \\\"content\\\": [\\n      {\\n        \\\"name\\\": \\\"para\\\",\\n        \\\"type\\\": \\\"tag\\\",\\n        \\\"attrs\\\": { \\\"style\\\": \\\"s1\\\" },\\n        \\\"items\\\": [{ \\\"text\\\": \\\"The Beginning\\\", \\\"type\\\": \\\"text\\\" }]\\n      },\\n      {\\n        \\\"name\\\": \\\"para\\\",\\n        \\\"type\\\": \\\"tag\\\",\\n        \\\"attrs\\\": { \\\"style\\\": \\\"p\\\" },\\n        \\\"items\\\": [\\n          {\\n            \\\"name\\\": \\\"verse\\\",\\n            \\\"type\\\": \\\"tag\\\",\\n            \\\"attrs\\\": { \\\"number\\\": \\\"1\\\", \\\"style\\\": \\\"v\\\", \\\"sid\\\": \\\"GEN 1:1\\\" },\\n            \\\"items\\\": [{ \\\"text\\\": \\\"1\\\", \\\"type\\\": \\\"text\\\" }]\\n          },\\n          {\\n            \\\"text\\\": \\\"In the beginning God created the heavens and the earth. \\\",\\n            \\\"type\\\": \\\"text\\\",\\n            \\\"attrs\\\": { \\\"verseId\\\": \\\"GEN.1.1\\\", \\\"verseOrgIds\\\": [\\\"GEN.1.1\\\"] }\\n          }\\n        ]\\n      }\\n    ],\\n    \\\"verseCount\\\": 1,\\n    \\\"copyright\\\": \\\"The Holy Bible, New International Version\\xAE NIV\\xAE Copyright \\xA9 1973, 1978, 1984, 2011 by Biblica, Inc.\\xAE Used by Permission of Biblica, Inc.\\xAE All rights reserved worldwide.\\\",\\n    \\\"next\\\": { \\\"id\\\": \\\"GEN.1.2\\\", \\\"number\\\": \\\"2\\\" },\\n    \\\"previous\\\": { \\\"id\\\": \\\"GEN.intro.0\\\", \\\"number\\\": \\\"0\\\" }\\n  }\\n}\\n\")), mdx(\"h3\", {\n    \"id\": \"text\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", _extends({\n    parentName: \"h3\"\n  }, {\n    \"href\": \"#text\",\n    \"aria-label\": \"text permalink\",\n    \"className\": \"anchor before\"\n  }), mdx(\"svg\", _extends({\n    parentName: \"a\"\n  }, {\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }), mdx(\"path\", _extends({\n    parentName: \"svg\"\n  }, {\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  })))), mdx(\"strong\", {\n    parentName: \"h3\"\n  }, \"Text\")), mdx(\"p\", null, \"Text-formatted verse content minimizes clutter and only returns the raw text of the given verse.\"), mdx(\"pre\", null, mdx(\"code\", _extends({\n    parentName: \"pre\"\n  }, {\n    \"className\": \"language-json\"\n  }), \"{\\n  \\\"data\\\": {\\n    \\\"id\\\": \\\"GEN.1.1\\\",\\n    \\\"orgId\\\": \\\"GEN.1.1\\\",\\n    \\\"bookId\\\": \\\"GEN\\\",\\n    \\\"chapterId\\\": \\\"GEN.1\\\",\\n    \\\"bibleId\\\": \\\"78a9f6124f344018-01\\\",\\n    \\\"reference\\\": \\\"Gen. 1:1\\\",\\n    \\\"content\\\": \\\"The Beginning\\\\n     [1] In the beginning God created the heavens and the earth. \\\\n\\\",\\n    \\\"verseCount\\\": 1,\\n    \\\"copyright\\\": \\\"The Holy Bible, New International Version\\xAE NIV\\xAE Copyright \\xA9 1973, 1978, 1984, 2011 by Biblica, Inc.\\xAE Used by Permission of Biblica, Inc.\\xAE All rights reserved worldwide.\\\",\\n    \\\"next\\\": { \\\"id\\\": \\\"GEN.1.2\\\", \\\"number\\\": \\\"2\\\" },\\n    \\\"previous\\\": { \\\"id\\\": \\\"GEN.intro.0\\\", \\\"number\\\": \\\"0\\\" }\\n  }\\n}\\n\")));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":3,"value":"HTML"},{"depth":3,"value":"JSON"},{"depth":3,"value":"Text"}]}},"pageContext":{"slug":"/resources/content-output-formats/","prev":{"label":"Legacy Users FAQ","link":"/resources/legacy-users-faq"},"githubEditUrl":"https:/github.com/americanbible/api-bible-docs/tree/master/src/@rocketset/gatsby-theme-docs/src/docs/resources/content-output-formats.mdx"}}}