Questions tagged [khan-academy]

This tag is for questions related to interfacing with Khan Academy, such as through the Khan Academy API. Do not use this tag for questions related to the courses that you are taking on Khan Academy.

The Khan Academy is a website dedicated to instructional videos on a wide array of topics.

All of the site's resources are available to anyone. Khan Academy's materials and resources are available to you completely free of charge.

This tag is for questions related to the Khan Academy API and other ways of interfacing with Khan Academy. This tag is not for questions related to the courses taken on Khan Academy. Use other specific tags for those.

111 questions
2
votes
1 answer

Breadth First Search Algorithm

I am learning algorithms. I am stuck in implementing BFS exercise part. There is no clue or solution to exercises on their site.I cannot figure out where am I making mistake? Someone please help me in understanding where I am doing it wrong. here…
user2991828
  • 163
  • 4
  • 12
1
vote
1 answer

arc to show reload time left in a shooter game

quick question about a game engine I am writing in Javascript in Khan Academy: i have on arc that represents the amount of reload time left. (in processing js, drawing an arc works like this: arc(x,y,width,height,start,stop);) I already have the…
1
vote
1 answer

Issue with javascript project and arrays (Make it rain)

I am kinda new here. I´m taking the Khan academy programming course (mostly javascript) and I am kinda stuck with a project. It's a challenge called Make it rain, where you are supposed to make raindrops that are falling on a canvas, and reset back…
Alanpap301
  • 11
  • 4
1
vote
0 answers

Navigating Khan Academy Topic Tree

I am trying to use Google App Scripts to access the Khan Academy server and count the number of skills required to master a given topic. For instance, I would like to be able to retrieve the number of skills required to master Algebra 1. How can I…
1
vote
0 answers

Authenticating Student Accounts with Khan Academy API

I am writing a Google Apps Script to access student information from Khan Academy through their API. Currently, I have a script that successfully accesses MY user data and lists my students' information as JSON data. I can access their user ids and…
1
vote
1 answer

Khan Academy: Cannot read property of undefined

I am programming a library that can transform polygons on Khan Academy, however I keep getting this error: Cannot read property 'x' of undefined with no line numbers. My code: var Point = function(x,y) { this.x = x; this.y =…
Eric He
  • 54
  • 1
  • 9
1
vote
5 answers

Khan Academy Algorithms Challenge: Binary Search

The following is a simple binary search code written in JS. This code is returning -1 whereas it should return 20. Things I have done after looking around a bit: Replaced "while(min < max)" to "while(min <= max)" would pop up an error on…
desicoder
  • 11
  • 5
1
vote
3 answers

How do i change this code to only print the total number of guesses when it has found the target

I am trying to finish a quiz on Khan Academy. It asks me to only print the total number of guesses when it has found the target. The link to the quiz: link /* Returns either the index of the location in the array, or -1 if the array did not…
1
vote
1 answer

Scrapy xpath aria-select=false

I am trying to get the transcription info from some Khan Academy videos using scrapy. For example: https://www.khanacademy.org/math/algebra-basics/basic-alg-foundations/alg-basics-negative-numbers/v/opposite-of-a-number When I Tried to select the…
abarbosa
  • 41
  • 4
1
vote
1 answer

How can I get the JSON of an article from the API when I just know the node_slug?

I have a list of node_slug values of Khan Academy articles like: a/square-roots-of-perfect-squares-art a/number-of-solutions-to-a-system-of-equations a/distance-formula Unfortunately, as far as I know, there is no way from this piece of data to…
Aubrey
  • 507
  • 4
  • 20
1
vote
1 answer

Is there any way to get to the videos imbedded in some of the articles via the API?

Lately some of the articles have imbedded videos, but they are not listed in the JSON responses when querying the API; not even in a "related videos" type of attribute. Only the normal videos are available via the API.
Jannie Gerber
  • 659
  • 1
  • 7
  • 15
1
vote
1 answer

Image file to Khan Academy code

So this is my code that is supposed to turn an image in to pixel art for Khan Academy:


1
vote
1 answer

How do I access data for all of my students?

I'm making an app that authenticates a coach with KA's API, in order to present statistics and reports on the progress of each student. How do I see "For whom am I a coach" (inverse of /api/v1/user.coaches)? or otherwise request user and progress…
Jordan Warbelow-Feldstein
  • 10,510
  • 12
  • 48
  • 79
1
vote
1 answer

How can all angles in my Processing.js program be in degrees and not radians?

I am programming a game with Javascript and ProcessingJs. On Khan Academy (where I am coding it), on a PJS program, the default angleMode (variable) is "degrees". However, when I define this mode on a webpage, the angles are still in radians... does…
FlipFloop
  • 1,233
  • 1
  • 14
  • 25
1
vote
2 answers

How can I get all the exercises for a topic (e.g., math) and all its subtopics from the khanacademy api?

Khan Academy's API Explorer has an exercises section that mentions filtering by tags, but the url with math tag applied returns nothing. The generic exercise objects don't contain the topic they're in. My guess is that there's an id to join on…
Adam
  • 2,873
  • 3
  • 18
  • 17