Batch Search Datasets
Search for articles across multiple news datasets in a single request.
Searches the same query across all specified datasets simultaneously using
SerpAPI with combined `site:` operators for efficient multi-source search.
**Supported Datasets:**
nytimes, washpost, sfstandard, sacbee, sfchronicle, newyorker, theatlantic, sjmercury, latimes
**Example:**
```json
POST /v2/datasets/batch-search
{
"q": "artificial intelligence regulation",
"datasets": ["nytimes", "washpost", "theatlantic"],
"limit": 20
}
```
**Headers:**
- `Authorization`: Bearer {api_key}
- `X-Organization-ID`: Organization UUID
Request
This endpoint expects an object.
q
Search query
datasets
List of dataset names to search across. Defaults to all datasets if not provided.
limit
Max results per dataset
Response
Successful Response
query
datasets_searched
errors
results
results_by_dataset
total_results
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error