---
title: "Coursera API: Search | Perceptlayer"
description: "Search from Coursera as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/coursera/search
---

[APIs](https://perceptlayer.com/apis) / [Coursera](https://perceptlayer.com/apis/coursera) / Search

# Coursera: Search

Search from Coursera as JSON. 1 credit per successful call.

GET `/v1/coursera/search`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `query` | string | Required | Up to 200 characters |
| `category` | string | Optional | Up to 120 characters |
| `level` | string | Optional | Beginner, Intermediate, Mixed, Advanced |
| `language` | string | Optional | Up to 20 characters |
| `price` | string | Optional | free, paid |
| `free` | boolean | Optional | Any |
| `page` | integer | Optional | Any |
| `limit` | integer | Optional | Any |

## Example request

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.

[Run this endpoint in the playground](https://perceptlayer.com/apis/coursera?try=search#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

Each item in `data.items` has these 15 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `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\[\] |
| `currency` | string |
