How to check the index size on daily basis using python scripts?

Hi,
Does anyone know how to check the index size on daily basis using python scripts?

Hi @jisha,

Please consider using Cat Indices API for Python client API Documentation — Elasticsearch 8.0.0 documentation

More info: