Search a document
Searches the same reading plan the reader uses, so each match is a sentence the reader can open at. A document never opened before is prepared first, as opening it would; that work is admitted against the user's compute limits, and this request does not wait for it.
AuthorizationBearer <token>Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.
Scope: documents:read
id*string^[a-f0-9]{64}$q*stringText to find. Matching ignores case, accents and runs of whitespace, and may span sentences.
1 <= length <= 200limit?integer1 <= value <= 20020Matches in reading order. truncated is true when more matches exist than limit.
application/json- response
truncated*booleandata*array<>curl -X GET 'https://reader.example/api/v1/documents/string/search?q=string'{ "truncated": true, "data": [ { "ordinal": 0, "segmentKey": "string", "snippet": "string", "matchStart": 0, "matchEnd": 0, "page": 0, "webUrl": "http://example.com" } ]}