{"id":16642165,"url":"https://github.com/artskydj/canonapi.com","last_synced_at":"2025-12-24T09:24:04.633Z","repository":{"id":146977105,"uuid":"329520562","full_name":"ArtskydJ/canonapi.com","owner":"ArtskydJ","description":"A web API to pull scripture passages","archived":false,"fork":false,"pushed_at":"2021-03-26T15:07:57.000Z","size":1988,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T15:53:46.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtskydJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-14T05:51:45.000Z","updated_at":"2021-03-26T15:07:59.000Z","dependencies_parsed_at":"2023-05-23T10:15:14.796Z","dependency_job_id":null,"html_url":"https://github.com/ArtskydJ/canonapi.com","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fcanonapi.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fcanonapi.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fcanonapi.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fcanonapi.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtskydJ","download_url":"https://codeload.github.com/ArtskydJ/canonapi.com/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165405,"owners_count":20246721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T07:49:00.369Z","updated_at":"2025-12-24T09:24:04.626Z","avatar_url":"https://github.com/ArtskydJ.png","language":"JavaScript","readme":"A simple public API to get passages of scripture.  Uses the World English Bible (WEB).\r\n\r\n## Usage\r\n\r\n```js\r\nfetch('https://www.canonapi.com/v1/genesis/1.json')\r\n\t.then(res =\u003e res.json())\r\n\t.then(verses =\u003e {\r\n\t\tconsole.log('Genesis 1:1 -- ' + verses[0])\r\n\t\tconsole.log(verses)\r\n\t})\r\n// First console.log:\r\n// Genesis 1:1 -- In the beginning, God created the heavens and the earth.\r\n\r\n// Second console.log:\r\n// [\r\n//     \"In the beginning, God created the heavens and the earth.  \",\r\n//     \"The earth was formless and empty. Darkness was on the surface of the deep and God’s Spirit was hovering over the surface of the waters. \",\r\n//     \"God said, “Let there be light,” and there was light.  \",\r\n// ...\r\n// ]\r\n```\r\n\r\n### Request\r\n\r\n#### `GET https://www.canonapi.com/v1/[BOOK]/[CHAPTER].json`\r\n\r\nIf `[BOOK]` or `[CHAPTER]` don't match, you'll get a `404` status code.\r\n\r\n##### `[BOOK]`\r\n\r\n`[BOOK]` must be lowercase, with the spaces removed. For example:\r\n\t- `genesis`\r\n\t- `1samuel`\r\n\t- `psalms`\r\n\t- `songofsolomon`\r\n\t- `lamentations`\r\n\t- `acts`\r\n\t- `3john`\r\n\r\n##### `[CHAPTER]`\r\n\r\n`[CHAPTER]` is a number from 1 to the maximum number of chapters in that book.\r\n\r\nChapters are 1-indexed.\r\n\r\n\r\n### Response\r\n\r\nIf everything goes to plan, you'll get a `200` status code.\r\n\r\nIt will have valid JSON array, with each element being a string of the verse's text.\r\n\r\nVerses are 0-indexed. `verses[0]` gets verse 1. Watch out for off-by-one errors in the verses!\r\n\r\n\r\n## Client\r\n\r\nThere is a browser-ready client:\r\n```html\r\n\u003cscript src=\"https://www.canonapi.com/v1client.js\"\u003e\u003c/script\u003e\r\n\u003cscript\u003e\r\n\twindow.canonapiv1client('genesis', 1).then(({ verses, bookName }) =\u003e {\r\n\t\tconsole.log(verses[0]) // 'In the beginning...'\r\n\t\tconsole.log(verses) // [ 'In the beginning...', ... ]\r\n\t\tconsole.log(bookName) // 'Genesis'\r\n\t})\r\n\u003c/script\u003e\r\n```\r\n\r\n## License\r\n\r\n[MIT](https://choosealicense.com/licenses/mit)\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fcanonapi.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartskydj%2Fcanonapi.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fcanonapi.com/lists"}