Not sure that out of the box API would support your type of query. You'd probably have to use one of the database implementations (blockchain/transactions stored in a searchable database) because you're looking to find matches across the comments from a multitude of posts at a time.
RE: Write a Steemit Web App: Part 9 - Retrieving Content with getDiscussionsBy*()