I try to get data from the api metrics via js, but it doesn't work, I get an error:

XMLHttpRequest cannot load https://api-metrika.yandex.ru/stat/v1/data?id=36783295&metrics=ym:s:visits , ym:s: users No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://vh17725.hv5.ru ' is therefore not allowed access.

Is it really impossible to take data from Yandex through js? Or can there be any ways for this?

  • And how do you try to download them? - Jean-Claude
  • @ Jean-Claude, through the restangular library - Sdafs Fasafs
  • There is usually no data exchange between domains, but you can download them with curl. - Jean-Claude

0