Hi Ankush,
Thank you for reaching out. Please see
here for the available ValueTrack parameters. It doesn't appear to be possible to get the entire search query. If you have more questions regarding ValueTrack parameters, I would recommend reaching out to the Google Ads Product Team
here as they will be more equipped to assist you.
Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q1zpOMC:ref