I have a spreadsheet that looks like this : (this is just a snippet of my sheet, it might have 10,000 rows in the future)
What I want to do is, Get every row whose For Class (column) value = 7 - In above sample case, rows #3, #5, #8, #10 have the For Class value of 7, so I should get them.
Using this reference - https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get, I tried to get some data : (range is just Sheet3 because I want all the rows available)
But as you can see, since I haven't applied any filters, it just gives me everything - (I require that the majorDimension should be ROWS)
What should I do, in order to get all rows containing For Class = 7, keeping the majorDimension to ROWS?


