What's inside Udacity's API

check list

Our core catalog information

Access all of the information you can find in our catalog and on all of our course and Nanodegree program overview pages.

pen and mouse

Easy to use

Our simple documentation will get you up and running quickly. We've built the API on pragmatic RESTful principles.

computer screen

Dogfooded & trusted

We power our website, iOS, and Android apps using this same API.

Get started now!

import json
import urllib
response = urllib.urlopen('https://udacity.com/public-api/v0/courses')
json_response = json.loads(response.read())
for course in json_response['courses']:
    print course['title']
    print course['homepage']
// CORS is enabled so AJAX calls can be made
$.getJSON("https://www.udacity.com/public-api/v0/courses", function(data) {
    $.each(data.courses, function(count) {
        console.log(data.courses[count].title);
        console.log(data.courses[count].homepage);
    });
});
var http = require('https');
var options = {
  host: 'www.udacity.com',
  path: '/public-api/v0/courses'
};
callback = function(response) {
  var str = '';
  response.on('data', function (chunk) {
    str += chunk;
  });
  response.on('end', function () {
    json_response = JSON.parse(str);
    courses = json_response.courses;
    for (var i = 0; i < courses.length; i++) {
       console.log(courses[i].title);
       console.log(courses[i].homepage);
    }
  });
};
http.request(options, callback).end();
<?php
  $resp = file_get_contents("https://www.udacity.com/public-api/v0/courses");
  $json_response = json_decode($resp, true);
  foreach ($json_response["courses"] as $course) {
    echo $course["title"], "<br>";
    echo $course["homepage"], "<br>";
  }
?>
require 'net/http'
require 'json'

url = 'https://www.udacity.com/public-api/v0/courses'
response = Net::HTTP.get(URI.parse(url))
json_response = JSON.parse(response)

json_response['courses'].each do |course|
    puts course['title']
    puts course['homepage']
end
to see the API in action
Intro to Computer Science
https://www.udacity.com/course/cs101
Intro to Java Programming
https://www.udacity.com/course/cs046
Programming Foundations with Python
https://www.udacity.com/course/ud036
Developing Android Apps
https://www.udacity.com/course/ud853
Intro to Data Science
https://www.udacity.com/course/ud359
Web Development
https://www.udacity.com/course/cs253