# 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/workflows/udemy
- Handle: `@udemy`
- Category: [Education](https://fous.com/workflows/category/education)
- Source website: https://udemy.com
- Last verified: Sep 29, 2026
- Fous is not affiliated with Udemy.

## Methods

### Search courses

Operation `search_courses`, version 1. 1 credit per call.

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 | `"Intermediate"` |  |
| `courses[].title` | string | `"6 Excel VBA Practice Problems"` |  |
| `courses[].rating` | number or null | `5` |  |
| `courses[].headline` | string or null | `"Hands‑On Practice with Real‑World Excel VBA Challenges"` |  |
| `courses[].bestseller` | boolean | `false` |  |
| `courses[].image_link` | string or null | `"https://img-c.udemycdn.com/course/240x135/7148885_00aa.jpg"` |  |
| `courses[].course_link` | string | `"https://www.udemy.com/course/6-excel-vba-practice-problems"` |  |
| `courses[].instructors` | array |  |  |
| `courses[].last_updated` | string or null | `"4/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 | `3` |  |
| `courses[].total_video_hours` | number or null | `1.5` |  |
| `courses[].number_of_lectures` | integer or null | `14` |  |

**Example input**

```json
{
  "sort": "highest_rated",
  "topic": "Excel",
  "free_only": true,
  "max_results": 5
}
```

**Example output**

```json
{
  "courses": [
    {
      "level": "Intermediate",
      "title": "6 Excel VBA Practice Problems",
      "rating": 5,
      "headline": "Hands‑On Practice with Real‑World Excel VBA Challenges",
      "bestseller": false,
      "image_link": "https://img-c.udemycdn.com/course/240x135/7148885_00aa.jpg",
      "course_link": "https://www.udemy.com/course/6-excel-vba-practice-problems",
      "instructors": [
        "Mo Mehta"
      ],
      "last_updated": "4/2026",
      "current_price": {
        "amount": 0,
        "currency_code": "USD"
      },
      "original_price": null,
      "number_of_ratings": 3,
      "total_video_hours": 1.5,
      "number_of_lectures": 14
    },
    {
      "level": "All Levels",
      "title": "Advanced Excel Course - Become A Pro In One Hour!",
      "rating": 5,
      "headline": "Master Excel formulas for data analysis and business intelligence with a top Microsoft Excel instructor.",
      "bestseller": false,
      "image_link": "https://img-c.udemycdn.com/course/240x135/7322707_447a_2.jpg",
      "course_link": "https://www.udemy.com/course/advanced-excel-course-become-a-pro-in-one-hour",
      "instructors": [
        "Viraj Waghmare"
      ],
      "last_updated": "9/2026",
      "current_price": {
        "amount": 0,
        "currency_code": "USD"
      },
      "original_price": null,
      "number_of_ratings": 1,
      "total_video_hours": 1,
      "number_of_lectures": 25
    }
  ]
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_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.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

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=120) 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.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_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);
```

Or describe the data in plain language: send `{"api":"@udemy","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## 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

### Is Fous affiliated with Udemy?

No. Fous is not affiliated with Udemy. This workflow reads the public udemy.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. 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; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check 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/workflows/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/workflows/class-central.md): Find online courses across learning platforms.
- [MIT OpenCourseWare API](https://fous.com/workflows/mit-opencourseware.md): Free MIT course materials open to everyone.
- [Etsy API](https://fous.com/workflows/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/workflows/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/workflows/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/workflows/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/workflows/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 workflows](https://fous.com/workflows/category/education)
