Search
Site Search
Restrict a web search to a single site or domain.
Endpoint#
GET
https://api.searlo.tech/api/v1/search/siteCredits: 1 per request
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (1–500 chars) |
site | string | Yes | Domain or URL (e.g. example.com or https://example.com) |
limit | number | No | Results per page (1–10, default: 10) |
page | number | No | Page number (default: 1) |
Response#
The same response as Web Search (results in organic[]), scoped to the given site.
Examples
curl "https://api.searlo.tech/api/v1/search/site?q=hooks&site=react.dev&limit=10" \ -H "x-api-key: sk_your_api_key"const params = new URLSearchParams({ q: "hooks", site: "react.dev", limit: 10 });const res = await fetch( `https://api.searlo.tech/api/v1/search/site?${params}`, { headers: { "x-api-key": process.env.SEARLO_API_KEY } });console.log((await res.json()).organic);import osimport requests res = requests.get( "https://api.searlo.tech/api/v1/search/site", params={"q": "hooks", "site": "react.dev", "limit": 10}, headers={"x-api-key": os.environ["SEARLO_API_KEY"]})print(res.json()["organic"])Stuck? Write to [email protected], or check live status.