Skip to main content
POST
/
api
/
stream_search
Run a streaming code search
curl --request POST \
  --url https://api.example.com/api/stream_search \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "matches": 123,
  "contextLines": 123,
  "whole": true,
  "isRegexEnabled": true,
  "isCaseSensitivityEnabled": true
}
'
"data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n"

Body

application/json
query
string
required
matches
number
required
contextLines
number
whole
boolean
isRegexEnabled
boolean
isCaseSensitivityEnabled
boolean

Response

SSE stream of search results.

Server-sent event stream. Each data frame contains one JSON object representing either a chunk update, a final summary, or an error.

Example:

"data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n"