Skip to main content

icanhazdadjoke api wrapper

Project description


icanhazdadjoke API wrapper, to programatically cheer your code up.


pip install dadjokes



from dadjokes import Dadjoke
dadjoke = Dadjoke()

The previous snippet will print a random joke.

Dadjoke objects can be built from an id as well. You can get those calling the .id property of a Dadjoke. If you are using this in a Slack app, you might find the .as_slack property useful.

You can use the iterable DadjokeSearch iterable class to search jokes by term, with an optional limit.


Please check available options with:

dadjokes -h

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dadjokes-1.3.2.tar.gz (3.6 kB view hashes)

Uploaded source

Built Distribution

dadjokes-1.3.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page