{"openapi":"3.1.0","info":{"title":"PHI Greek Inscriptions API","description":"The Greek inscriptions of The Packard Humanities Institute as JSON: about 230,000 texts from the printed editions (IG, SEG and the regional corpora), with place, date, edition and PHI number. The same data is served to AI assistants at `/mcp`. How each tool counts: [/methods](/methods).\n\n## Search\n\nA query is **Unicode Greek or betacode**. Accents, breathings, capitals, brackets and markup are ignored. The archaic letters can be given in betacode (`#2` stigma, `#3` or `K1` koppa, `#5` sampi). The search finds strings of letters, not words: there is no lemma search.\n\n## Layers\n\n| layer | search | get |\n|---|---|---|\n| `full` (default) | the edited text, with restorations | the complete text and apparatus |\n| `on_stone` | letters read on the stone only; a restoration breaks a match | read, uncertain and erased letters; gaps as `[---]` |\n| `preserved` | the same as `on_stone` | certain readings only; uncertain and erased letters as `[---]` |\n| `restored` | the editor's restorations only | the restorations only |\n| `apparatus` | the editor's notes | not available |\n\n## Word breaks\n\nBy default (`word_breaks=false`) a match can cross a word break, because many inscriptions have no breaks (*scriptio continua*). With `word_breaks=true` a match starts and ends at spaces and punctuation, and at the edge of a restoration in the `on_stone` layer. A word divided at a line end is not a break.\n\n## Counts\n\nThe search `total` counts **matches** (one text can have several). The facet counts count **inscriptions**. So the facet counts do not add up to `total`.\n\nA text with no date is never left out by `date_from` or `date_to`.\n\n`dates` in a search answer counts the inscriptions by century, with the rate per 1,000 dated inscriptions of that century, and names the earliest and latest dated ones. A range across centuries counts in each by its share of the years; no date, or a range of more than 300 years, is counted apart.\n\n## Parallels\n\n`/api/v1/inscriptions/{phi}/parallels` lists the inscriptions that share sequences of `length` words (2 to 6) with one inscription, best first: a rare sequence counts more than a formula, and a text that shares most of them is marked `same_text`. By default only words read on the stone count, in both texts (`layer=on_stone`); `layer=full` lets restored words count.\n\n## Names that are also accepted\n\n`layer`: `full`, `on_stone` (`on-stone`, `original`), `preserved`, `restored` (`reconstructed`). `format`: `unicode` (`utf8`), `betacode` (`beta`), `html`.\n\n## Terms of use\n\nYou can use the texts for study, teaching and research. AI assistants may use this server freely to answer their users. Do not copy the texts in bulk through this server, by hand or with a program. For a full copy, for research or to train a model, write to epigraphy@packhum.org.\n\n## Citing\n\nGive the PHI number of each text you use (for example PH229506). It never changes, and `https://epigraphy.packhum.org/text/` followed by the number opens the text.\n\n## Use and limits\n\nNo key is needed. One address (an IPv6 address by its /48) can open 25 inscriptions a day with `/api/v1/inscriptions/{phi}`. A page of `/api/v1/search` or `/api/v1/browse` counts as one inscription for each 200 inscriptions on it; parallels do not count. The count starts again at 00:00 UTC. When it is used, the server answers 429 with a `Retry-After` header: the seconds to 00:00 UTC. More than 10 requests a second from one address also get 429, with `Retry-After: 1`. Wait for that time before you send again.\n\n## Keys\n\nKeys are free; a free key has a daily limit of 5,000 inscriptions (1,000 for its first 30 days). The limit of 10 requests a second applies to every key. To get one, sign up at https://epigraphy-mcp.packhum.org/keys with your name, your academic or institutional email address, and what you will use it for. Send it as `Authorization: Bearer <key>` or `X-Api-Key: <key>`. The same key works on the PHI Latin Texts server.\n\n## More\n\nDo you need many texts, or the whole catalogue, for a project? Write to epigraphy@packhum.org and tell us about your work. We usually say yes. We want to know how scholars use these texts, and we like to work with them.","contact":{"name":"The Packard Humanities Institute","url":"https://packhum.org"},"license":{"name":"PHI terms of use: see \"Terms of use\" in the description"},"version":"1.1.0"},"paths":{"/api/v1/browse":{"get":{"tags":["handlers"],"operationId":"browse","parameters":[{"name":"region","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"subregion","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"site","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"book","in":"query","description":"Publication id (from books facet / `_meta/books.tsv`).","required":false,"schema":{"type":["integer","null"],"format":"int32","minimum":0}},{"name":"date_from","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int32"}},{"name":"date_to","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int32"}},{"name":"page","in":"query","description":"1-based page (default 1).","required":false,"schema":{"type":"integer","minimum":0}},{"name":"page_size","in":"query","description":"Results per page (default 50, max 200).","required":false,"schema":{"type":"integer","minimum":0}},{"name":"editions","in":"query","description":"`grouped` (default): each inscription once, its editions in other\npublications listed with it in `other_editions`; `all`: every edition.","required":false,"schema":{"type":["string","null"]}},{"name":"stone_spelling","in":"query","description":"Only texts where an editor's note prints the normal form of a word\nthe stone spells otherwise, by the rule of the change (`oi_u`: υ for\nοι; comma-separated), or `any`.","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Faceted browse page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowseResponse"}}}}}}},"/api/v1/inscriptions/{phi}":{"get":{"tags":["handlers"],"operationId":"get_inscription","parameters":[{"name":"phi","in":"path","description":"PHI number (stable identifier)","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"layer","in":"query","description":"Text layer: `full` (default), `on_stone`, `preserved`, `restored`.","required":false,"schema":{"type":"string"}},{"name":"format","in":"query","description":"Output format: `unicode` (default), `betacode`, `html`.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Inscription found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InscriptionResponse"}}}},"400":{"description":"Unknown layer or format","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No inscription with this PHI number","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"500":{"description":"Failed to load TOML","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/api/v1/inscriptions/{phi}/parallels":{"get":{"tags":["handlers"],"summary":"Inscriptions that share word sequences with one inscription.","operationId":"parallels","parameters":[{"name":"phi","in":"path","description":"PHI number","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"length","in":"query","description":"Words in a sequence, 2 to 6 (default 3).","required":false,"schema":{"type":"integer","minimum":0}},{"name":"layer","in":"query","description":"`on_stone` (default): only words read on the stone count, in both\ntexts. `full`: restored words count too.","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","description":"Only parallels in this region (as `/api/v1/browse` names it).","required":false,"schema":{"type":"string"}},{"name":"subregion","in":"query","required":false,"schema":{"type":"string"}},{"name":"site","in":"query","required":false,"schema":{"type":"string"}},{"name":"book","in":"query","description":"Only parallels in this publication (book id).","required":false,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"date_from","in":"query","description":"Only parallels dated from this year (negative = BC).","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"date_to","in":"query","description":"Only parallels dated to this year (negative = BC).","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","description":"Most inscriptions to return (default 15, at most 50).","required":false,"schema":{"type":"integer","minimum":0}}],"responses":{"200":{"description":"The parallels, best first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParallelsResponse"}}}},"400":{"description":"Bad length or layer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"404":{"description":"No such inscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/api/v1/search":{"get":{"tags":["handlers"],"operationId":"search","parameters":[{"name":"q","in":"query","description":"Query string (betacode or Unicode Greek). Accents and breathings are\nignored unless `accents=match`.","required":true,"schema":{"type":"string"}},{"name":"layer","in":"query","description":"Search layer: `full` (default), `on_stone`, `restored`, `apparatus`.","required":false,"schema":{"type":"string"}},{"name":"word_breaks","in":"query","description":"When true, require word boundaries (default false = scriptio continua).","required":false,"schema":{"type":"boolean"}},{"name":"match_at","in":"query","description":"Where the letters must stand in a word: `anywhere` (default),\n`word_start` (a stem), `word_end` or `whole_word`. Overrides\n`word_breaks`.","required":false,"schema":{"type":["string","null"]}},{"name":"forms","in":"query","description":"When true, give each word form the matches stand in, with its own\ncounts by region and century (`forms`): for comparing spellings.","required":false,"schema":{"type":"boolean"}},{"name":"spelling","in":"query","description":"`variants`: search the other spellings the stones use too, or name\nrules, comma-separated (see the MCP tool `search_inscriptions`).\nTurns on `forms`, each with the rules that found it.","required":false,"schema":{"type":["string","null"]}},{"name":"spelling_changes","in":"query","description":"Changes in one spelling with `spelling`: 1 (default) or 2.","required":false,"schema":{"type":["integer","null"],"minimum":0}},{"name":"script","in":"query","description":"Which letters to search: `greek` (default), `latin` (only the Latin\npassages; u and v are one letter, and so are i and j), or `both`.","required":false,"schema":{"type":["string","null"]}},{"name":"accents","in":"query","description":"Whether accents and breathings in `q` count: `ignore` (default) or\n`match`. With `match`, a mark given on a letter must stand on that\nletter in the text (`EA/N` finds ἐάν, not ἐὰν), and a letter given\nwithout marks matches any. About one inscription in seven is printed\nwith no accents, and `match` cannot find those.","required":false,"schema":{"type":["string","null"]}},{"name":"region","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"subregion","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"site","in":"query","required":false,"schema":{"type":["string","null"]}},{"name":"book","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int32","minimum":0}},{"name":"date_from","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int32"}},{"name":"date_to","in":"query","required":false,"schema":{"type":["integer","null"],"format":"int32"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","minimum":0}},{"name":"editions","in":"query","description":"`grouped` (default): each inscription once, by its best edition with\na match, the others in `other_editions`; `all`: every edition.","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"description":"Search hits with facet tallies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"400":{"description":"Unknown layer","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}}}}},"/health":{"get":{"tags":["handlers"],"operationId":"health","responses":{"200":{"description":"API is healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}}},"components":{"schemas":{"BookFacet":{"type":"object","required":["book_id","name","count"],"properties":{"book_id":{"type":"integer","format":"int32","minimum":0},"count":{"type":"integer","minimum":0},"name":{"type":"string"}}},"BrowseItem":{"type":"object","required":["phi","book","reference","book_id","other_editions"],"properties":{"book":{"type":"string"},"book_id":{"type":"integer","format":"int32","minimum":0},"not_after":{"type":["integer","null"],"format":"int32"},"not_before":{"type":["integer","null"],"format":"int32"},"other_editions":{"type":"array","items":{"$ref":"#/components/schemas/EditionRef"},"description":"The other editions of this inscription, in other publications."},"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":"string"},"region":{"type":["string","null"]},"site":{"type":["string","null"]},"subregion":{"type":["string","null"]}}},"BrowseParams":{"type":"object","properties":{"book":{"type":["integer","null"],"format":"int32","description":"Publication id (from books facet / `_meta/books.tsv`).","minimum":0},"date_from":{"type":["integer","null"],"format":"int32"},"date_to":{"type":["integer","null"],"format":"int32"},"editions":{"type":["string","null"],"description":"`grouped` (default): each inscription once, its editions in other\npublications listed with it in `other_editions`; `all`: every edition."},"page":{"type":"integer","description":"1-based page (default 1).","minimum":0},"page_size":{"type":"integer","description":"Results per page (default 50, max 200).","minimum":0},"region":{"type":["string","null"]},"site":{"type":["string","null"]},"stone_spelling":{"type":["string","null"],"description":"Only texts where an editor's note prints the normal form of a word\nthe stone spells otherwise, by the rule of the change (`oi_u`: υ for\nοι; comma-separated), or `any`."},"subregion":{"type":["string","null"]}}},"BrowseResponse":{"type":"object","required":["counts","total","page","page_size","facets","results"],"properties":{"counts":{"type":"string","description":"What `total` and the facets count: `groups` (each inscription once,\nits editions in other publications together) or `texts` (every edition)."},"facets":{"$ref":"#/components/schemas/FacetCountsResponse"},"page":{"type":"integer","minimum":0},"page_size":{"type":"integer","minimum":0},"results":{"type":"array","items":{"$ref":"#/components/schemas/BrowseItem"}},"total":{"type":"integer","minimum":0}}},"CenturyCount":{"type":"object","description":"Inscriptions by century.","required":["century","inscriptions","per_1000_dated"],"properties":{"century":{"type":"string","description":"\"4th c. BC\"."},"inscriptions":{"type":"number","format":"double","description":"Inscriptions (fractional where a date range spans centuries)."},"per_1000_dated":{"type":"number","format":"double","description":"Per 1,000 dated inscriptions of that century in the whole corpus."}}},"CrossRefResponse":{"type":"object","required":["phi","text"],"properties":{"phi":{"type":"integer","format":"int32","minimum":0},"text":{"type":"string"}}},"DatedItem":{"type":"object","description":"A dated inscription, for the earliest and latest of a set.","required":["phi","book","reference","date"],"properties":{"book":{"type":"string"},"date":{"type":"string"},"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":"string"}}},"DatesResponse":{"type":"object","description":"The dates of a set of inscriptions.","required":["by_century","undated","too_wide","earliest_dated","latest_dated"],"properties":{"by_century":{"type":"array","items":{"$ref":"#/components/schemas/CenturyCount"}},"earliest_dated":{"type":"array","items":{"$ref":"#/components/schemas/DatedItem"},"description":"The dated inscriptions whose range ends first (at most three)."},"latest_dated":{"type":"array","items":{"$ref":"#/components/schemas/DatedItem"},"description":"The dated inscriptions whose range begins last (at most three)."},"too_wide":{"type":"integer","description":"A range wider than 300 years: not in `by_century`.","minimum":0},"undated":{"type":"integer","description":"No date, or only one end of a range: not in `by_century`.","minimum":0}}},"EditionRef":{"type":"object","description":"Another edition of the same inscription.","required":["phi","reference"],"properties":{"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":"string","description":"Publication and number (\"IG I³ 10\")."}}},"ErrorBody":{"type":"object","required":["error","status"],"properties":{"error":{"type":"string"},"status":{"type":"integer","format":"int32","minimum":0}}},"FacetCount":{"type":"object","required":["name","count"],"properties":{"count":{"type":"integer","minimum":0},"name":{"type":"string"}}},"FacetCountsResponse":{"type":"object","required":["regions","subregions","sites","books"],"properties":{"books":{"type":"array","items":{"$ref":"#/components/schemas/BookFacet"}},"regions":{"type":"array","items":{"$ref":"#/components/schemas/FacetCount"}},"sites":{"type":"array","items":{"$ref":"#/components/schemas/FacetCount"}},"subregions":{"type":"array","items":{"$ref":"#/components/schemas/FacetCount"}}}},"FormCountResponse":{"type":"object","description":"One word form of a search with its own counts.","required":["form","greek","rules","latin","matches","inscriptions","regions","dates"],"properties":{"dates":{"$ref":"#/components/schemas/DatesResponse"},"form":{"type":"string","description":"The word in betacode letters, lower case, no accents (Latin letters\nfor a Latin word); `…` marks lost or barred letters."},"greek":{"type":"string","description":"The word in Greek letters."},"inscriptions":{"type":"integer","minimum":0},"latin":{"type":"boolean"},"matches":{"type":"integer","minimum":0},"regions":{"type":"object","description":"Region → inscriptions.","additionalProperties":{"type":"integer","minimum":0},"propertyNames":{"type":"string"}},"rules":{"type":"array","items":{"type":"string"},"description":"With `spelling`: the rules that found this form (empty: as given)."}}},"HealthResponse":{"type":"object","required":["status","inscriptions","toml_paths"],"properties":{"data_rev":{"type":["string","null"],"description":"Git revision of the data repo the index was built from."},"inscriptions":{"type":"integer","description":"Inscriptions in the search index.","minimum":0},"status":{"type":"string"},"toml_paths":{"type":"integer","description":"Paths known to the on-demand TOML store.","minimum":0}}},"InscriptionParams":{"type":"object","properties":{"format":{"type":"string","description":"Output format: `unicode` (default), `betacode`, `html`."},"layer":{"type":"string","description":"Text layer: `full` (default), `on_stone`, `preserved`, `restored`."}}},"InscriptionResponse":{"type":"object","required":["phi","book","reference","book_id","layer","format","text","other_editions"],"properties":{"bibliography_additional":{"type":["array","null"],"items":{"type":"string"}},"bibliography_primary":{"type":["string","null"]},"book":{"type":"string"},"book_id":{"type":"integer","format":"int32","minimum":0},"date_text":{"type":["string","null"]},"find_spot":{"type":["string","null"]},"format":{"type":"string","description":"Requested format name."},"layer":{"type":"string","description":"Requested text layer name."},"lettering":{"type":["string","null"]},"modern_name":{"type":["string","null"]},"not_after":{"type":["integer","null"],"format":"int32"},"not_before":{"type":["integer","null"],"format":"int32"},"note":{"type":["string","null"]},"notice":{"type":["string","null"],"description":"The daily reading limit and where to ask for a key. Only in an answer\nto a client that has a limit."},"object":{"type":["string","null"]},"other_editions":{"type":"array","items":{"$ref":"#/components/schemas/EditionRef"},"description":"The other editions of this inscription, in other publications."},"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":"string"},"region":{"type":["string","null"]},"related":{"type":["array","null"],"items":{"$ref":"#/components/schemas/CrossRefResponse"}},"seg":{"type":["array","null"],"items":{"type":"string"}},"site":{"type":["string","null"]},"subregion":{"type":["string","null"]},"text":{"$ref":"#/components/schemas/TextBlock","description":"Projected text, line-structured, with layer stats."}}},"LayerStats":{"type":"object","required":["preserved","reconstructed","uncertain","lost","erased","abbrev_resolved","stonecutter_fix","editorial","total_chars","pct_preserved","pct_reconstructed"],"properties":{"abbrev_resolved":{"type":"integer","format":"int32","minimum":0},"editorial":{"type":"integer","format":"int32","minimum":0},"erased":{"type":"integer","format":"int32","minimum":0},"lost":{"type":"integer","format":"int32","minimum":0},"pct_preserved":{"type":"number","format":"double"},"pct_reconstructed":{"type":"number","format":"double"},"preserved":{"type":"integer","format":"int32","minimum":0},"reconstructed":{"type":"integer","format":"int32","minimum":0},"stonecutter_fix":{"type":"integer","format":"int32","minimum":0},"total_chars":{"type":"integer","format":"int32","minimum":0},"uncertain":{"type":"integer","format":"int32","minimum":0}}},"ParallelItem":{"type":"object","description":"One inscription that shares word sequences with the one asked for.","required":["phi","book","reference","region","site","shared_sequences","score","same_text","shared_text"],"properties":{"book":{"type":"string"},"date":{"type":["string","null"]},"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":"string"},"region":{"type":"string"},"same_text":{"type":"boolean","description":"It shares most of the sequences: probably the same text."},"score":{"type":"number","format":"double","description":"Sum of ln(inscriptions / inscriptions with the sequence) over the\nshared sequences: a rare sequence counts more than a formula."},"shared_sequences":{"type":"integer","description":"Distinct sequences of the first text that it shares.","minimum":0},"shared_text":{"type":"array","items":{"type":"string"},"description":"The longest shared stretches, in Greek, without accents."},"site":{"type":"string"}}},"ParallelsParams":{"type":"object","properties":{"book":{"type":["integer","null"],"format":"int32","description":"Only parallels in this publication (book id).","minimum":0},"date_from":{"type":["integer","null"],"format":"int32","description":"Only parallels dated from this year (negative = BC)."},"date_to":{"type":["integer","null"],"format":"int32","description":"Only parallels dated to this year (negative = BC)."},"layer":{"type":["string","null"],"description":"`on_stone` (default): only words read on the stone count, in both\ntexts. `full`: restored words count too."},"length":{"type":["integer","null"],"description":"Words in a sequence, 2 to 6 (default 3).","minimum":0},"limit":{"type":["integer","null"],"description":"Most inscriptions to return (default 15, at most 50).","minimum":0},"region":{"type":["string","null"],"description":"Only parallels in this region (as `/api/v1/browse` names it)."},"site":{"type":["string","null"]},"subregion":{"type":["string","null"]}}},"ParallelsResponse":{"type":"object","required":["phi","length","layer","sequences","inscriptions_sharing","parallels"],"properties":{"inscriptions_sharing":{"type":"integer","description":"Other inscriptions that share at least one.","minimum":0},"layer":{"type":"string"},"length":{"type":"integer","minimum":0},"parallels":{"type":"array","items":{"$ref":"#/components/schemas/ParallelItem"}},"phi":{"type":"integer","format":"int32","minimum":0},"sequences":{"type":"integer","description":"Sequences of `length` whole words the text has in this layer.","minimum":0}}},"SearchHitItem":{"type":"object","required":["phi","snippet","other_editions"],"properties":{"book":{"type":["string","null"]},"citation":{"type":["string","null"]},"line":{"type":["integer","null"],"format":"int32","minimum":0},"other_editions":{"type":"array","items":{"$ref":"#/components/schemas/EditionRef"},"description":"The other editions of this inscription, in other publications."},"phi":{"type":"integer","format":"int32","minimum":0},"reference":{"type":["string","null"]},"region":{"type":["string","null"]},"site":{"type":["string","null"]},"snippet":{"type":"string"}}},"SearchParams":{"type":"object","required":["q"],"properties":{"accents":{"type":["string","null"],"description":"Whether accents and breathings in `q` count: `ignore` (default) or\n`match`. With `match`, a mark given on a letter must stand on that\nletter in the text (`EA/N` finds ἐάν, not ἐὰν), and a letter given\nwithout marks matches any. About one inscription in seven is printed\nwith no accents, and `match` cannot find those."},"book":{"type":["integer","null"],"format":"int32","minimum":0},"date_from":{"type":["integer","null"],"format":"int32"},"date_to":{"type":["integer","null"],"format":"int32"},"editions":{"type":["string","null"],"description":"`grouped` (default): each inscription once, by its best edition with\na match, the others in `other_editions`; `all`: every edition."},"forms":{"type":"boolean","description":"When true, give each word form the matches stand in, with its own\ncounts by region and century (`forms`): for comparing spellings."},"layer":{"type":"string","description":"Search layer: `full` (default), `on_stone`, `restored`, `apparatus`."},"match_at":{"type":["string","null"],"description":"Where the letters must stand in a word: `anywhere` (default),\n`word_start` (a stem), `word_end` or `whole_word`. Overrides\n`word_breaks`."},"page":{"type":"integer","minimum":0},"page_size":{"type":"integer","minimum":0},"q":{"type":"string","description":"Query string (betacode or Unicode Greek). Accents and breathings are\nignored unless `accents=match`."},"region":{"type":["string","null"]},"script":{"type":["string","null"],"description":"Which letters to search: `greek` (default), `latin` (only the Latin\npassages; u and v are one letter, and so are i and j), or `both`."},"site":{"type":["string","null"]},"spelling":{"type":["string","null"],"description":"`variants`: search the other spellings the stones use too, or name\nrules, comma-separated (see the MCP tool `search_inscriptions`).\nTurns on `forms`, each with the rules that found it."},"spelling_changes":{"type":["integer","null"],"description":"Changes in one spelling with `spelling`: 1 (default) or 2.","minimum":0},"subregion":{"type":["string","null"]},"word_breaks":{"type":"boolean","description":"When true, require word boundaries (default false = scriptio continua)."}}},"SearchResponse":{"type":"object","required":["counts","inscriptions","query","layer","word_breaks","total","truncated","page","page_size","elapsed_ms","facets","dates","results"],"properties":{"counts":{"type":"string","description":"What `inscriptions`, the facets and the dates count: `groups` or\n`texts` (see [`BrowseResponse::counts`]). `total` counts matches."},"dates":{"$ref":"#/components/schemas/DatesResponse","description":"The inscriptions with a match by century, with the rate per 1,000\ndated inscriptions of that century in the whole corpus."},"elapsed_ms":{"type":"number","format":"double"},"facets":{"$ref":"#/components/schemas/FacetCountsResponse"},"forms":{"type":["array","null"],"items":{"$ref":"#/components/schemas/FormCountResponse"},"description":"With `forms=true`: each word form the matches stand in (at most 50,\nmost frequent first), with its own counts. A text with two forms\ncounts under each."},"inscriptions":{"type":"integer","description":"Inscriptions with a match (groups or texts, as `counts` says).","minimum":0},"layer":{"type":"string"},"page":{"type":"integer","minimum":0},"page_size":{"type":"integer","minimum":0},"query":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchHitItem"}},"stone_spellings":{"type":["array","null"],"items":{"type":"object"},"description":"With `layer=apparatus`: the stone spellings beside the editor's notes\nthat matched (`stone`, `editor`, `rules`, `changes`, `texts`,\n`examples`), most texts first."},"total":{"type":"integer","minimum":0},"truncated":{"type":"boolean","description":"True if the hit cap was reached (totals/facets may be incomplete)."},"word_breaks":{"type":"boolean"}}},"TextBlock":{"type":"object","required":["lines","stats"],"properties":{"lines":{"type":"array","items":{"$ref":"#/components/schemas/TextLine"}},"stats":{"$ref":"#/components/schemas/LayerStats"}}},"TextLine":{"type":"object","required":["number","content","stats"],"properties":{"content":{"type":"string"},"descriptor":{"type":"string","description":"What the edition says about the part starting at this line: its own\nlettering, date, or publication (\"stoich.38\"); only on that line."},"number":{"type":"integer","format":"int32","minimum":0},"part":{"type":"string","description":"The face, column or fragment the line is in, as the edition labels\nit (\"face B\", \"col. II\"); left out for the part with no label."},"stats":{"$ref":"#/components/schemas/LayerStats"}}}}}}