APIs / Apps and media / Coursera
1 credit per call2 endpoints14 datapointsChecked working 6 Dec 2026
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.
{
"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
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | idstring | titlestring | headlinestring | partnersstring[] | ratingnumber | rating_countinteger | levelstring | durationstring | is_freeboolean | priceinteger | sale_priceinteger | imageurl | urlstring | skillsstring[] |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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] |
[
{
"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"
]
}
]id,title,headline,partners,rating,rating_count,level,duration,is_free,price,sale_price,image,url,skills course~wkES2k6WEe-SdxJ_Axw1wQ,Fundamentals of Machine Learning and Artificial Intelligence,Offered by Amazon Web Services,"[""Amazon Web Services""]",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,"[""Artificial Intelligence and Machine Learning (AI/ML)"",""Generative AI"",""Deep Learning""]" course~-XDgQSfIEe2GwRLfSI7mvQ,The Nuts and Bolts of Machine Learning,Offered by Google,"[""Google""]",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,"[""Feature Engineering"",""Decision Tree Learning"",""Applied Machine Learning""]" course~8BJHzZD_EeiKohJBs5wRGA,Introduction to Machine Learning,Offered by Duke University,"[""Duke University""]",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,"[""PyTorch (Machine Learning Library)"",""Logistic Regression"",""Machine Learning Methods""]"
Recorded from our API · 3 items shown · 14 datapoints per itemGET /v1/coursera/search?query=machine+learning
14 datapoints
Identity
- idstring
- titlestring
Contact
- urlstring
Reputation
- ratingnumber
- rating_countinteger
- imageurl
Price
- priceinteger
- sale_priceinteger
Other
- headlinestring
- partnersstring[]
- levelstring
- durationstring
- is_freeboolean
- skillsstring[]
Playground
Run this API
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 | id+1 optional | titledescriptionpartnerslanguagesreview_summaryskills+8 more | 1 credit |
GET/v1/coursera/search | query+7 optional | idtitleheadlinepartnersratingrating_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:
searchtakes aquery, withcategory,level(Beginner, Intermediate, Mixed or Advanced),language,price(free or paid),free,pageandlimit. - Courses:
coursetakes anid, 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.
More apps and media APIs
Use cases
Find beginner courses on a topic in one language
Use the Coursera API to find beginner courses on a topic in one languageList 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 partnersPull a course's full curriculum, module by module
Use the Coursera API to pull a course's full curriculum, module by moduleFAQ
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.