accuracy = 10000. This will include the extremely rough cell tower updates that come in at about 1500m accuracy.

ignore_gaps = 1. This will prevent the API from returning only the latest trip it finds, and will instead return all data even if there are large gaps in time

after = 0000000000, or the first date you have recorded data

When you run that you will get a large JSON document with the keys points, distance, timerange and bounds. The location data is in the points array. To continue fetching data, use the value in timerange.to_ts as the value for "after" in the next API call.

Eventually you will end up iterating to the current time and you'll get an empty array for "points".

You can see some short code examples and you can get a permanent access token on the Getting Started page.