Код
link = 'https://www.olx.ua/uk/obyavlenie/prodam-pdsilyuvach-bampera-hrebet-ford-c-max-hybrid-2013-2017-rk-IDDYHPI.html#7ba85d1008'
html = requests.get(link).text
text = re.search("var phoneToken = '[a-zA-Z0-9]+", html)
token = text.group(0)[18:]
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',
'Referer': 'https://www.olx.ua'
}
r = requests.get('https://www.olx.ua/uk/ajax/misc/contact/phone/DYHPI/?pt=' + token, headers=headers)
print(r.text)
возращает {"value":"000 000 000"}