Dataverse APIs allow users to accomplish many tasks such as...
... all without using the Dataverse web interface.
APIs open the door for integrations between Dataverse and other software. For a list, see the Integrations section of the Admin Guide.
Contents:
API stands for “Application Programming Interface” and an example is Dataverse’s “file upload” API. In the diagram below, we can see that while users can click a button within Dataverse’s web interface to upload a file, there are many other ways to get files into Dataverse, all using an API that allows for uploading of files.
The components above that use the “file” upload API are:
The diagram above shows only a few examples of software using a specific API but many more APIs are available.
This guide is intended to serve multiple audiences but pointers various sections of the guide are provided below based on the type of API user you are.
Each installation of Dataverse will have its own groups of people interested in APIs.
Integrations and apps can take many forms but two examples are:
In both examples, users need to obtain an API Token to authenticate with Dataverse.
Starting point A good starting point is “API Tokens” in the Account Creation + Management section of the User Guide. DvUploader is documented in the Dataset + File Management section of the User Guide. The integrations that are enabled depend on your installation of Dataverse. You can find a list in the Integrations section of the Admin Guide.
Power users may be researchers or curators who are comfortable with automating parts of their workflow by writing Python code or similar.
Starting point The recommended starting point for power users is the Getting Started with APIs section.
Support teams that answer questions about their installation of Dataverse should familiarize themselves with the Getting Started with APIs section to get a sense of common tasks that researchers and curators might be trying to accomplish by using Dataverse APIs.
Superusers of an installation of Dataverse have access a superuser dashboard described in the Dashboard section of the Admin Guide but some operations can only be done via API.
Starting point A good starting point for both groups is the Getting Started with APIs section of this guide followed by the Troubleshooting section of the Admin Guide.
Sysadmins often write scripts to automate tasks and Dataverse APIs make this possible. Sysadmins have control over the server that Dataverse is running on and may be called upon to execute API commands that are limited to “localhost” (the server itself) for security reasons.
Starting point A good starting point for sysadmins is “Blocking API Endpoints” in the Configuration section of the Installation Guide, followed by the Getting Started with APIs section of this guide, followed by the Troubleshooting section of the Admin Guide.
Some organizations that run Dataverse employ developers who are tasked with using Dataverse APIs to accomplish specific tasks such as building custom integrations with in house systems or creating reports specific to the organization’s needs.
Starting point A good starting point for in house developers is the Getting Started with APIs section.
The Dataverse project loves contributors! Depending on your interests and skills, you might fall into one or more of the groups below.
One of the primary purposes for Dataverse APIs in the first place is to enable integrations with third party software. Integrations are listed in the following places:
Starting point Good starting points are the three sections above to get a sense of third-party software that already integrates with Dataverse, followed by the Getting Started with APIs section.
A client library helps developers using a specific programming language such as Python, Javascript, R, or Java interact with Dataverse APIs in a manner that is idiomatic for their language. For example, a Python programmer may want to
Starting point A good starting point is the Client Libraries section, followed by the Getting Started with APIs section.
Developers working on Dataverse itself use Dataverse APIs when adding features, fixing bugs, and testing those features and bug fixes.
Starting point A good starting point is the Testing section of the Developer Guide.
Please note that some APIs are only documented in other guides that are more suited to their audience:
See Client Libraries for how to use Dataverse APIs from Python, R, and Java.
Apps links to example open source code you can study. Getting Started with APIs also has many examples.
Dataverse API questions are on topic in all the usual places:
After your question has been answered, you are welcome to help improve the Frequently Asked Questions section of this guide.