Search through Subject is not available in Freshdesk API. To know the different parameters based on which you can filter tickets, please visit Filter tickets API.
Searching ability from the REST API has been requested by your users more than 4 years ago, and it is still in the road map? Such a basic and essential need?