Search
Full-text search within one translation, or across every translation your key can see.
GET/v1/search
| Name | Type | Description |
|---|---|---|
| q* | query | Search text, minimum 2 characters |
| translation | query | Limit to one translation code. Omit to search everything your key covers. |
| mode | query | keyword (default, matches all words) or phrase (exact substring match) |
| scope | query | A 3-letter book code (GEN, JHN...), or OT / NT to scope by testament |
| limit | query | Max results, default 50, capped at 200 |
curl "https://scripturesapidev.vercel.app/api/v1/search?q=beginning&translation=kjv" \
-H "Authorization: Bearer $KEY"{
"data": {
"query": "beginning",
"mode": "keyword",
"result_count": 12,
"results": [
{ "translation": "KJV", "book": "GEN", "chapter": 1, "verse": 1, "text": "In the beginning God created..." }
]
}
}Keyword vs. phrase
mode=keyword (default) matches verses containing every word in the query, in any order. mode=phrase matches the exact substring — "let there be light" as a phrase only matches that literal run of words.