{"openapi":"3.1.0","info":{"title":"The Bible Prophecy Project API","version":"1","summary":"Read-only JSON API to a database of biblical prophecies.","description":"Free, read-only access to the database of The Bible Prophecy Project: biblical prophecies with King James Version text, claimed fulfillment, historical periods, themes and sources. No key is needed. Cite the record URL when you use a record. Responses are cacheable for an hour; please cache them. An MCP server for AI agents is at https://thebibleprophecyproject.com/mcp.","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"contact":{"name":"The Bible Prophecy Project","url":"https://thebibleprophecyproject.com/developers/"}},"servers":[{"url":"https://thebibleprophecyproject.com","description":"Production"}],"tags":[{"name":"Prophecies","description":"Records and the collections that group them."}],"externalDocs":{"description":"For developers and AI agents","url":"https://thebibleprophecyproject.com/developers/"},"paths":{"/api/v1/":{"get":{"operationId":"apiIndex","summary":"API index","tags":["Prophecies"],"parameters":[],"responses":{"200":{"description":"Name, version, license and endpoint list.","content":{"application/json":{"schema":{"type":"object"}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/search":{"get":{"operationId":"search","summary":"Search records","tags":["Prophecies"],"parameters":[{"name":"q","in":"query","description":"Words to search for. Quoted, last word matches as a prefix.","required":false,"schema":{"type":"string","maxLength":100},"example":"virgin"},{"name":"testament","in":"query","description":"Testament.","required":false,"schema":{"type":"string","enum":["old","new"]}},{"name":"book","in":"query","description":"Book slug from /api/v1/books.","required":false,"schema":{"type":"string"},"example":"isaiah"},{"name":"theme","in":"query","description":"Theme id from /api/v1/themes.","required":false,"schema":{"type":"string"}},{"name":"period","in":"query","description":"Historical period number.","required":false,"schema":{"type":"integer","minimum":1,"maximum":18}},{"name":"placed","in":"query","description":"Where the fulfillment is traditionally placed.","required":false,"schema":{"type":"string","enum":["past","future"]}},{"name":"form","in":"query","description":"Form of the prophecy.","required":false,"schema":{"type":"string","enum":["figurative","type","symbolic"]}},{"name":"nation","in":"query","description":"Nation slug from /api/v1/nations.","required":false,"schema":{"type":"string"}},{"name":"messianic","in":"query","description":"Set to 1 for messianic passages.","required":false,"schema":{"type":"integer","enum":[0,1]}},{"name":"dated","in":"query","description":"Set to 1 for records with a stated date.","required":false,"schema":{"type":"integer","enum":[0,1]}},{"name":"limit","in":"query","description":"Results per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","description":"Results to skip.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A page of record summaries.","content":{"application/json":{"schema":{"type":"object","required":["total","results"],"properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Summary"}}}},"example":{"total":1,"limit":20,"offset":0,"results":[{"id":"isaiah-98","url":"https://thebibleprophecyproject.com/records/isaiah-98/","api_url":"https://thebibleprophecyproject.com/api/v1/records/isaiah-98","title":"The virgin will conceive","reference":"Isa 7:14","book":"Isaiah","testament":"Old Testament","summary":"A sign is promised to the house of David.","periods":[{"n":7,"name":"The divided kingdoms"}],"themes":[{"id":"messiah-birth","name":"Messiah: Birth & Lineage"}],"placed":"past"}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/records/{id}":{"get":{"operationId":"getRecord","summary":"Get one record","tags":["Prophecies"],"parameters":[{"name":"id","in":"path","description":"Record id.","required":true,"schema":{"type":"string"},"example":"isaiah-98"}],"responses":{"200":{"description":"The full record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Record"}}}},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/lookup":{"get":{"operationId":"lookup","summary":"Records citing a verse","tags":["Prophecies"],"parameters":[{"name":"ref","in":"query","description":"A verse, range or chapter. Full names and standard abbreviations work.","required":true,"schema":{"type":"string"},"example":"Isaiah 7:14"}],"responses":{"200":{"description":"Records citing the verse as prophecy text or as claimed fulfillment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Lookup"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/themes":{"get":{"operationId":"listThemes","summary":"List themes","tags":["Prophecies"],"parameters":[],"responses":{"200":{"description":"All themes with counts.","content":{"application/json":{"schema":{"type":"object","required":["total","themes"],"properties":{"total":{"type":"integer"},"themes":{"type":"array","items":{"$ref":"#/components/schemas/Theme"}}}}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/themes/{id}":{"get":{"operationId":"getTheme","summary":"A theme","tags":["Prophecies"],"parameters":[{"name":"id","in":"path","description":"Theme id.","required":true,"schema":{"type":"string"},"example":"messiah-birth"},{"name":"limit","in":"query","description":"Results per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","description":"Results to skip.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A theme, with a page of its records.","content":{"application/json":{"schema":{"type":"object","required":["theme","total","results"],"properties":{"theme":{"$ref":"#/components/schemas/Theme"},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Summary"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/books":{"get":{"operationId":"listBooks","summary":"List books","tags":["Prophecies"],"parameters":[],"responses":{"200":{"description":"Books that have records.","content":{"application/json":{"schema":{"type":"object","required":["total","books"],"properties":{"total":{"type":"integer"},"books":{"type":"array","items":{"$ref":"#/components/schemas/Book"}}}}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/books/{slug}":{"get":{"operationId":"getBook","summary":"A book","tags":["Prophecies"],"parameters":[{"name":"slug","in":"path","description":"Book slug.","required":true,"schema":{"type":"string"},"example":"isaiah"},{"name":"limit","in":"query","description":"Results per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","description":"Results to skip.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A book, with a page of its records.","content":{"application/json":{"schema":{"type":"object","required":["book","total","results"],"properties":{"book":{"$ref":"#/components/schemas/Book"},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Summary"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/periods":{"get":{"operationId":"listPeriods","summary":"List periods","tags":["Prophecies"],"parameters":[],"responses":{"200":{"description":"The 18 historical periods.","content":{"application/json":{"schema":{"type":"object","required":["total","periods"],"properties":{"total":{"type":"integer"},"periods":{"type":"array","items":{"$ref":"#/components/schemas/Period"}}}}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/periods/{n}":{"get":{"operationId":"getPeriod","summary":"A period","tags":["Prophecies"],"parameters":[{"name":"n","in":"path","description":"Period number, 1 to 18.","required":true,"schema":{"type":"integer","minimum":1,"maximum":18},"example":7},{"name":"limit","in":"query","description":"Results per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","description":"Results to skip.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A period, with a page of its records.","content":{"application/json":{"schema":{"type":"object","required":["period","total","results"],"properties":{"period":{"$ref":"#/components/schemas/Period"},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Summary"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/nations":{"get":{"operationId":"listNations","summary":"List nations","tags":["Prophecies"],"parameters":[],"responses":{"200":{"description":"Nations with records.","content":{"application/json":{"schema":{"type":"object","required":["total","nations"],"properties":{"total":{"type":"integer"},"nations":{"type":"array","items":{"$ref":"#/components/schemas/Nation"}}}}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}},"/api/v1/nations/{slug}":{"get":{"operationId":"getNation","summary":"A nation","tags":["Prophecies"],"parameters":[{"name":"slug","in":"path","description":"Nation slug.","required":true,"schema":{"type":"string"},"example":"egypt"},{"name":"limit","in":"query","description":"Results per page.","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":20}},{"name":"offset","in":"query","description":"Results to skip.","required":false,"schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"A nation, with a page of its records.","content":{"application/json":{"schema":{"type":"object","required":["nation","total","results"],"properties":{"nation":{"$ref":"#/components/schemas/Nation"},"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Summary"}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"default":{"$ref":"#/components/responses/Error"}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["bad_request","not_found","method_not_allowed","server_error"]},"message":{"type":"string"}}}}},"Summary":{"type":"object","required":["id","url","api_url","title","reference"],"example":{"id":"isaiah-98","url":"https://thebibleprophecyproject.com/records/isaiah-98/","api_url":"https://thebibleprophecyproject.com/api/v1/records/isaiah-98","title":"The virgin will conceive","reference":"Isa 7:14","book":"Isaiah","testament":"Old Testament","summary":"A sign is promised to the house of David.","periods":[{"n":7,"name":"The divided kingdoms"}],"themes":[{"id":"messiah-birth","name":"Messiah: Birth & Lineage"}],"placed":"past"},"properties":{"id":{"type":"string"},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"},"title":{"type":"string"},"reference":{"type":"string"},"book":{"type":"string"},"testament":{"type":"string"},"summary":{"type":"string"},"periods":{"type":"array","items":{"type":"object","properties":{"n":{"type":"integer"},"name":{"type":"string"}}}},"themes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}}}},"placed":{"type":"string","description":"Where the fulfillment is traditionally placed: past or future."}}},"Record":{"type":"object","required":["id","title","reference","url"],"description":"One record in full. The same fields as /records/{id}.json, plus links and a citation.","properties":{"id":{"type":"string"},"title":{"type":"string"},"summary":{"type":"string"},"reference":{"type":"string"},"book":{"type":"string"},"book_short":{"type":"string"},"testament":{"type":"string"},"payne_no":{"type":"integer"},"payne_page":{"type":"string"},"verse_count":{"type":["integer","null"]},"forms":{"type":"array","items":{"type":"string"}},"periods":{"type":"array","items":{"type":"integer"}},"verses":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"text":{"type":"string"}}}},"fulfillment_refs":{"type":"string"},"fulfillment_verses":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"text":{"type":"string"}}}},"fulfillment_note":{"type":"string"},"nations":{"type":"array","items":{"type":"string"}},"themes":{"type":"array","items":{"type":"string"}},"messianic":{"type":"boolean"},"dated":{"type":"boolean"},"status":{"type":"string"},"dates":{"type":"array","items":{"type":"string"}},"people":{"type":"array","items":{"type":"string"}},"places":{"type":"array","items":{"type":"string"}},"wikipedia":{"type":"array","items":{"type":"object"}},"ancient_sources":{"type":"array","items":{"type":"string"}},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"},"markdown_url":{"type":"string","format":"uri"},"related":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"reference":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"fulfillment_records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"reference":{"type":"string"},"url":{"type":"string","format":"uri"}}}},"citation":{"type":"string"}}},"Lookup":{"type":"object","required":["reference_normalized","as_prophecy","as_fulfillment"],"properties":{"reference_normalized":{"type":"string"},"as_prophecy":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Summary"},{"type":"object","properties":{"matched_verses":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"text":{"type":"string"}}}}}}]}},"as_fulfillment":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Summary"},{"type":"object","properties":{"matched_verses":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"text":{"type":"string"}}}}}}]}}}},"Theme":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"count":{"type":"integer"},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"}}},"Book":{"type":"object","required":["slug","name"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"short":{"type":"string"},"testament":{"type":"string"},"count":{"type":"integer"},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"}}},"Period":{"type":"object","required":["n","name"],"properties":{"n":{"type":"integer"},"name":{"type":"string"},"slug":{"type":"string"},"description":{"type":"string"},"count":{"type":"integer"},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"}}},"Nation":{"type":"object","required":["slug","name"],"properties":{"slug":{"type":"string"},"name":{"type":"string"},"label":{"type":"string"},"count":{"type":"integer"},"url":{"type":"string","format":"uri"},"api_url":{"type":"string","format":"uri"}}}},"responses":{"Error":{"description":"An error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"BadRequest":{"description":"Could not read 'Foo 99:1' as a Bible reference.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"bad_request","message":"Could not read 'Foo 99:1' as a Bible reference."}}}}},"NotFound":{"description":"No record with id 'nope'.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"not_found","message":"No record with id 'nope'."}}}}},"MethodNotAllowed":{"description":"This API is read-only. Use GET.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":{"code":"method_not_allowed","message":"This API is read-only. Use GET."}}}}}}}}