Search
Full-text search across titles, headings and content.
GET
/api/public/{project}/searchSearch published pages
Path parameters
| Name | Type | Description |
|---|---|---|
project required | string | Project slug |
Query parameters
| Name | Type | Description |
|---|---|---|
q required | string | Search query |
limit | integer | Max results (1–50, default 10) |
Responses
200 Search results
{
"query": "domain",
"results": [
{ "slug": "custom-domains", "title": "Custom Domains", "snippet": "…Connect your own domain…", "score": 0.91 }
]
}Examples
curl -X GET "https://api.example.com/api/public/{project}/search"const res = await fetch("https://api.example.com/api/public/{project}/search", {
method: "GET",
headers: {
},
});
const data = await res.json();Searches are recorded anonymously to power the analytics dashboard (unless analytics are disabled).