> Searlo API Docs — Batch Search
> Source: https://searlo.tech/docs#search-batch
> Full docs: https://searlo.tech/docs/full.md

# Batch Search

Run multiple web searches in a single request.

### Endpoint

```
POST /search/batch
```

**Credits:** 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"
}
```

## Code Examples

### cURL

```bash
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"] }'
```

### JavaScript

```javascript
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);
```

### Python

```python
import os
import 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"])
```


---
*From https://searlo.tech/docs — see full docs at https://searlo.tech/docs/full.md*