I am looking for a google api to fetch the user location history, I know google is storing users location history and we are able to track it from -
https
Although there is no API ready for use one can build together a script based on Curl that sets the right cookies and retrieves the content like described by Terence Eden [LINK].
Another way - although not well suited for an app - is to create an archive of your Google account information (select only location history information to keep it small) and therewith getting a Json-file with all location information.