Search
Batch Search
Run multiple web searches in a single request.
Endpoint#
POST
https://api.searlo.tech/api/v1/search/batchCredits: 1 credit per distinct query that found something, up to 10 queries. A query that failed or found nothing costs nothing, and a query repeated in the batch (ignoring case) is charged once; each item's result.credits and data.credits say what was charged.
Body#
| Field | Type | Required | Description |
|---|---|---|---|
queries | string[] | Yes | 1–10 query strings (each 1–500 chars) |
Response#
JSON
{ "success": true, "data": { "success": true, "results": [ { "query": "react", "result": { "searchParameters": { "q": "react" }, "organic": [ /* ... */ ], "credits": 1 }, "source": "searlo.tech(engine)", "timestamp": "2026-10-05T09:00:00.000Z" }, { "query": "vue", "result": { "searchParameters": { "q": "vue" }, "organic": [ /* ... */ ], "credits": 1 }, "source": "searlo.tech(engine)", "timestamp": "2026-10-05T09:00:00.000Z" } ], "totalQueries": 2, "credits": 2 }, "message": "Batch search completed successfully"}Examples
curl -X POST "https://api.searlo.tech/api/v1/search/batch" \ -H "x-api-key: sk_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "queries": ["react", "vue", "svelte"] }'const res = await fetch("https://api.searlo.tech/api/v1/search/batch", { method: "POST", headers: { "x-api-key": process.env.SEARLO_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ queries: ["react", "vue", "svelte"] }),});console.log((await res.json()).data);import osimport requests res = requests.post( "https://api.searlo.tech/api/v1/search/batch", json={"queries": ["react", "vue", "svelte"]}, headers={"x-api-key": os.environ["SEARLO_API_KEY"]},)print(res.json()["data"])Stuck? Write to [email protected], or check live status.