import requests
cookies = {
'ak_bmsc': '7272A7E9AF02C07AFACDB8CF2872646B~000000000000000000000000000000~YAAQJc8ti99lNdiJAQAAuj4M3BS449wdEwnDiSSZFZrISuStsHyNolyhskRsho9gicG4YH1eUvKDCYAWkHm+zcnFXeP36orfTG7gyY5MgYdWFr2BUrczUo9RmhPz0KfxhvgKVp32+p2wgTdeXV4rfGD6GgUGRlViU84lPcfEQv0xu3pTjPIANS2DqV2O7nek7pB7SSWL1kAuTJel/4LbXSwSS+oNmpyZo9tYKB0Z+ZPfYb7g4Y6oYg2UwxlZSxYQvDaB1r9II1V2b59bmWnleFSJnsSHpWxc5tEeMfbww66zVdODG1K96uZIUeBbbkUAc2yuuEkvVMFT4j5WiwoxoTri34TircdRqr+PPCLRMBlKk9nxJkOYlGbj',
}
headers = {
'authority': 'api.zomato.com',
'accept': 'application/json, text/plain, */*',
'accept-language': 'uz-UZ,uz;q=0.9,en-US;q=0.8,en;q=0.7,ru;q=0.6',
'content-type': 'application/json',
# 'cookie': 'ak_bmsc=7272A7E9AF02C07AFACDB8CF2872646B~000000000000000000000000000000~YAAQJc8ti99lNdiJAQAAuj4M3BS449wdEwnDiSSZFZrISuStsHyNolyhskRsho9gicG4YH1eUvKDCYAWkHm+zcnFXeP36orfTG7gyY5MgYdWFr2BUrczUo9RmhPz0KfxhvgKVp32+p2wgTdeXV4rfGD6GgUGRlViU84lPcfEQv0xu3pTjPIANS2DqV2O7nek7pB7SSWL1kAuTJel/4LbXSwSS+oNmpyZo9tYKB0Z+ZPfYb7g4Y6oYg2UwxlZSxYQvDaB1r9II1V2b59bmWnleFSJnsSHpWxc5tEeMfbww66zVdODG1K96uZIUeBbbkUAc2yuuEkvVMFT4j5WiwoxoTri34TircdRqr+PPCLRMBlKk9nxJkOYlGbj',
'origin': 'https://www.zomato.com',
'referer': 'https://www.zomato.com/',
'sec-ch-ua': '"Not/A)Brand";v="99", "Google Chrome";v="115", "Chromium";v="115"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"macOS"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-site',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36',
'x-client-id': 'zomato_web_merchant',
'x-zomato-app-version': '3',
'x-zomato-trace-id': 'web_ztrends_a4cbd55b-9d26-46f4-82ac-bb0c4d5702ed',
}
params = {
'data': 'eyJtb2RlIjoiZGV0YWlsIiwiZW50aXR5IjoiZGlzaCIsImRpc2hRdWVyeSI6W3siaWQiOiI3Y2YyZGI1ZWMyNjFhMGZhMjdhNTAyZDMxOTZhNmY2MCIsInR5cGUiOiJjdWlzaW5lIiwidmFsdWUiOiJQaXp6YSJ9XSwibG9jYXRpb25RdWVyeSI6W3sidHlwZSI6ImNvdW50cnkiLCJpZCI6MSwidmFsdWUiOiJJbmRpYSJ9XX0=',
}
response = requests.get(
'https://api.zomato.com/merchant-gw/ztrends/get-insights',
params=params,
cookies=cookies,
headers=headers,
)