search

Search

Search the snapshot. Semantic when embeddings are ready, keyword fallback otherwise.

Open to anonymous + all tiers: keyword/semantic search over public repos is a core /explore discovery path. Private snapshots stay owner-only via _load_snapshot_or_404. Cost is bounded by the 60/minute slowapi cap and the embedding-store cache hit rate; the LLM-bearing surface (/answer) keeps its Pro gate.

Wire shape mirrors the previous keyword-only endpoint ({results: [{title, page_type, target_path, snippet, score, search_type}]}) so the existing frontend continues to render without changes. New semantic results carry search_type='semantic' so the UI can label them distinctly.

post/snapshots/{snapshot_id}/search

Path parameters

snapshot_idstring required

Request body

object required

Response

Successful Response

{"stackTrail":"paths:/snapshots/{snapshot_id}/search:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 2 revisions of this API.