Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Documentation for (and examples of) using the Khan Academy API
JavaScript CSS Python HTML Makefile
Branch: master

Merge pull request #93 from hblumberg/test_client2_fix

Ensure test_client2 handles URL queries.
latest commit 3dd633dd1b
@alangpierce alangpierce authored

Khan Academy API Documentation and Examples



All example code is MIT licensed.

  1. python
  2. Enter your consumer key and secret
  3. Enter the Khan Academy url you want to test against (unless you're running a local version, this'll be
  4. A browser will pop up for you to walk through the authentication flow. When done, it will redirect you to a page that says "Ok" and in the URL there will be two parameter values you need: oauth_token and oauth_token_secret.
  5. Go back to the command line and enter your new token and secret.
  6. You'll now have a loop that lets you run Khan Academy API queries, authenticated as the user you logged in as.
  7. Examples:

Something went wrong with that request. Please try again.