1service = build('docs', 'v1', credentials=creds)
2doc_id = ''
3
4document = service.documents().get(documentId=doc_id).execute()
5body = document['body']
6content = body['content']
7temp = content[len(content)-1]
8endIndex = temp['endIndex']
9
10# You might need to -1 off the endIndex