Bulk download files in Design Studio

Highlighted

Bulk download files in Design Studio

Is there a way to bulk download/extract files in the Images and Files section of Design Studio?

6 REPLIES 6
Highlighted
Level 10 - Community Moderator

Re: Bulk download files in Design Studio

Yes, in the sense that via the API you can traverse and download all uploaded files.

Via the UI there are only hacks to scrape the HTML and get all the URLs. (You can use a generic scraper plugin for your browser and get about the same degree of accuracy.)

Highlighted

Re: Bulk download files in Design Studio

Yes , you can only you need to provide the Folder id. via the Postman app. For reference, you can see the marketo developer url.

Sample : https://Your Marketo Instance Munchknid.mktorest.com/rest/asset/v1/files.json?folder={"id": Folder id, "type": "Folder"}&maxReturn=200

http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Files/getFiles...

Hope that helps!

Highlighted
Level 10 - Community Moderator

Re: Bulk download files in Design Studio

Well... you're oversimplifying quite a bit because if you want to get the files recursively, you have to keep track of the last page. In addition, you aren't actually downloading the file contents until you also GET the binaries.

Postman isn't really the tool for executing this job (though it is an essential tool for testing).

Highlighted

Re: Bulk download files in Design Studio

Thanks Sanford, yes need to track the last page,totally agree but via Postman able to extract and solution work for me.

Highlighted
Level 10 - Community Moderator

Re: Bulk download files in Design Studio

You're also getting all the binaries via Postman? Are you scripting it, or just manually typing each one into a new tab?

Highlighted

Re: Bulk download files in Design Studio

Hey Jayanto, could you please help me with the query which could fetch the individual public URL of assets in a folder against their respective assets name?

I took cue from the link which you gave above and "url (string): Publically accessible URL of the file" looks to solve my purpose. Thank you in advance..

https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Files/getFile...