Coursera API: Search courses
Finds Coursera courses, specializations, professional certificates, degrees and guided projects on a topic, in Coursera's search order.
Unofficial. Not affiliated with or endorsed by Coursera.
Inputs
Values from the run on Oct 23, 2026, shown under Output.
- Level optional
level Difficulty level, for example beginner; any includes all levels.
any (default)
One of
any,beginner,intermediate,advanced.- Topic, required
topic Topic or skill to search, for example data analysis.
data analysis
- Free Only optional
free_only Keep only items Coursera labels Free, for example true.
false (default)
True or false.
- Max Results optional
max_results Maximum number of results, for example 20 (up to 100).
20 (default)
Whole number from 1 to 100.
Input as JSON
{ "topic": "data analysis"}Output
{ "courses": [ { "type": "course", "level": "Beginner", "title": "Introduction to Data Analytics", "rating": 4.7, "duration": "1 - 3 Months", "image_url": "https://s3.amazonaws.com/coursera-course-photos/77/330fd160df42a79e6286fdc7b6b60f/Course-1--Introduction-to-Data-Analysis_1200x600.jpg" , "course_url": "https://www.coursera.org/learn/introduction-to-data-analytics" , "offered_by": "IBM", "number_of_reviews": 20887, "skills_youll_gain": [ "Data Storytelling", "Data Mining", "Extract, Transform, Load" ] }, { "type": "specialization", "level": "Beginner", "title": "Microsoft Data Analysis with SQL, Excel & Power BI", "rating": 4.6, "duration": "3 - 6 Months", "image_url": "https://d15cw65ipctsrr.cloudfront.net/8c/625f6802494c73be844b9e745d4d4d/Microsoft-Data-Analysis-with-SQL-Excel-Power-BI.png" , "course_url": "https://www.coursera.org/specializations/microsoft-data-analysis-sql-excel-powerbi" , "offered_by": "Microsoft", "number_of_reviews": 1529, "skills_youll_gain": [ "Data Visualization", "Data Storytelling", "Power BI" ] }, { "type": "course", "level": "Beginner", "title": "Excel Basics for Data Analysis", "rating": 4.7, "duration": "1 - 3 Months", "image_url": "https://s3.amazonaws.com/coursera-course-photos/d3/1b8035aa844596a652515a08db8a42/IBM-DA-Course-2_New-Option-3.jpg" , "course_url": "https://www.coursera.org/learn/excel-basics-data-analysis-ibm" , "offered_by": "IBM", "number_of_reviews": 11048, "skills_youll_gain": [ "Excel Formulas", "Data Analysis", "Pivot Tables And Charts" ] } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"coursera.org/search_courses","input":{"topic":"data analysis"}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "coursera.org/search_courses" , "input": { "topic": "data analysis" }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "coursera.org/search_courses" , "input": { "topic": "data analysis" } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run coursera.org/search_courses# with {"topic":"data analysis"}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "topic" ], "properties": { "level": { "enum": [ "any", "beginner", "intermediate", "advanced" ], "type": "string", "default": "any", "description": "Difficulty level, for example beginner; any includes all levels." }, "topic": { "type": "string", "minLength": 1, "description": "Topic or skill to search, for example data analysis." }, "free_only": { "type": "boolean", "default": false, "description": "Keep only items Coursera labels Free, for example true." }, "max_results": { "type": "integer", "default": 20, "maximum": 100, "minimum": 1, "description": "Maximum number of results, for example 20 (up to 100)." } }}Output schema
{ "type": "object", "required": [ "courses" ], "properties": { "courses": { "type": "array", "items": { "type": "object", "required": [ "title", "offered_by", "type", "level", "rating", "number_of_reviews", "duration", "skills_youll_gain", "image_url", "course_url" ], "properties": { "type": { "enum": [ "course", "specialization", "professional certificate", "degree", "guided project" ], "type": "string" }, "level": { "type": [ "string", "null" ] }, "title": { "type": "string" }, "rating": { "type": [ "number", "null" ] }, "duration": { "type": [ "string", "null" ] }, "image_url": { "type": [ "string", "null" ] }, "course_url": { "type": "string" }, "offered_by": { "type": [ "string", "null" ] }, "number_of_reviews": { "type": [ "integer", "null" ] }, "skills_youll_gain": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false } } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
coursera.org/search_courses- Returns
- title, partner, type, level, rating, reviews, duration, skills, image, URL
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method coursera.org/search_courses with the inputs above.
Ask your agent
- Find beginner-friendly Coursera courses on data analysis, free only, top 10 results
- I need advanced machine learning specializations on Coursera, show me up to 25
- What professional certificates does Coursera have for project management at an intermediate level?
- List free guided projects about Python programming from any level, maximum 15 results
- Search for cloud computing courses and degrees for intermediate learners, returning 30 options with ratings and durations
See more
All Coursera methodsLooks up a Coursera course, specialization or professional certificate by name or link and returns its providers, instructors, rating, enrollment, modules, skills, languages and publicly shown price.
coursera.org/get_courseSearches Udemy courses on a topic and returns US visitor prices in USD, ratings, lecture counts and course details.
udemy.com/search_coursesFinds free MIT OpenCourseWare courses matching a topic, in relevance order, optionally limited to a course level or courses with lecture videos.
ocw.mit.edu/search_coursesFinds public Kaggle datasets on a topic, with size, file formats, usability, popularity and license. Lists at most 100 results in Kaggle's order; files are not downloaded.
kaggle.com/search_datasetsFinds upcoming public Meetup events by topic and city, sorted by start time. Only events that mention the topic are included; external costs and undisclosed venues may not be shown.
meetup.com/search_eventsSearch Chewy products by words, pet type, and sort order. Returns up to 72 products in Chewy's order, including listed and first-order Autoship prices when shown.
chewy.com/search_productsFinds Klook activities, tickets, tours and passes in a city, with ratings, booking counts, prices and booking policies. Keyword matches are ranked by Klook and may include related activities.
klook.com/search_activitiesFinds business software in the closest Capterra category for a software category or business need, in Capterra's default listing order. Starting prices are included when published in the listing; missing details are null.
capterra.com/search_software