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.
qstringRequired
Search query
authorstring or nullOptional

Filter results by author/byline name. Appended as quoted phrase to search query.

datasetslist of strings or nullOptional
List of dataset names to search across. Defaults to all datasets if not provided.
limitintegerOptional1-100Defaults to 10
Max results per dataset

Response

Successful Response
querystring
datasets_searchedlist of strings
errorsmap from strings to strings
resultslist of objects
results_by_datasetmap from strings to lists of objects
total_resultsintegerDefaults to 0

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error