How can I get the number of rows in a Google Spreadsheet using api?

canerbalci picture canerbalci · May 10, 2013 · Viewed 14.8k times · Source

Is it possible to fetch the number of filled rows without fetching the whole spreadsheet, or find the first empty row number?

I am using the python api wrapper if it matters.

Answer

eddyparkinson picture eddyparkinson · May 13, 2013

The main google API docs say you can do it using the WorksheetFeed. So must be possible from python. https://developers.google.com/google-apps/spreadsheets/#retrieving_information_about_worksheets