Api return empty data response after deploy on replit

I have a simple telegram bot which fetch data from an api and sends data to telegram as message. Api url works on any browser without any request and it works on postman successfully. My code runs and works truely on replit editor but it returns empty data when I deploy on replit. When I examine the logs, I see that the API returns 200. But the data object is empty. I messed around with headers and even added cookies etc., but no data is being returned. Why could it be?

This is api url which I call : https://www.mexc.com/api/operateactivity/sun_shines/list?kol=false

And this is my codes;

import requests
import time from telegram 
import Bot
import logging from flask import Flask

logging.basicConfig(level=logging.DEBUG, 
                format='%(asctime)s %(levelname)s %(message)s',
                handlers=[logging.FileHandler("app.log"), logging.StreamHandler()])

bot_token = '****'
chat_id = '****'
bot = Bot(token=bot_token)

headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like 
 Gecko) Chrome/125.0.0.0 Safari/537.36',
'accept': 'application/json',
'accept-language': 'tr,en;q=0.9',
'referer': 'https://www.mexc.com/',
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive'
}

def fetch_token_symbols():
url = 'https://www.mexc.com/api/operateactivity/sun_shines/list?kol=false'
try:
    logging.debug(f"Request URL: {url}")
    logging.debug(f"Request Headers: {headers}")

    response = requests.get(url, headers=headers)
    response.raise_for_status()  # Raise an error for bad status codes
    logging.debug(f"API Response Status Code: {response.status_code}")
    logging.debug(f"API Response Headers: {response.headers}")

    data = response.json()
    logging.debug(f"API Response Data: {data}")

    if 'data' not in data:
        logging.error("API response does not contain 'data' key")
        return []

    token_symbols = [{
        'profitCurrency': item.get('profitCurrency', ''),
        'profitCurrencyFullName': item.get('profitCurrencyFullName', ''),
        'currencyType': item.get('currencyType', ''),
        'contractAddress': item.get('contractAddress', '')
    } for item in data.get('data', [])]

    return token_symbols
except requests.exceptions.RequestException as e:
    logging.error(f"Request failed: {e}")
    return []
except ValueError as e:
    logging.error(f"Response parsing failed: {e}")
    return []

def send_token_list():
current_tokens = fetch_token_symbols()

if not current_tokens:
    error_message = "API'den geçerli token listesi alınamadı."
    bot.send_message(chat_id=chat_id, text=error_message)
    logging.error(error_message)
    return

messages = [
    f"Token Sembolü: {token['profitCurrency']}n"
    f"Full Name: {token['profitCurrencyFullName']}n"
    f"Currency Type: {token['currencyType']}n"
    f"Contract Address: {token['contractAddress']}"
    for token in current_tokens
]

message = "Güncellenmiş Token Listesi:nn" + "nn".join(messages)
bot.send_message(chat_id=chat_id, text=message)
logging.info("Güncellenmiş liste gönderildi.")

def start_periodic_task():
  while True:
    send_token_list()
    time.sleep(60)  # 1 minute delay 

app = Flask(__name__)

@app.route('/')
def home():
  return "Application is running!"

if __name__ == "__main__":
  import threading
threading.Thread(target=start_periodic_task, daemon=True).start()
app.run(host='0.0.0.0', port=5000)

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật