QualtricsAPI is a lightweight Python library for the Qualtrics Web API.
Qualtrics is an awesome company that builds software which gives users the ability to collect online data through online surveys. This python package, exists as a wrapper on top of the Qualtrics API. This package's primary goal is to be a super convenient way for python users to ingest, or upload their data from Qualtrics to their development environment, and vice versa.
Before we continue, I want to mention two things:
First, you must have Qualtrics API access in order to use this package. Contact whomever your Qualtrics Account Manager is for further clarification on your account's access credentials.
Secondly, this package is not affiliated with Qualtrics. Thus, I the author of this package, Jeremy Seibert, am not affiliated with Qualtrics, and Qualtrics does not offer support for this package. For specific information about the Qualtrics API, you can refer to their official documentation.
There are currently three primary uses of this package.
Contact Data - to manage survey contacts within the XMDirectory and any associated Mailing Lists.
Survey Data - to manage surveys and the data collected from each of your surveys.
Distribution Data - to manage the distributions (i.e. emails) which are sent to contacts as invites, reminders to complete surveys.
The installation of the package is pretty straight forward. Open up your terminal and run the command below. If you do not already have pip installed on your machine, you may have to install pip first, see Pip Installation Instructions for help!
$ pip install Qualtrics
Credentials Code Flow
We first create environment variables that will hold your API credentials, so you don't have to continually declare them. To do this we import the Credentials module, create and call the
from QualtricsAPI.Setup import Credentials #Create an instance of Credentials c = Credentials() #Call the qualtrics_api_credentials() method c.qualtrics_api_credentials(token='Your API Token',data_center='Your Data Center',directory_id='Your Directory ID')
This will generate environment variables that will be used to populate the HTTP headers which are necessary to make your API calls.
For any R users there is an equally awesome package called "qualtRics" which functions in very similar ways to this package. I have tried to keep consistent with some of the methods that are used in the qualtRics package and this one, so that there is a cohesion between the two. However, I don't believe that it supports functionality to work within the XM Contacts Data (i.e. the XMDirectory, or Mailing Lists). CRAN
Want to Contribute?
This project abides by the Contributor Code of Conduct. By participating in this project you agree to abide by its terms. Feedback, bugs, any potential fixes, and feature requests are welcome!
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size QualtricsAPI-0.2.5-py3-none-any.whl (30.7 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size QualtricsAPI-0.2.5.tar.gz (20.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for QualtricsAPI-0.2.5-py3-none-any.whl