https://pyclip.ru/ru/tapes/VyILR7HN9I4/how-to-optimize-api-calls-for-a-large-dataset-using-python