# Python script for getting sequence details

**URL:** <https://forum.mapillary.com/t/python-script-for-getting-sequence-details/1084>\
**Category:** Contributing and equipment\
**Created:** [July 25, 2017, 9:14pm UTC](https://forum.mapillary.com/t/python-script-for-getting-sequence-details/1084 "2017-07-25T21:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micmin1972](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@micmin1972](https://forum.mapillary.com/u/micmin1972)\
**Post date:** [July 25, 2017, 9:14pm UTC](https://forum.mapillary.com/t/python-script-for-getting-sequence-details/1084/1 "2017-07-25T21:14:29Z")

</div>

Has someone a working python script that can ‘analyse’ a given sequence key as argument? I am interested in total distance, average speed, total time in several trips I uploaded.

---

<div class="post-metadata">

**Author:** ![tryl](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tryl/32/62_2.png) [@tryl](https://forum.mapillary.com/u/tryl)\
**Post date:** [July 26, 2017, 8:30am UTC](https://forum.mapillary.com/t/python-script-for-getting-sequence-details/1084/2 "2017-07-26T08:30:32Z")

</div>

In [gpxutils/ at master · simonmikkelsen/gpxutils · GitHub](https://github.com/simonmikkelsen/gpxutils?files=1) I have a Python script that will create a gpx file from a sequence. You can then use another program to analyze it.

---

<div class="post-metadata">

**Author:** ![Richlv](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/richlv/32/68232_2.png) [@Richlv](https://forum.mapillary.com/u/Richlv)\
**Post date:** [December 29, 2022, 11:18am UTC](https://forum.mapillary.com/t/python-script-for-getting-sequence-details/1084/3 "2022-12-29T11:18:54Z")

</div>

With the Mapillary API v4, all the old tools broke.  
Here’s a quick Perl script to get GPX sequence[s]. For convenience, a single image ID can be specified from each sequence.  
[https://www.openstreetmap.org/user/richlv/diary/400630](https://www.openstreetmap.org/user/richlv/diary/400630)

Same as with the other scripts, other tools can be used on GPX to analyse it - a lot of options there.

For my own use, I’d love to filter by user, camera and date in a bbox, but [Mapillary API got so seriously nerfed with v4](https://forum.mapillary.com/t/mapillary-api-why-so-bad/6617)…
