Seems Like Coursera API or Authentication problem
Author: AhmadSalahShaheenCreated Sep 11, 2024Updated Jan 18, 2026
### Subject of the issue
Seems Like Coursera API or Authentication problem
I can't download the course content using either:
coursera-dl -u 'email' -p 'password' what-is-datascience
or
coursera-dl -ca 'cauth value' what-is-datascience
---------------------------------------------------------------------------------------------------------------
### Your environment
* Operating System (name/version): Windows 11 Pro, version: 23H2, OS build: 22631.4037
* Python version: 3.12.4
* coursera-dl version: 0.11.5
---------------------------------------------------------------------------------------------------------------
### Steps to reproduce
Tell us how to reproduce this issue, please don't forget to include
enough information so that you can help us help you:
I press win+r to open the terminal and then type either coursera-dl -u 'email' -p 'password' what-is-datascience
or
coursera-dl -ca 'cauth value' what-is-datascience
and none of them work
---------------------------------------------------------------------------------------------------------------
* Is the problem happening with the latest version of the script?
I don't get the question
---------------------------------------------------------------------------------------------------------------
* Do you have all the recommended versions of the modules? See them in the
file `requirements.txt`.
yes, I'm positive.
---------------------------------------------------------------------------------------------------------------
* What is the course that you are trying to access?
what is data science in the specialization "IBM data science"
https://www.coursera.org/learn/what-is-datascience?specialization=ibm-data-science
---------------------------------------------------------------------------------------------------------------
* What is the precise command line that you are using
coursera-dl -u 'email' -p 'password' what-is-datascience
or
coursera-dl -ca 'cauth value' what-is-datascience
---------------------------------------------------------------------------------------------------------------
* What are the precise messages that you get?
when I use "coursera-dl -u 'email' -p 'password' what-is-datascience"
I get:

C:\Users\DELL2020>coursera-dl -u 'email' -p 'password' what-is-datascience
coursera_dl version 0.11.5
Traceback (most recent call last):
File "C:\Users\DELL2020\AppData\Local\Programs\Python\Python312\Lib\site-packages\coursera\cookies.py", line 148, in login
r.raise_for_status()
File "C:\Users\DELL2020\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\DELL2020\AppData\Local\Programs\Python\Python312\Scripts\coursera-dl.exe\__main__.py", line 7, in
File "C:\Users\DELL2020\AppData\Local\Programs\Python\Python312\Lib\site-packages\coursera\coursera_dl.py", line 239, in main
login(session, args.username, args.password)
File "C:\Users\DELL2020\AppData\Local\Programs\Python\Python312\Lib\site-packages\coursera\cookies.py", line 155, in login
raise AuthenticationFailed('Cannot login on coursera.org: %s' % e)
coursera.cookies.AuthenticationFailed: Cannot login on coursera.org: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3
////////////////////
and when I use "coursera-dl -ca 'cauth value' what-is-datascience"
I get:

C:\Users\DELL2020>coursera-dl -ca 'cauth value' what-is-datascience
coursera_dl version 0.11.5
Downloading class: what-is-datascienece (1 / 1)
Parsing syllabus of on-demand course (id=r0GnHOZaEees-Q6jQMxlrg). This may take some time, please be patient ...
Error 404 Client Error: Not Found for url: https://api.coursera.org/api/onDemandCourseMaterials.v1/?q=slug&slug=what-is-datascience&includes=moduleIds%2ClessonIds%2CpassableItemGroups%2CpassableItemGroupChoices%2CpassableLessonElements%2CitemIds%2Ctracks&fields=moduleIds%2ConDemandCourseMaterialModules.v1(name%2Cslug%2Cdescription%2CtimeCommitment%2ClessonIds%2Coptional)%2ConDemandCourseMaterialLessons.v1(name%2Cslug%2CtimeCommitment%2CelementIds%2Coptional%2CtrackId)%2ConDemandCourseMaterialPassableItemGroups.v1(requiredPassedCount%2CpassableItemGroupChoiceIds%2CtrackId)%2ConDemandCourseMaterialPassableItemGroupChoices.v1(name%2Cdescription%2CitemIds)%2ConDemandCourseMaterialPassableLessonElements.v1(gradingWeight)%2ConDemandCourseMaterialItems.v1(name%2Cslug%2CtimeCommitment%2Ccontent%2CisLocked%2ClockableByItem%2CitemLockedReasonCode%2CtrackId)%2ConDemandCourseMaterialTracks.v1(passablesCount)&showLockedItems=true getting page https://api.coursera.org/api/onDemandCourseMaterials.v1/?q=slug&slug=what-is-datascience&includes=moduleIds%2ClessonIds%2CpassableItemGroups%2CpassableItemGroupChoices%2CpassableLessonElements%2CitemIds%2Ctracks&fields=moduleIds%2ConDemandCourseMaterialModules.v1(name%2Cslug%2Cdescription%2CtimeCommitment%2ClessonIds%2Coptional)%2ConDemandCourseMaterialLessons.v1(name%2Cslug%2CtimeCommitment%2CelementIds%2Coptional%2CtrackId)%2ConDemandCourseMaterialPassableItemGroups.v1(requiredPassedCount%2CpassableItemGroupChoiceIds%2CtrackId)%2ConDemandCourseMaterialPassableItemGroupChoices.v1(name%2Cdescription%2CitemIds)%2ConDemandCourseMaterialPassableLessonElements.v1(gradingWeight)%2ConDemandCourseMaterialItems.v1(name%2Cslug%2CtimeCommitment%2Ccontent%2CisLocked%2ClockableByItem%2CitemLockedReasonCode%2CtrackId)%2ConDemandCourseMaterialTracks.v1(passablesCount)&showLockedItems=true
The server replied:
Coursera - API Route Does Not Exist
HTTPError 404 Client Error: Not Found for url: https://api.coursera.org/api/onDemandCourseMaterials.v1/?q=slug&slug=what-is-datascience&includes=moduleIds%2ClessonIds%2CpassableItemGroups%2CpassableItemGroupChoices%2CpassableLessonElements%2CitemIds%2Ctracks&fields=moduleIds%2ConDemandCourseMaterialModules.v1(name%2Cslug%2Cdescription%2CtimeCommitment%2ClessonIds%2Coptional)%2ConDemandCourseMaterialLessons.v1(name%2Cslug%2CtimeCommitment%2CelementIds%2Coptional%2CtrackId)%2ConDemandCourseMaterialPassableItemGroups.v1(requiredPassedCount%2CpassableItemGroupChoiceIds%2CtrackId)%2ConDemandCourseMaterialPassableItemGroupChoices.v1(name%2Cdescription%2CitemIds)%2ConDemandCourseMaterialPassableLessonElements.v1(gradingWeight)%2ConDemandCourseMaterialItems.v1(name%2Cslug%2CtimeCommitment%2Ccontent%2CisLocked%2ClockableByItem%2CitemLockedReasonCode%2CtrackId)%2ConDemandCourseMaterialTracks.v1(passablesCount)&showLockedItems=true
---------------------------------------------------------------------------------------------------------------
### Expected behaviour
I guess it should download the course content although I do not know the path to the download folder.
---------------------------------------------------------------------------------------------------------------
### Actual behaviour
It gives an error.
API Route Does Not Exist
Edge does not know about this API route.
Check whether this route is exposed in the routing table.
Check whether this route is exposed in the routing table.
Source: coursera-dl/coursera-dl