Stream: dev

Topic: ✔ Data Access API on demo.dataverse.org


view this post on Zulip Kai König (Dec 03 2024 at 10:30):

Hi, for an integration with galaxyproject.org I need to be able to download files from dataverse via API.

When I use the API request from the docs, I get this response. Is the Data Access API not active on the demo instance?
{"status":"ERROR","code":404,"message":"API endpoint does not exist on this server. Please check your code for typos, or consult our API guide at http://guides.dataverse.org.","requestUrl":"https://demo.dataverse.org/api/v1/access/datafile/:persistentId/?persistentId=doi:10.70122/FK2/DIG2DG","requestMethod":"GET"}

Is there another way to get the file, via Native API?

view this post on Zulip Kai König (Dec 03 2024 at 10:36):

Oh I found a working URL. And actually it is even linked on the file in the UI, great! So I am going to answer myself:
This works. Looks like the v1 in the URL was making trouble and the persistend ID wasn't correct either:
https://demo.dataverse.org/api/access/datafile/:persistentId?persistentId=doi:10.70122/FK2/DIG2DG/AVNCLL

view this post on Zulip Notification Bot (Dec 03 2024 at 10:36):

Kai König has marked this topic as resolved.

view this post on Zulip Philip Durbin 🚀 (Dec 03 2024 at 13:53):

I'm glad you figured it out.

The v1 should be ok. This works: https://demo.dataverse.org/api/v1/access/datafile/:persistentId?persistentId=doi:10.70122/FK2/DIG2DG/AVNCLL

But yeah, the persistentId definitely needs to be valid.


Last updated: Nov 01 2025 at 14:11 UTC