Elasticsearch copy index data to a file

I found the GET api and Multi Get api both definitely requires the id to retrieve the document.

I want to get all the data in the index and save to a file (like a backup of index) without using the snaphost api since because I dont have a shared mountpoint/s3/azure/hdfs.

Is there any Curl command for to just get all the docs in an index.
or a python with elasticsearch client to get all the docs in an index.

I found elasticsearch-dump. But Please help me out with finding in curl/python.

take a look at the Search Scroll API