Skip to main content

Pydemy Logo

PyPI version Python versions Udemy API version PyPI Monthly Downloads Publish to PyPI GitHub issues License pre-commit.ci status

⚠️ Archived (January 2025)
The Udemy Affiliate API (v2.0) was discontinued on January 1, 2025.
Pydemy is no longer functional and is archived; 0.3.0 is the final release.
Kept for educational and reference purposes.


Pydemy provides a convenient way to interact with the Udemy Affiliate API from your Python applications. You can use Pydemy to search for courses, retrieve course details, fetch reviews, and potentially explore other functionalities offered by the API.

Udemy API Support

Pydemy currently supports the Udemy Affiliate API v2.0. This API allows developers to access public information about Udemy courses.

Note: The Udemy Instructor API, which provides functionalities specific to course creation and management, is not currently supported by Pydemy.

Main Features

  • Synchronous and Asynchronous API Requests: Choose between synchronous and asynchronous interactions with the Udemy API. This flexibility caters to different development needs and preferences. To enhance application performance, for example, employ asynchronous calls for non-blocking activities.
  • Search for Courses: Quickly find courses using a variety of parameters, such as price filters, categories, or keywords.
  • Get Detailed Course Information: Get in-depth information on a particular course, such as the title, curriculum, teacher, ratings, and more.
  • Get Course Reviews: By retrieving and examining reviews for a specific course, you can learn a great deal about the experiences of students.
  • Use Pydantic for Data Management and Validation: The pydemy library makes extensive use of the potent Pydantic library. It offers an organized method of working with the data and guarantees that the information obtained from the Udemy API is accurate. This facilitates robust interactions with the Udemy API and makes programming easier.

Getting Started

  1. Obtain API Credentials: Visit Udemy API Clients to create a new API client and obtain your clientID and clientSecret.

  2. Installation: Install the library using pip:

    pip install pydemy
    
  3. Usage: Import the UdemyClient class:

    from pydemy import UdemyClient
    

    Initialize the client with your API credentials:

    client_id = "YOUR_CLIENT_ID"
    client_secret = "YOUR_CLIENT_SECRET"
    
    client = UdemyClient(client_id=client_id, client_secret=client_secret)
    

Quickstart

Here is an example that demonstrates how to get started with using the UdemyClient to retrieve information about public courses.

For more in-depth examples and usage scenarios, be sure to check out the examples folder.

client = UdemyClient(client_id="YOUR_CLIENT_ID", client_secret="YOUR_CLIENT_SECRET")

# Get a list of public courses (replace '4534650' with a specific course ID for details)
courses = client.get_public_curriculum_list(course_id=4534650)

# Print course titles
for course in courses:
    print(course.title)

Contributing

We welcome contributions from the community! If you have bug fixes, improvements, or new features, feel free to submit a pull request. For detailed guidelines on contributing, please refer to the CONTRIBUTING.rst file.

Here's a brief overview:

  • Fork the repository.
  • Create a new branch for your changes.
  • Implement your changes and add unit tests if applicable.
  • Follow consistent coding style.
  • Submit a pull request with a clear description of your changes.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Metadata

Release files for pydemy 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydemy 0.3.0
File Size Uploaded Provenance Actions
pydemy-0.3.0.tar.gz 23.3 kB With provenance Details for pydemy-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pydemy 0.3.0
File Interpreter ABI Platform Actions
pydemy-0.3.0-py3-none-any.whl Python 3 none any Details for pydemy-0.3.0-py3-none-any.whl

Total release size: 43.0 kB

Release files / pydemy-0.3.0.tar.gz

Download URL pydemy-0.3.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
396427489bc66d6562f55fbcbe216187dddf6edbb939830d1e75c040ede11568
BLAKE2b-256 checksum
How to use checksums
3dbdf2eb78ab7335e230741606493bc4de26e5554b11f3df2fbf0a758143460f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Release files / pydemy-0.3.0-py3-none-any.whl

Download URL pydemy-0.3.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9124d8ff4e66ad47320db76b29e5c09543ff339f767b6f5377faab988495038
BLAKE2b-256 checksum
How to use checksums
22d1e55ec4482d23998fece7a6679fd5036fd7985e816faf6629575318f78cd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

Security for pydemy 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pydemy-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page