List the words printed on a sheet
Every word printed on the sheet: its text, its position as fractions (0..1) of the page from the top-left corner, where it was read (the PDF's own text or text recognition) and the room it is printed in. Use it to search a drawing's text, or to read what is written inside one room or one region.
Words come in a fixed stored order, limit per page; total counts every word that matches the filters, and next_cursor continues the same read until it is null. rooms maps each room_id on the page to the room's name.
The sheet's state is never an error: status is ok, empty (read, and nothing is printed), not_read (never read: its words are unknown, not absent) or unavailable (try again later), with a note. With room_id, rooms_unknown means it is not known which words are in that room, never that the room is empty. A word whose room_id is null is outside every room only when room_links_status is ok.
404 when the sheet is not in one of your projects. 422 for an unknown field or source, a malformed bbox, a room_id that is not a room on this sheet, or a cursor from another sheet or other filters.
Request
- Base URL: https://api.kamai.io (the document declares no server; this is the origin it was published from)
- URL: https://api.kamai.io/v1/blueprints/{blueprint_id}/words
- Auth: HTTP bearer
Path parameters
Query parameters
Only words containing this text, case-insensitive. It is matched inside one word: a phrase is printed as several words, so search each word on its own.
Only words printed inside this room: the room's feature id (as in GET /v1/blueprints/{id}) or a room_id a word returned.
Only words from these sources: digital, ocr or ocr_bubble; repeat it or pass a comma list.
Only words inside this region: x0,y0,x1,y1 in fractions (0..1) of the page from the top-left corner, x1 > x0 and y1 > y0. A word is inside when the centre of its box is.
Per-word fields, comma-separated. The whole list, not extras: when given it replaces the default text, bbox, source, room. Also: rot, conf, polygon, id, wall, room_name.
next_cursor of the previous page. Valid only with the same filters.
Words per page; 2,000 when left out.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.