Switch branches/tags
open-release/hawthorn.2 open-release/hawthorn.1 open-release/hawthorn.1rc3 open-release/hawthorn.1rc2 open-release/hawthorn.1rc1 open-release/ginkgo.2 open-release/ginkgo.1 open-release/ginkgo.1rc1 open-release/ficus.4 open-release/ficus.3 open-release/ficus.2 open-release/ficus.1 open-release/ficus.1rc4 open-release/ficus.1rc3 open-release/ficus.1rc2 open-release/ficus.1rc1 open-release/eucalyptus.3 open-release/eucalyptus.2 open-release/eucalyptus.1 open-release/eucalyptus.1rc2 open-release/eucalyptus/1rc1 nedbat/test/h.1.1 nedbat/test/ficus.4.4 nedbat/test/ficus.4.3 nedbat/test/ficus.4.2 nedbat/test/ficus.3.3 nedbat/test/ficus.3.2 nedbat/test/ficus.3.1 nedbat/test/ficus.2.3 nedbat/test/ficus.2.1 nedbat/test/ficus.2rc1.2 nedbat/test/ficus.2rc1.1 nedbat/test/ficus.1rc4.3 nedbat/test/ficus.1rc4.2 nedbat/test/ficus.1rc4.1 nedbat/test-ficus.1rc4 ned/test-ficus.2 ned/test-ficus.1 named-release/dogwood.3 named-release/dogwood.2 named-release/dogwood.1 named-release/dogwood named-release/dogwood.rc3 named-release/dogwood.rc2 named-release/dogwood.rc1 edx-west/release-pre-20150202 1.0.0 0.28.0 0.27.0 0.26.1 0.26.0 0.25.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.1-rc.3 0.20.1-rc.2 0.20.1-rc.1 0.20.0-rc.3 0.20.0-rc.2 0.20.0-rc.1 0.19.0-rc.1 0.18.0-rc.1 0.17.0-rc.1 0.16.0-rc.2 0.16.0-rc.1 0.15.0-rc.1 0.14.0-rc.1 0.13.0-rc.1 0.12.0 0.12.0-rc.2 0.12.0-rc.1 0.11.0 0.11.0-rc.0 0.10.0 0.10.0-rc.0 0.9.0 0.9.0-rc.0 0.8.0 0.8.0-rc.0 0.7.1 0.7.1-rc.0 0.7.0-rc.0 0.6.3 0.6.2 0.6.1 0.6.0 0.5.0 0.5.0-rc.2 0.5.0-rc.1 0.5.0-rc.0 0.4.0 0.4.0-rc.0 0.3.0 0.3.0-rc.2 0.3.0-rc.1 0.3.0-rc.0 0.2.0
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (57 sloc) 2.26 KB

Set up the Data Analytics API Server

This chapter describes how to set up and test the edX Data Analytics API server:

  1. Get the Repository
  2. Install Server Requirements
  3. Run the Server
  4. Load Sample Data
  5. Test the Data Analytics API

Also see :ref:`edX Data Analytics API Authentication`.

Get the Repository

You must get the `Data Analytics API repository`_ from GitHub.

From the terminal, enter:

git clone

You may choose to get the repository in a virtual environment.

Install Server Requirements

From the terminal at the top level of the server repository, enter:

$ make develop

Server requirements are then installed.

Run the Server

From the terminal at the top level of the server repository, enter:

$ ./ runserver

The server starts.

Load Sample Data

From the terminal at the top level of the server repository, enter:

$ make loaddata

Test the Data Analytics API

After you load sample data and run the server, you can test the API.

  1. In a browser, go to: http://<server-name>:<port>/docs/#!/api/

  2. Enter a valid key and click Explore.

    See :ref:`edX Data Analytics API Authentication` for information on keys.

    You see an interactive list of API endpoints, which you can use to get responses with the sample data. Expand the api section to see the available endpoints.

    The API test web page
  1. Expand the section for an endpoint:

    The API test web page with an expanded endpoint
  2. Enter parameters as needed and click Try it out. The response opens:

    The API test web page with a response

To get the sample enrollment data, use edX/DemoX/Demo_Course as the course_id.