Search Dataset Articles

Search for articles within a news dataset. Uses Google Search constrained to the dataset's domain to find relevant articles. ## Supported Datasets - **nytimes**: New York Times (nytimes.com) - **washpost**: Washington Post (washingtonpost.com) - **sfstandard**: SF Standard (sfstandard.com) ## Response Returns a list of search results with title, URL, snippet, and date.

Path parameters

datasetenumRequired

The news dataset to search. Supported: nytimes, washpost, sfstandard

Allowed values:

Headers

AuthorizationstringRequired
Captain API key for authentication
X-Organization-IDstringRequired
Organization UUID

Query parameters

qstringRequired
Search query
limitintegerOptional1-100Defaults to 10

Maximum number of results to return (default: 10, max: 100)

Response

Search completed successfully
datasetenum
The dataset that was searched
Allowed values:
querystring
Original search query
resultslist of objects
List of search results
total_resultsinteger
Total number of results available
limitinteger
Maximum results requested
errorstring or null
Error message if search failed

Errors