How to get the cell color in google spreadsheet

Can someone help me with how to get the cell color from the google spreadsheet. I have tried with gsuite get cell color but I could get only one cell color. If i use something like “A”+index.ToString. There is an error.
image