API Reference
Search
Semantic code search endpoint.
GET /search
Search across indexed repositories by natural language query.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | ✓ | Natural language search query |
repo | string | ✓ | Repository in owner/repo format |
k | integer | — | Number of results (default: 10, max: 50) |
format | string | — | toon (default) or json |
expand | boolean | — | Include call graph context (default: true) |
Example
Response (JSON)
Similarity scores
| Score | Meaning |
|---|---|
| 0.90+ | Strong match |
| 0.70–0.90 | Related |
| < 0.70 | Weak |