Is there any way to get the user location using REST API ? I have investigated the same in Marketo doc but couldn't find a solution.
Do you mean the Inferred Country, etc. fields? Please explain the use case.
Hi San,
Yes.. country, city etc. We need to know the visitors location. We have to display list of items in our website based on the location (country, city) where the visitors came.
You cannot use the REST API for this for a multitude of reasons: [1] the API is not designed to be used via the browser (including via proxy) or you have created a gaping Denial of Service hole; [2] the data isn't available when the Munchkin session is created.
Use a service designed for this, like MaxMind.
Or maybe use free API's like https://ipapi.co/json