---
title: "Coursera API: course search as JSON | Perceptlayer"
description: "Coursera API for course search by level, language and price, and course details with skills, rating, price and curriculum as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/coursera
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / Coursera

1 credit per call 2 endpoints 14 datapoints 

# Coursera API

Coursera API for course search by level, language and price, and course details with skills, rating, price and curriculum as JSON. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Coursera

GET /v1/coursera/search?query=machine+learning 

```
{
  "success": true,
  "data": {
    "items": [
      {
        "id": "course~wkES2k6WEe-SdxJ_Axw1wQ",
        "title": "Fundamentals of Machine Learning and Artificial Intelligence",
        "headline": "Offered by Amazon Web Services",
        "partners": [
          "Amazon Web Services"
        ],
        "rating": 4.58,
        "rating_count": 4132,
        "level": "MIXED",
        "duration": "ONE_TO_FOUR_WEEKS",
        "is_free": true,
        "price": 0,
        "sale_price": 0,
        "image": "https://s3.amazonaws.com/coursera-course-photos/4d/ac9d9922f6470ea562f60d609167d4/BC-5768_VisMerch-Phase-3-Assets_Amazon_FundamentalsofMachineLearning.png",
        "url": "/learn/fundamentals-of-machine-learning-and-artificial-intelligence",
        "skills": [
          "Artificial Intelligence and Machine Learning (AI/ML)",
          "Generative AI",
          "Deep Learning"
        ]
      },
      {
        "id": "course~-XDgQSfIEe2GwRLfSI7mvQ",
        "title": "The Nuts and Bolts of Machine Learning",
        "headline": "Offered by Google",
        "partners": [
          "Google"
        ],
        "rating": 4.81,
        "rating_count": 652,
        "level": "ADVANCED",
        "duration": "ONE_TO_THREE_MONTHS",
        "is_free": false,
        "price": 49,
        "sale_price": 49,
        "currency": "USD",
        "image": "https://s3.amazonaws.com/coursera-course-photos/68/047951cfef4e138d5e2642e863433b/GCC-Coursera-thumbnail-ADA-nuts-and-bolts-susheela.png",
        "url": "/learn/the-nuts-and-bolts-of-machine-learning",
        "skills": [
          "Feature Engineering",
          "Decision Tree Learning",
          "Applied Machine Learning"
        ]
      },
      {
        "id": "course~8BJHzZD_EeiKohJBs5wRGA",
        "title": "Introduction to Machine Learning",
        "headline": "Offered by Duke University",
        "partners": [
          "Duke University"
        ],
        "rating": 4.67,
        "rating_count": 3843,
        "level": "INTERMEDIATE",
        "duration": "ONE_TO_THREE_MONTHS",
        "is_free": false,
        "price": 49,
        "sale_price": 49,
        "currency": "USD",
        "image": "https://s3.amazonaws.com/coursera-course-photos/8f/7afa60cbe911e8a233973e775a70ad/machine-learning-3.png",
        "url": "/learn/machine-learning-duke",
        "skills": [
          "PyTorch (Machine Learning Library)",
          "Logistic Regression",
          "Machine Learning Methods"
        ]
      }
    ],
    "pagination": {
      "page": 1,
      "cursor": "2",
      "total": 10000,
      "total_pages": 834
    }
  },
  "meta": {
    "excluded_product_types": {
      "GUIDED_PROJECT": "Guided projects have no resolvable course detail or reviews route.",
      "SPECIALIZATION": "s12n~ ids are not accepted by the course and reviews routes.",
      "PROFESSIONAL_CERTIFICATE": "Certificate ids are not accepted by the course and reviews routes.",
      "DEGREE": "Degree ids are not accepted by the course and reviews routes."
    },
    "pagination_is": "cursor; page N is fetched with cursor \"N\" and never reuses page 1",
    "unavailable_fields": {
      "enrollment": "The public search hit has no enrollment count; the /learn page is the only source and is not fetched per result.",
      "instructors": "Search hits carry partners only; instructor names require an instructors.v1 join and are exposed on the course route."
    },
    "endpoint_family": "search",
    "upstream_requests": 1,
    "duration_ms": 849,
    "request_id": "req_3385ada321504e17b27f16913134aed3",
    "credits_charged": 1,
    "credits_remaining": 4940
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `search`: the fields and shapes you will get, shortened to 3 items.

| # | id string | title string | headline string | partners string\[\] | rating number | rating\_count integer | level string | duration string | is\_free boolean | price integer | sale\_price integer | image url | url string | skills string\[\] |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | course~wkES2k6WEe-SdxJ\_Axw1wQ | Fundamentals of Machine Learning and Artificial Intelligence | Offered by Amazon Web Services | \[1 item\] | 4.58 | 4132 | MIXED | ONE\_TO\_FOUR\_WEEKS | true | 0 | 0 | https://s3.amazonaws.com/coursera-course-photos/4d/ac9d9922f6470ea562f60d609167d4/BC-5768\_VisMerch-Phase-3-Assets\_Amazon\_FundamentalsofMachineLearning.png | /learn/fundamentals-of-machine-learning-and-artificial-intelligence | \[3 items\] |
| 2 | course~-XDgQSfIEe2GwRLfSI7mvQ | The Nuts and Bolts of Machine Learning | Offered by Google | \[1 item\] | 4.81 | 652 | ADVANCED | ONE\_TO\_THREE\_MONTHS | false | 49 | 49 | https://s3.amazonaws.com/coursera-course-photos/68/047951cfef4e138d5e2642e863433b/GCC-Coursera-thumbnail-ADA-nuts-and-bolts-susheela.png | /learn/the-nuts-and-bolts-of-machine-learning | \[3 items\] |
| 3 | course~8BJHzZD\_EeiKohJBs5wRGA | Introduction to Machine Learning | Offered by Duke University | \[1 item\] | 4.67 | 3843 | INTERMEDIATE | ONE\_TO\_THREE\_MONTHS | false | 49 | 49 | https://s3.amazonaws.com/coursera-course-photos/8f/7afa60cbe911e8a233973e775a70ad/machine-learning-3.png | /learn/machine-learning-duke | \[3 items\] |

Recorded from our API · 3 items shown · 14 datapoints per item GET /v1/coursera/search?query=machine+learning

14 datapoints

### Identity

-   id string
-   title string

### Contact

-   url string

### Reputation

-   rating number
-   rating\_count integer
-   image url

### Price

-   price integer
-   sale\_price integer

### Other

-   headline string
-   partners string\[\]
-   level string
-   duration string
-   is\_free boolean
-   skills string\[\]

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/coursera/search?query=machine+learning" \
  -H "X-API-Key: $API_KEY"
```

Coursera · 2 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/coursera/course`](https://perceptlayer.com/apis/coursera/course) | `id` +1 optional | `title` `description` `partners` `languages` `review_summary` `skills` +8 more | 1 credit |
| [GET `/v1/coursera/search`](https://perceptlayer.com/apis/coursera/search) | `query` +7 optional | `id` `title` `headline` `partners` `rating` `rating_count` +9 more | 1 credit |

Overview

## About the Coursera API

## What you can get

The Coursera API returns Coursera course data as JSON through 2 endpoints.

-   **Search:** `search` takes a `query`, with `category`, `level` (Beginner, Intermediate, Mixed or Advanced), `language`, `price` (free or paid), `free`, `page` and `limit`.
-   **Courses:** `course` takes an `id`, the course slug.

The recorded search for "machine learning" returns `items`, each with `id`, `title`, `headline`, `partners`, `rating`, `rating_count`, `level`, `duration`, `is_free`, `price`, `sale_price`, `currency`, `image`, `url` and `skills`, and `pagination` with a `total` of 10,000 across 834 pages. The first result was IBM's Machine Learning with Python, rated 4.67 from 18,514 ratings. Search returns courses only: guided projects, specializations, professional certificates and degrees are left out.

## How a call works

Search, then look up: `GET /v1/coursera/search?query=machine%20learning` with your key in the `X-API-Key` header returns each course's `url`, such as `/learn/machine-learning-with-python`. The last part is the `id` for `course`: `GET /v1/coursera/course?id=machine-learning-with-python`. That returns `title`, `description`, `partners`, `languages`, `review_summary`, `skills`, `is_free`, `price`, `sale_price`, `currency` and the `curriculum`, as modules with their lessons and items. Page a search with `page`. Every successful call costs 1 credit; failed calls cost nothing.

Apps and media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [ClinicalTrials.gov](https://perceptlayer.com/apis/clinicaltrials) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Discogs](https://perceptlayer.com/apis/discogs) [Docker Hub](https://perceptlayer.com/apis/docker-hub)

Use cases

### Find beginner courses on a topic in one language

`Use the Coursera API to find beginner courses on a topic in one language` 

### List free courses for a subject with \`price=free\`

`` Use the Coursera API to list free courses for a subject with `price=free` `` 

### Compare course ratings and rating counts across partners

`Use the Coursera API to compare course ratings and rating counts across partners` 

### Pull a course's full curriculum, module by module

`Use the Coursera API to pull a course's full curriculum, module by module` 

FAQ

## Questions

**How much does the Coursera API cost?**

Each successful call costs one credit, whichever endpoint you call, and each search page is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**Does it return reviews, enrollments or instructors?**

No. There is no reviews endpoint, and neither endpoint returns enrollment counts or instructor names. You get the rating (and its count in search) and the partner institutions.

**Can I look up a specialization or certificate?**

No. \`course\` takes course slugs, and search leaves out specializations, professional certificates, degrees and guided projects.

**Do I need a Coursera account?**

No. You call this Coursera API with your Perceptlayer key in the \`X-API-Key\` header, with no Coursera login.

**Is this the official Coursera API?**

No. Perceptlayer is an independent service and is not affiliated with Coursera. It returns Coursera data as JSON with a Perceptlayer key, so there is no Coursera developer account, app review or partner approval to get first. It only reads data: if Coursera has an official API and you need to act on your own Coursera account, such as posting, managing orders or reading private data, use that one.

**Should I build a Coursera scraper instead?**

You can, but a Coursera scraper is code you maintain: page changes break it, requests get blocked, and Coursera's terms govern how you collect data. The Coursera API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Coursera API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
