# Udemy API

> Udemy returns course search results, prices, ratings, and details as a workflow and API.

Udemy searches courses by a required topic or skill and returns titles, levels, ratings, instructors, and course details. Search courses can filter by level or free courses, set a result limit, and sort results; prices are for US visitors and may change.

- Page: https://fous.com/tools/udemy
- Handle: `@udemy`
- Category: [Education](https://fous.com/tools/category/education)
- Source website: https://udemy.com
- Last verified: Sep 29, 2026

## Methods

### Search courses

Operation `search_courses`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Find Udemy courses on a topic with public US visitor prices, ratings and course details. Prices may change and original prices are absent when no discount is shown.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `sort` | string | no | `"most_reviewed"` | Order of search results, for example most_reviewed. |
| `level` | string | no | `"beginner"` | Course level to show, for example beginner; all includes every level. |
| `topic` | string | yes | `"Excel"` | Topic or skill to search, for example Excel. |
| `free_only` | boolean | no | `true` | Show only free courses, for example true. |
| `max_results` | integer | no | `26` | Maximum courses to return, for example 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "topic"
  ],
  "properties": {
    "sort": {
      "enum": [
        "most_relevant",
        "most_reviewed",
        "highest_rated",
        "newest"
      ],
      "type": "string",
      "default": "most_relevant",
      "description": "Order of search results, for example most_reviewed.",
      "examples": [
        "most_reviewed",
        "highest_rated",
        "newest"
      ]
    },
    "level": {
      "enum": [
        "all",
        "beginner",
        "intermediate",
        "expert"
      ],
      "type": "string",
      "default": "all",
      "description": "Course level to show, for example beginner; all includes every level.",
      "examples": [
        "beginner"
      ]
    },
    "topic": {
      "type": "string",
      "minLength": 1,
      "description": "Topic or skill to search, for example Excel.",
      "examples": [
        "Excel",
        "Python",
        "zzqvnotarealtopic987654321"
      ]
    },
    "free_only": {
      "type": "boolean",
      "default": false,
      "description": "Show only free courses, for example true.",
      "examples": [
        true
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 60,
      "minimum": 1,
      "description": "Maximum courses to return, for example 20.",
      "x-fous-developer": true,
      "examples": [
        26,
        5,
        2
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "topic": "Excel"
    },
    {
      "sort": "most_reviewed",
      "level": "beginner",
      "topic": "Python",
      "max_results": 26
    },
    {
      "sort": "highest_rated",
      "topic": "Excel",
      "free_only": true,
      "max_results": 5
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `courses` | array |  |  |
| `courses[].level` | string or null | `"All Levels"` |  |
| `courses[].title` | string | `"Microsoft Excel - Excel from Beginner to Advanced 2026"` |  |
| `courses[].rating` | number or null | `4.7` |  |
| `courses[].headline` | string or null | `"All-in-One Excel Training: Transform Your Skills with Hands-On Projects and Real-World Applications! - 2026"` |  |
| `courses[].bestseller` | boolean | `true` |  |
| `courses[].image_link` | string or null | `"https://img-c.udemycdn.com/course/240x135/793796_0e89_5.jpg"` |  |
| `courses[].course_link` | string | `"https://www.udemy.com/course/microsoft-excel-2013-from-beginner-to-advanced-and-beyond"` |  |
| `courses[].instructors` | array |  |  |
| `courses[].last_updated` | string or null | `"9/2026"` | Month and year as shown on the course page, for example 9/2026. |
| `courses[].current_price` | any |  |  |
| `courses[].original_price` | any |  |  |
| `courses[].number_of_ratings` | integer | `544838` |  |
| `courses[].total_video_hours` | number or null | `23` |  |
| `courses[].number_of_lectures` | integer or null | `357` |  |

**Example input**

```json
{
  "topic": "Excel"
}
```

**Example output**

```json
{
  "courses": [
    {
      "level": "All Levels",
      "title": "Microsoft Excel - Excel from Beginner to Advanced 2026",
      "rating": 4.7,
      "headline": "All-in-One Excel Training: Transform Your Skills with Hands-On Projects and Real-World Applications! - 2026",
      "bestseller": true,
      "image_link": "https://img-c.udemycdn.com/course/240x135/793796_0e89_5.jpg",
      "course_link": "https://www.udemy.com/course/microsoft-excel-2013-from-beginner-to-advanced-and-beyond",
      "instructors": [
        "Kyle Pew • 2,000,000+ Students",
        "Office Newb"
      ],
      "last_updated": "9/2026",
      "current_price": {
        "amount": 18.99,
        "currency_code": "USD"
      },
      "original_price": {
        "amount": 139.99,
        "currency_code": "USD"
      },
      "number_of_ratings": 544838,
      "total_video_hours": 23,
      "number_of_lectures": 357
    },
    {
      "level": "All Levels",
      "title": "Microsoft Excel: Beginner to Advanced in 2026!",
      "rating": 4.7,
      "headline": "Master Excel FAST in 2026! All Essential Functions + PivotTables, PowerQuery, and Advanced Tools for Modern Analytics!",
      "bestseller": true,
      "image_link": "https://img-c.udemycdn.com/course/240x135/6991489_6928_6.jpg",
      "course_link": "https://www.udemy.com/course/excel_with_kyle",
      "instructors": [
        "Kyle Mulka"
      ],
      "last_updated": "9/2026",
      "current_price": {
        "amount": 10.99,
        "currency_code": "USD"
      },
      "original_price": {
        "amount": 19.99,
        "currency_code": "USD"
      },
      "number_of_ratings": 625,
      "total_video_hours": 8.5,
      "number_of_lectures": 163
    }
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@udemy",
  "visibility": "public",
  "operation": "search_courses",
  "version": 1,
  "input": {
    "topic": "Excel"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@udemy\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_courses\",\n  \"version\": 1,\n  \"input\": {\n    \"topic\": \"Excel\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@udemy",
  "visibility": "public",
  "operation": "search_courses",
  "version": 1,
  "input": {
    "topic": "Excel"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/udemy`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `search_courses`: Search courses. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-udemy https://api.fous.com/mcp/tools/udemy --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare course ratings and prices by topic
- Find free courses for a training plan
- Review course levels and instructors
- Estimate learning time from video hours and lectures

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Udemy tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Udemy account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from udemy.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What courses are available for a topic?

Search courses returns courses matching a required topic or skill, with titles, levels, and details.

### Which courses are free?

Search courses can show only free courses when the free only option is true.

### How are courses rated and priced?

Search courses returns ratings and current prices for US visitors; prices may change.

## Related

- [Coursera API](https://fous.com/tools/coursera.md): Coursera offers courses, certificates, projects, and degrees; search results follow Coursera’s order, and publicly displayed prices and availability may vary by location.
- [Class Central API](https://fous.com/tools/class-central.md): Find online courses across learning platforms.
- [MIT OpenCourseWare API](https://fous.com/tools/mit-opencourseware.md): Free MIT course materials open to everyone.
- [Etsy API](https://fous.com/tools/etsy.md): Etsy provides current listings and prices, shop ratings and shipping, plus public item and shop details; some review counts or listings may be unavailable.
- [Ulta Beauty API](https://fous.com/tools/ulta-beauty.md): Ulta Beauty returns searchable beauty products and product details, including current pricing and availability that may change.
- [Amazon API](https://fous.com/tools/amazon.md): Amazon returns publicly shown product listings, prices, details, ratings, reviews, current best sellers, and Today's Deals; availability and content vary by store, location, and access.
- [Sephora API](https://fous.com/tools/sephora.md): Sephora provides US beauty products, shopping information, product details, and customer reviews; prices and availability may change.
- [College Scorecard API](https://fous.com/tools/college-scorecard.md): College Scorecard returns US college costs and outcomes, including admissions, graduation, debt, and earnings; some figures may be missing, and comparisons cover 2–5 colleges.
- [All Education tools](https://fous.com/tools/category/education)
