# Download Mapilarry images with API v4

**URL:** <https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215>\
**Category:** Imagery\
**Created:** [August 3, 2021, 9:39pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215 "2021-08-03T21:39:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiamMacLean](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@LiamMacLean](https://forum.mapillary.com/u/LiamMacLean)\
**Post date:** [August 3, 2021, 9:39pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/1 "2021-08-03T21:39:55Z")

</div>

Hi,

I’m using python. Given coordinates, I’d like to download the nearest image from Mapilarry. How do I do this?

Thanks

---

<div class="post-metadata">

**Author:** ![charles](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@charles](https://forum.mapillary.com/u/charles)\
**Post date:** [August 16, 2021, 3:38pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/2 "2021-08-16T15:38:20Z")

</div>

Exactly the question I’m looking for an answer for.  
Surprised the document has nothing for it.

---

<div class="post-metadata">

**Author:** ![chrisbeddow](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/chrisbeddow/32/844_2.png) [@chrisbeddow](https://forum.mapillary.com/u/chrisbeddow)\
**Post date:** [August 18, 2021, 2:47pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/3 "2021-08-18T14:47:00Z")

</div>

@LiamMacLean Here is a good way to get images in a bounding box, which you can adapt to do a distance search. We may have some new tools soon to make this even easier in Python.

[https://gist.github.com/cbeddow/74b3bb7f7d69f52a7b0fc0e221be5ff5](https://gist.github.com/cbeddow/74b3bb7f7d69f52a7b0fc0e221be5ff5)

---

<div class="post-metadata">

**Author:** ![jerrymark611](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jerrymark611](https://forum.mapillary.com/u/jerrymark611)\
**Post date:** [August 20, 2021, 6:12am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/4 "2021-08-20T06:12:09Z")

</div>

@chrisbeddow I think that script only download the metadata, not the images itself. Perhaps we can download images using its id?

---

<div class="post-metadata">

**Author:** ![chrisbeddow](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/chrisbeddow/32/844_2.png) [@chrisbeddow](https://forum.mapillary.com/u/chrisbeddow)\
**Post date:** [August 20, 2021, 10:03am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/5 "2021-08-20T10:03:44Z")

</div>

This script will get the JPGs for you: [Download Mapillary images a JPGs · GitHub](https://gist.github.com/cbeddow/79d68aa6ed0f028d8dbfdad2a4142cf5)

---

<div class="post-metadata">

**Author:** ![jerrymark611](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@jerrymark611](https://forum.mapillary.com/u/jerrymark611)\
**Post date:** [August 23, 2021, 1:04am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/6 "2021-08-23T01:04:50Z")

</div>

Thank you! I’ve been looking for this.

---

<div class="post-metadata">

**Author:** ![doduva](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@doduva](https://forum.mapillary.com/u/doduva)\
**Post date:** [September 1, 2021, 10:46am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/7 "2021-09-01T10:46:09Z")

</div>

Is there a way to download GPS position of the single images and the track (GPX, maybe JSON) ?

---

<div class="post-metadata">

**Author:** ![jorrarro](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/jorrarro/32/70811_2.png) [@jorrarro](https://forum.mapillary.com/u/jorrarro)\
**Post date:** [September 1, 2021, 2:07pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/8 "2021-09-01T14:07:06Z")

</div>

You can download tiles with image locations and ids as geoJSON from mly1\_public layer.

This is how I have done it - [random-mapillary-stuff/mapillary\_v4\_downloader.py at master · taneljairus/random-mapillary-stuff · GitHub](https://github.com/taneljairus/random-mapillary-stuff/blob/master/mapillary_v4_downloader.py)

---

<div class="post-metadata">

**Author:** ![doduva](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@doduva](https://forum.mapillary.com/u/doduva)\
**Post date:** [September 1, 2021, 2:24pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/9 "2021-09-01T14:24:16Z")

</div>

Thanks. I will try it !

---

<div class="post-metadata">

**Author:** ![trekview](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/trekview/32/70628_2.png) [@trekview](https://forum.mapillary.com/u/trekview)\
**Post date:** [September 1, 2021, 8:10pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/10 "2021-09-01T20:10:41Z")

</div>

Hey @chrisbeddow – any plans to expose raw (unprocessed) URL to the owner for download? Seems this has been removed from the response when querying sequences from authenticated owner (only processed image links).

---

<div class="post-metadata">

**Author:** ![trekview](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/trekview/32/70628_2.png) [@trekview](https://forum.mapillary.com/u/trekview)\
**Post date:** [September 1, 2021, 8:15pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/11 "2021-09-01T20:15:37Z")

</div>

I noticed the option to download the raw copy has been removed from the UI too.

---

<div class="post-metadata">

**Author:** ![chrisbeddow](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/chrisbeddow/32/844_2.png) [@chrisbeddow](https://forum.mapillary.com/u/chrisbeddow)\
**Post date:** [September 2, 2021, 10:43am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/12 "2021-09-02T10:43:33Z")

</div>

No explicit plan for this right now, but it’s good that you ask so I can mark this as a request. Can you remind me how exactly you use this?

---

<div class="post-metadata">

**Author:** ![trekview](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/trekview/32/70628_2.png) [@trekview](https://forum.mapillary.com/u/trekview)\
**Post date:** [September 9, 2021, 6:37pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/13 "2021-09-09T18:37:20Z")

</div>

Hey @chrisbeddow the use case would be backup. Sometimes I don’t have the photos locally available, and access to a Mapillary copy of the original is a nice to have for me. For me, it’s low priority (just something I noticed missing, really).

---

<div class="post-metadata">

**Author:** ![Tobesucht](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tobesucht/32/71333_2.png) [@Tobesucht](https://forum.mapillary.com/u/Tobesucht)\
**Post date:** [September 27, 2021, 5:41am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/14 "2021-09-27T05:41:07Z")

</div>

Hi all,  
I am new to the Mapillary API and have tested it´s capabilities in the recent days. With the JPG download script from @chrisbeddow I am experiencing that after some time(~20MB) the network breaks down and I cannot continue to download the street imagery. I have tested it from several locations (home, work, with and without VPN) and it is not possible to download a larger region with a hand full of tiles. The procedure fails already on the first tile (`Tile 14/4393/6051`).  
Do you have any clue why this is the case? Is there maybe a limit set for downloads? The script is getting stuck on line 50.

I am thankful for any kind of help - thanks!

---

<div class="post-metadata">

**Author:** ![Tobesucht](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tobesucht/32/71333_2.png) [@Tobesucht](https://forum.mapillary.com/u/Tobesucht)\
**Post date:** [September 27, 2021, 7:30am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/15 "2021-09-27T07:30:24Z")

</div>

Hi again,  
I figured out that from time to time timeouts appear. I have changed the code so that timeouts and retries are considered for the thumbnail creation and -download. Now it works like a charm for hundreds of thousands of images.

---

<div class="post-metadata">

**Author:** ![chrisbeddow](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/chrisbeddow/32/844_2.png) [@chrisbeddow](https://forum.mapillary.com/u/chrisbeddow)\
**Post date:** [September 27, 2021, 1:24pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/16 "2021-09-27T13:24:40Z")

</div>

Thanks for the feedback! If you share your code I can add the timeouts to the example probably. Glad you found it working.

---

<div class="post-metadata">

**Author:** ![Tobesucht](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tobesucht/32/71333_2.png) [@Tobesucht](https://forum.mapillary.com/u/Tobesucht)\
**Post date:** [September 27, 2021, 2:07pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/17 "2021-09-27T14:07:51Z")

</div>

Hi @chrisbeddow, thanks for your response! Please find the project here: [GitHub - tobesucht/mapillary\_downloader: The tool provides the option to download from Mapillary v4 all kind of vector data and street imagery for a given region](https://github.com/tobesucht/mapillary_downloader)  
The downloader has to be started via **app.py**. The connection-handling is defined in lines 25-29 and 37 in **mapillary\_processor.py** as well in line 37 in **image\_downloader.py**.  
I hope you like the solution.  
Cheers

---

<div class="post-metadata">

**Author:** ![hlynge](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/hlynge/32/71515_2.png) [@hlynge](https://forum.mapillary.com/u/hlynge)\
**Post date:** [January 15, 2022, 8:10am UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/18 "2022-01-15T08:10:37Z")

</div>

In reply to your request for a option to download the raw - un compressed/processed images, I would also be very interested in such a feature to be re-implemented for backup and alternate processing.  
@chrisbeddow - any information on the state of the request would be welcome.

---

<div class="post-metadata">

**Author:** ![hlynge](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/hlynge/32/71515_2.png) [@hlynge](https://forum.mapillary.com/u/hlynge)\
**Post date:** [January 15, 2022, 12:04pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/20 "2022-01-15T12:04:28Z")

</div>

So it is not possible to save a image in a resolution that is higher than the 2048 thumb-nail ?  
And How would I be able to limit the image search to only include specific users or Organization\_id’s?  
Sample code would be very welcome

---

<div class="post-metadata">

**Author:** ![hlynge](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/hlynge/32/71515_2.png) [@hlynge](https://forum.mapillary.com/u/hlynge)\
**Post date:** [January 15, 2022, 5:21pm UTC](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215/22 "2022-01-15T17:21:01Z")

</div>

It is very evident to me that you are way more experienced in this, than me, this is why I reach out. I am on a learning journey here, and would really appreciate some help

[Next page](https://forum.mapillary.com/t/download-mapilarry-images-with-api-v4/5215.md?page=2)
