S
S
Stepan2020-11-24 11:41:26
Google Sheets
Stepan, 2020-11-24 11:41:26

How to get the value of a cell through a query?

I have, for example, a table:
https://docs.google.com/spreadsheets/d/1d2UU5VcbgF...
How can I get the value of a certain cell through a GET / POST request? For example, B4?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Ivanov, 2020-11-25
@Stepashka20

GET https://sheets.googleapis.com/v4/spreadsheets/1d2UU5VcbgF6iDW58WA242BdIisRd7pqDoENm963YCcM/values/B4 HTTP/1.1

Authorization: Bearer [YOUR_ACCESS_TOKEN]
Accept: application/json

Where [YOUR_ACCESS_TOKEN]is the Google OAuth 2.0 token

G
Grigory Boev, 2020-11-24
@ProgrammerForever

As an option - make a script, publish as an application, specify the address of the book / sheet / range in the parameter. But perhaps there is an easier API access.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question