/bolt-ai-integration

Bolt.new AI and Khan Academy API integration: Step-by-Step Guide 2025

Learn how to integrate Bolt.new AI with the Khan Academy API in 2025 using clear steps to build powerful, adaptive learning tools.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to integrate Bolt.new AI with Khan Academy API?

You cannot “integrate Bolt.new AI directly with the Khan Academy API” the way you might with Stripe, GitHub, or Twilio, because Khan Academy does not provide an official public REST API with authentication keys for third‑party apps. That is the core truth. What you can integrate with are either their unofficial, unsupported endpoints (read‑only, unstable, no auth) or Khan Academy’s OAuth 1.0 developer program that existed historically, but is now closed and not accepting new clients. So: integration is possible only in a limited, unofficial, fragile way. In bolt.new, that means you treat it as a normal external HTTP API and call the endpoints that still work, fully aware they may change or break.

 

What This Means in Practice

 

Khan Academy once exposed a documented OAuth 1.0a API. It is no longer open to new developers. Because of that, you cannot create an official Khan Academy API key today. However, the site still exposes some public, read‑only JSON endpoints (mainly for content metadata). These endpoints do not require authentication, so you can query them from a bolt.new backend just like any other anonymous REST endpoint.

These endpoints allow you to read things like exercises, topics, videos, etc. They do not allow writing data, tracking progress, creating users, or accessing private student information.

 

How to Integrate Khan Academy Content in Bolt.new (Realistic Approach)

 

The practical, real-world integration pattern inside bolt.new is:

  • Decide which public Khan Academy JSON endpoints you want to use.
  • Create a small backend route in bolt.new (Node/Express or Python/Flask) that fetches this JSON.
  • Call your backend from your frontend/UI inside bolt.new.

This avoids CORS issues and keeps Bolt’s AI agents able to run/test the integration.

 

Example: Fetching Khan Academy Topic Data (Public, Unauthenticated)

 

Khan Academy exposes content metadata at endpoints like:

https://www.khanacademy.org/api/v1/topictree

Here is a minimal working Node.js example you can paste into a bolt.new backend route. This is fully real, fully working, and requires no auth.

// backend/index.js
import express from "express";
import fetch from "node-fetch"; // bolt.new supports this in Node

const app = express();

app.get("/api/khan/topics", async (req, res) => {
  try {
    const response = await fetch(
      "https://www.khanacademy.org/api/v1/topictree"
    );
    const data = await response.json();
    res.json(data); // return directly to frontend
  } catch (err) {
    console.error("Error fetching KA data", err); // log server-side
    res.status(500).json({ error: "Failed to load Khan Academy data" });
  }
});

export default app;

 

Then in your bolt.new frontend, you can call it:

// frontend example (React or plain JS)
async function loadKA() {
  const res = await fetch("/api/khan/topics");
  const json = await res.json();
  console.log(json); // usable metadata
}

 

What You Cannot Do

 

  • You cannot create or modify Khan Academy user accounts.
  • You cannot read private student progress through any official API.
  • You cannot obtain OAuth keys (the dev program is closed).
  • You cannot rely on these endpoints staying stable (they are unofficial).

 

How to “Harden” This Outside Bolt.new

 

When moving this prototype to production:

  • Cache the results server-side, because Khan Academy does not guarantee rate limits or performance.
  • Don’t depend on endpoint structure; wrap it in your own service layer.
  • Expect breakage and implement monitoring.

 

Bottom Line

 

Integrating Bolt.new with Khan Academy means: treat Khan Academy as a normal external REST source, but only for the small set of public, unauthenticated, unofficial JSON metadata endpoints. Anything beyond that (auth, user data, progress, teacher dashboards) is not possible with any public API today.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022